Mail Archives: cygwin/1999/08/18/13:19:34
------=_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 <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))
------=_NextPart_000_002E_01BEE97A.E7C67EE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
<BODY>
<DIV> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D914390617-18081999>The=20
other option is to use libTools, if you do not have =
service-def.cpp. =20
I have a ltmain.sh,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D914390617-18081999>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</SPAN></FONT><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D914390617-18081999> share these scripts with</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D914390617-18081999></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D914390617-18081999>Suhaib</SPAN></FONT></DIV>
<P> </P>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
cygwin-owner AT sourceware DOT cygnus DOT com=20
[mailto:cygwin-owner AT sourceware DOT cygnus DOT com]<B>On Behalf Of=20
</B>Richard<BR><B>Sent:</B> Wednesday, August 18, 1999 12:51 =
PM<BR><B>To:</B>=20
cygwin AT sourceware DOT cygnus DOT com<BR><B>Subject:</B> Imake, DLLs=20
again<BR><BR></DIV></FONT>Sorry, that Imake rule was incomplete. =
It=20
should have been:=20
<P><TT>#define=20
=
SharedLibraryTarget(libname,rev,solist,down,up) &n=
bsp; =20
@@\</TT>=20
=
<BR><TT>AllTarget(Concat3(lib,libname,.dll))  =
; =
&=
nbsp; =20
@@\</TT> <BR><TT> =
@@\</TT>=20
=
<BR><TT>CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=3Drev=
,$(ICONFIGFILES))=20
@@\</TT> <BR><TT> =
@@\</TT>=20
=
<BR><TT>  =
; =
&=
nbsp; &n=
bsp; &nb=
sp; =20
@@\</TT>=20
=
<BR><TT>junk.c: &nbs=
p;  =
; =
&=
nbsp; &n=
bsp; &nb=
sp; =20
@@\</TT> <BR><TT> echo "#include =
<cygwin/cygwin_dll.h>" =20
>junk.c @@\</TT> <BR><TT> echo=20
"DECLARE_CYGWIN_DLL(dll_main);" >>junk.c @@\</TT>=20
<BR><TT> echo "int WINAPI dll_main(HANDLE a, DWORD reason, void =
*q)"=20
>>junk.c @@\</TT> <BR><TT> echo "{ return 1;=20
}" >>junk.c @@\</TT>=20
<BR><TT>Concat3(lib,libname,.dll): solist junk.o =
libname.def =20
@@\</TT>=20
<BR><TT> RemoveFile(LibraryTargetName(libname)) =
@@\</TT> =
<BR><TT> RemoveFile(Concat3(lib,libname,.dll)) =20
@@\</TT> =
<BR><TT> MakeDLL(libname,solist) =20
@@\</TT> =
<BR><TT> LinkBuildLibrary(Concat3(lib,libname,.a)) =20
@@\</TT> =
<BR><TT>clean:: =20
@@\</TT>=20
<BR><TT> RemoveFile(LibraryTargetName(libname)) =
@@\</TT> =
<BR><TT> RemoveFile(Concat3(lib,libname,.dll)) =20
@@\</TT> =
<BR><TT> RemoveFile(junk.o) =20
@@\</TT> =
<BR><TT> RemoveFile(junk.c) =20
@@\</TT> <BR><TT> RemoveFile($(BASE_COUNTER))</TT> =
<BR><TT></TT> =20
</P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_002E_01BEE97A.E7C67EE0--
- Raw text -