Update of /cvsroot/pure-data/externals/grill/flext/buildsys/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26459/buildsys/win
Modified Files: nmake-msvc.inc Added Files: nmake-msvc-shlib.inc Log Message: added shared library build facility for Windows
Index: nmake-msvc.inc =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/win/nmake-msvc.inc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** nmake-msvc.inc 26 Jan 2005 05:01:20 -0000 1.5 --- nmake-msvc.inc 24 Feb 2005 04:56:24 -0000 1.6 *************** *** 22,27 **** CFLAGS=$(CFLAGS) /LD
! # enable exception handling ! CFLAGS=$(CFLAGS) /EHsc
# no banner --- 22,27 ---- CFLAGS=$(CFLAGS) /LD
! # enable exception handling and RTTI ! CFLAGS=$(CFLAGS) /EHsc /GR
# no banner
--- NEW FILE: nmake-msvc-shlib.inc --- # build class specific settings
INCPATH=$(INCPATH) /I$(FLEXTINC) LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTLIB) LIBS=$(LIBS) $(FLEXTNAME).lib
##############################################
# default target _build_: $(TARGET)
$(OUTPATH): if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH) if not exist $@ mkdir $@ > nul
{$(SRCDIR)}.cpp{}.obj: cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
{$(SRCDIR)}.c{}.obj: cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)$@
$(TARGET):: $(TARGETPATH)
$(TARGET):: $(OBJS) @cd $(TARGETPATH) link /DLL $(LDFLAGS) $(LIBPATH) $(OBJS) $(LIBS) /OUT:$(@F) @cd ....
############################################## # remove build
_clean_: -del /q $(TARGETPATH)*.* > nul -rmdir /q $(TARGETPATH) > nul
##############################################
_install_: @if not exist $(FLEXTSHLIB) mkdir $(FLEXTSHLIB) > nul
copy $(TARGET) $(FLEXTSHLIB) > nul # copy import library copy $(TARGET:.dll=.lib) $(FLEXTSHLIB) > nul