Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Suhaib Siddiqi" To: "Richard" Cc: "Cygwin AT Sourceware DOT Cygnus DOT Com" Subject: RE: Imake, DLLs again Date: Wed, 18 Aug 1999 13:09:29 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01BEE97A.E7C67EE0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <37BAE48B.31672961@mcd.alcatel.be> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal ------=_NextPart_000_002E_01BEE97A.E7C67EE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 AT sourceware DOT cygnus DOT com [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Richard Sent: Wednesday, August 18, 1999 12:51 PM To: cygwin AT sourceware DOT cygnus DOT 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,$(ICONFIGFIL ES)) @@\ @@\ @@\ junk.c: @@\ echo "#include " >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)) ------=_NextPart_000_002E_01BEE97A.E7C67EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
The=20 other option is to use libTools, if you do not have  = service-def.cpp. =20 I have a ltmain.sh,
configure and ltconfig which I use with = LessTif and=20 libGGI to make DLLs.  I usually take my versions of configure, = ltconfig and=20 ltmain.sh and replace the one which comes with lesstif etc Would be glad = to share these scripts with
 
Suhaib

 

-----Original Message-----
From:=20 cygwin-owner AT sourceware DOT cygnus DOT com=20 [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of=20 Richard
Sent: Wednesday, August 18, 1999 12:51 = PM
To:=20 cygwin AT sourceware DOT cygnus DOT com
Subject: Imake, DLLs=20 again

Sorry, that Imake rule was incomplete.  = It=20 should have been:=20

#define=20 = SharedLibraryTarget(libname,rev,solist,down,up)    &n= bsp;           =20 @@\=20 =
AllTarget(Concat3(lib,libname,.dll))     = ;            =             &= nbsp;     =20 @@\
         = @@\=20 =
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=3Drev= ,$(ICONFIGFILES))=20 @@\
         = @@\=20 =
           = ;            =             &= nbsp;           &n= bsp;           &nb= sp;           =20 @@\=20 =
junk.c:         &nbs= p;            = ;            =             &= nbsp;           &n= bsp;           &nb= sp;         =20 @@\
 echo "#include = <cygwin/cygwin_dll.h>" =20 >junk.c  @@\
 echo=20 "DECLARE_CYGWIN_DLL(dll_main);"  >>junk.c @@\=20
 echo "int WINAPI dll_main(HANDLE a, DWORD reason, void = *q)"=20 >>junk.c  @@\
 echo "{ return 1;=20 }"    >>junk.c @@\=20
Concat3(lib,libname,.dll): solist junk.o = libname.def  =20 @@\=20
 RemoveFile(LibraryTargetName(libname))    = @@\ =
 RemoveFile(Concat3(lib,libname,.dll))   =20 @@\ =
 MakeDLL(libname,solist)     =20 @@\ =
 LinkBuildLibrary(Concat3(lib,libname,.a))  =20 @@\ =
clean::        =20 @@\=20
 RemoveFile(LibraryTargetName(libname))    = @@\ =
 RemoveFile(Concat3(lib,libname,.dll))   =20 @@\ =
 RemoveFile(junk.o)     =20 @@\ =
 RemoveFile(junk.c)     =20 @@\
 RemoveFile($(BASE_COUNTER)) =
 =20

------=_NextPart_000_002E_01BEE97A.E7C67EE0--