Imake, DLLs again

Richard hicklinr@mcd.alcatel.be
Wed Aug 18 09:50:00 GMT 1999


Sorry, that Imake rule was incomplete.  It should have been:
#define SharedLibraryTarget(libname,rev,solist,down,up)                
@@\
AllTarget(Concat3(lib,libname,.dll))                                   
@@\
         @@\
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES))
@@\
         @@\
                                                                       
@@\
junk.c:                                                                                
@@\
 echo "#include <cygwin/cygwin_dll.h>"  >junk.c 
@@\
 echo "DECLARE_CYGWIN_DLL(dll_main);"  >>junk.c @@\
 echo "int WINAPI dll_main(HANDLE a, DWORD reason, void *q)"
>>junk.c  @@\
 echo "{ return 1; }"    >>junk.c @@\
Concat3(lib,libname,.dll): solist junk.o libname.def  
@@\
 RemoveFile(LibraryTargetName(libname))   
@@\
 RemoveFile(Concat3(lib,libname,.dll))    @@\
 MakeDLL(libname,solist)      @@\
 LinkBuildLibrary(Concat3(lib,libname,.a))   @@\
clean::         @@\
 RemoveFile(LibraryTargetName(libname))   
@@\
 RemoveFile(Concat3(lib,libname,.dll))    @@\
 RemoveFile(junk.o)      @@\
 RemoveFile(junk.c)      @@\
 RemoveFile($(BASE_COUNTER))
 



More information about the Cygwin mailing list