From: <and...@us...> - 2004-06-06 16:16:56
|
Update of /cvsroot/husky/huskylib/make In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30873/make Modified Files: makefile.mgw Log Message: fixed building of dll version using mingw (tested with gcc 3.3.1) Index: makefile.mgw =================================================================== RCS file: /cvsroot/husky/huskylib/make/makefile.mgw,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- makefile.mgw 19 Sep 2003 09:21:24 -0000 1.5 +++ makefile.mgw 6 Jun 2004 16:16:47 -0000 1.6 @@ -45,6 +45,8 @@ CDEFS = # common compiler options CFLAGS = -Wno-long-long -Wall -O3 +# additional compiler options to build DLL +DLCFLAGS= -D_MAKE_DLL # linker options LFLAGS = # options for compile only (link is off) @@ -52,7 +54,7 @@ # options for build static library LIBOPT = -static # options for build dll -DLLOPT = +DLLOPT = -shared -Wl,--out-implib,$(TARGETLIB) # option for specify output file name NAMEOPT = -o # options for $(AR) program @@ -124,15 +126,16 @@ $(AR) $(ARFLAGS) $@ $? $(RANLIB) $@ -$(TARGETDLL): $(OBJS) - $(CC) $(DLLOPT) $(CFLAGS) $(NAMEOPT)$@ $^ +$(TARGETDLL): + $(MAKE) -f makefile.mgw CFLAGS="$(CFLAGS) $(DLCFLAGS)" $(OBJS) + $(CC) $(DLLOPT) $(CFLAGS) $(NAMEOPT)$@ $(OBJS) clean: -$(RM) $(RMOPT) *$(_OBJ) distclean: clean -# -$(RM) $(RMOPT) $(TARGETDLL) + -$(RM) $(RMOPT) $(TARGETDLL) -$(RM) $(RMOPT) $(TARGETLIB) -$(RM) $(RMOPT) $(PROGRAMS) |