Mail Archives: cygwin/1999/08/18/12:54:07
--------------1D6EE64512790A714E229F47
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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))
--------------1D6EE64512790A714E229F47
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Sorry, that Imake rule was incomplete. It should have been:
<p><tt>#define SharedLibraryTarget(libname,rev,solist,down,up)
@@\</tt>
<br><tt>AllTarget(Concat3(lib,libname,.dll))
@@\</tt>
<br><tt> @@\</tt>
<br><tt>CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES))
@@\</tt>
<br><tt> @@\</tt>
<br><tt>
@@\</tt>
<br><tt>junk.c:
@@\</tt>
<br><tt> echo "#include <cygwin/cygwin_dll.h>" >junk.c
@@\</tt>
<br><tt> echo "DECLARE_CYGWIN_DLL(dll_main);" >>junk.c @@\</tt>
<br><tt> echo "int WINAPI dll_main(HANDLE a, DWORD reason, void *q)"
>>junk.c @@\</tt>
<br><tt> echo "{ return 1; }" >>junk.c @@\</tt>
<br><tt>Concat3(lib,libname,.dll): solist junk.o libname.def
@@\</tt>
<br><tt> RemoveFile(LibraryTargetName(libname))
@@\</tt>
<br><tt> RemoveFile(Concat3(lib,libname,.dll)) @@\</tt>
<br><tt> MakeDLL(libname,solist) @@\</tt>
<br><tt> LinkBuildLibrary(Concat3(lib,libname,.a)) @@\</tt>
<br><tt>clean:: @@\</tt>
<br><tt> RemoveFile(LibraryTargetName(libname))
@@\</tt>
<br><tt> RemoveFile(Concat3(lib,libname,.dll)) @@\</tt>
<br><tt> RemoveFile(junk.o) @@\</tt>
<br><tt> RemoveFile(junk.c) @@\</tt>
<br><tt> RemoveFile($(BASE_COUNTER))</tt>
<br><tt></tt> </html>
--------------1D6EE64512790A714E229F47--
- Raw text -