delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/18/13:19:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Suhaib Siddiqi" <ssiddiqi AT ipass DOT net>
To: "Richard" <hicklinr AT mcd DOT alcatel DOT be>
Cc: "Cygwin AT Sourceware DOT Cygnus DOT Com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Imake, DLLs again
Date: Wed, 18 Aug 1999 13:09:29 -0400
Message-ID: <NDBBLHPPKKBKPBLLMFJBIEMOCBAA.ssiddiqi@ipass.net>
MIME-Version: 1.0
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 <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>&nbsp;</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&nbsp; =
service-def.cpp.&nbsp;=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.&nbsp; 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>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D914390617-18081999>Suhaib</SPAN></FONT></DIV>
<P>&nbsp;</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.&nbsp; =
It=20
  should have been:=20
  <P><TT>#define=20
  =
SharedLibraryTarget(libname,rev,solist,down,up)&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT>=20
  =
<BR><TT>AllTarget(Concat3(lib,libname,.dll))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT> <BR><TT>&nbsp;echo "#include =
&lt;cygwin/cygwin_dll.h&gt;"&nbsp;=20
  &gt;junk.c&nbsp; @@\</TT> <BR><TT>&nbsp;echo=20
  "DECLARE_CYGWIN_DLL(dll_main);"&nbsp; &gt;&gt;junk.c @@\</TT>=20
  <BR><TT>&nbsp;echo "int WINAPI dll_main(HANDLE a, DWORD reason, void =
*q)"=20
  &gt;&gt;junk.c&nbsp; @@\</TT> <BR><TT>&nbsp;echo "{ return 1;=20
  }"&nbsp;&nbsp;&nbsp; &gt;&gt;junk.c @@\</TT>=20
  <BR><TT>Concat3(lib,libname,.dll): solist junk.o =
libname.def&nbsp;&nbsp;=20
  @@\</TT>=20
  <BR><TT>&nbsp;RemoveFile(LibraryTargetName(libname))&nbsp;&nbsp;&nbsp; =

  @@\</TT> =
<BR><TT>&nbsp;RemoveFile(Concat3(lib,libname,.dll))&nbsp;&nbsp;&nbsp;=20
  @@\</TT> =
<BR><TT>&nbsp;MakeDLL(libname,solist)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT> =
<BR><TT>&nbsp;LinkBuildLibrary(Concat3(lib,libname,.a))&nbsp;&nbsp;=20
  @@\</TT> =
<BR><TT>clean::&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT>=20
  <BR><TT>&nbsp;RemoveFile(LibraryTargetName(libname))&nbsp;&nbsp;&nbsp; =

  @@\</TT> =
<BR><TT>&nbsp;RemoveFile(Concat3(lib,libname,.dll))&nbsp;&nbsp;&nbsp;=20
  @@\</TT> =
<BR><TT>&nbsp;RemoveFile(junk.o)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT> =
<BR><TT>&nbsp;RemoveFile(junk.c)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  @@\</TT> <BR><TT>&nbsp;RemoveFile($(BASE_COUNTER))</TT> =
<BR><TT></TT>&nbsp;=20
  </P></BLOCKQUOTE></BODY></HTML>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019