aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-03 05:00:31 +0000
commit1611d50c03d8f79560ffc3bc63c268894f411abc (patch)
tree33a751fe81ef62e3bb4104f82132d3bc43efcaa7 /externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc
parent7873938d18daf4a94ca77eeb970457f89e679374 (diff)
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
Diffstat (limited to 'externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc')
-rw-r--r--externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc55
1 files changed, 55 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc b/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc
new file mode 100644
index 00000000..22a6bdfc
--- /dev/null
+++ b/externals/grill/flext/buildsys/win/gnumake-mingw-flext.inc
@@ -0,0 +1,55 @@
+# build class specific settings
+
+##############################################
+
+# default target
+_build_: $(TARGET)
+
+#$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
+# touch $@
+
+$(OUTPATH):
+ -mkdir $(subst /,\,$@)
+
+$(TARGETPATH): $(OUTPATH)
+ -mkdir $(subst /,\,$@)
+
+$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
+ $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGETPATH)/%.o : $(SRCDIR)/%.c
+ $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGET) :: $(TARGETPATH)
+
+$(TARGET) :: $(COBJS) $(CPPOBJS)
+ifdef SHARED
+ $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
+else
+ $(AR) rc $@ $(COBJS) $(CPPOBJS)
+endif
+
+##############################################
+
+_clean_:
+ -del $(subst /,\,$(COBJS) $(CPPOBJS) $(TARGET))
+
+##############################################
+
+ifdef SHARED
+FLEXTLIBINST=$(FLEXTSHLIB)
+else
+FLEXTLIBINST=$(FLEXTLIB)
+endif
+
+$(FLEXTINC):
+ -mkdir $(subst /,\,$@)
+
+$(FLEXTLIBINST):
+ -mkdir $(subst /,\,$@)
+
+_install_:: $(FLEXTINC) $(FLEXTLIBINST)
+
+_install_::
+ copy $(subst /,\,$(TARGET) $(FLEXTLIBINST))
+ -for %%i in ($(HDRS)) do @copy $(SRCDIR)\%%i $(subst /,\,$(FLEXTPATH)) > nul