From 1611d50c03d8f79560ffc3bc63c268894f411abc Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 3 Jan 2005 05:00:31 +0000 Subject: updated make system build system for OSX simplified make system reconsidered flext::buffer:Update added object construction and destruction flags updated build system svn path=/trunk/; revision=2447 --- .../grill/flext/buildsys/win/nmake-msvc-flext.inc | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 externals/grill/flext/buildsys/win/nmake-msvc-flext.inc (limited to 'externals/grill/flext/buildsys/win/nmake-msvc-flext.inc') diff --git a/externals/grill/flext/buildsys/win/nmake-msvc-flext.inc b/externals/grill/flext/buildsys/win/nmake-msvc-flext.inc new file mode 100644 index 00000000..6c64d682 --- /dev/null +++ b/externals/grill/flext/buildsys/win/nmake-msvc-flext.inc @@ -0,0 +1,66 @@ +# build class specific settings + +############################################## + +# default target +_build_: $(TARGET) + +$(OUTPATH): + if not exist $@ mkdir $@ > nul + +$(TARGETPATH): $(OUTPATH) + if not exist $@ mkdir $@ > nul + +{$(SRCDIR)}.cpp{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)\$@ + +{$(SRCDIR)}.c{}.obj: + cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)\$@ + + +$(TARGET):: $(TARGETPATH) + +$(TARGET):: $(OBJS) + @cd $(TARGETPATH) +!ifdef SHARED + link /DLL $(LDFLAGS) $(LIBPATH) $(OBJS) $(LIBS) /out:$(@F) +!else + lib /OUT:$(@F) $(OBJS) +!endif + @cd ..\.. + +############################################## + +# remove build +_clean_: + -del /q $(TARGET) > nul + -cd $(TARGETPATH) + -del /q $(OBJS) > nul + +############################################## + +!ifdef SHARED +FLEXTLIBINST=$(FLEXTSHLIB) +!else +FLEXTLIBINST=$(FLEXTLIB) +!endif + +$(FLEXTINC): + if not exist $@ mkdir $@ > nul + +$(FLEXTLIB): + if not exist $@ mkdir $@ > nul + +$(FLEXTLIBINST): + if not exist $@ mkdir $@ > nul + +_install_:: $(FLEXTINC) $(FLEXTLIB) $(FLEXTLIBINST) + +_install_:: + copy $(TARGET) $(FLEXTLIBINST) > nul +!ifdef SHARED +# copy import library + copy $(TARGET:.dll=.lib) $(FLEXTLIB) > nul +!endif +# copy headers + for %%i in ($(HDRS)) do @copy $(SRCDIR)\%%i $(FLEXTINC) > nul -- cgit v1.2.1