Imake, DLLs again
Suhaib Siddiqi
ssiddiqi@ipass.net
Tue Aug 31 23:49:00 GMT 1999
ÃÂ
The
other option is to use libTools, if you do not haveÃÂ service-def.cpp.ÃÂ
I have a ltmain.sh,
configure and ltconfig which I use with LessTif and
libGGI to make DLLs.ÃÂ I usually take my versions of configure, ltconfig and
ltmain.sh and replace the one which comes with lesstif etc Would be glad
to share these scripts with
ÃÂ
Suhaib
ÃÂ
-----Original Message----- From:
cygwin-owner@sourceware.cygnus.com
[mailto:cygwin-owner@sourceware.cygnus.com] On Behalf Of
Richard Sent: Wednesday, August 18, 1999 12:51 PM To:
cygwin@sourceware.cygnus.com Subject: Imake, DLLs
again 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