aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/mac/gnumake-gcc-ext.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/mac/gnumake-gcc-ext.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/mac/gnumake-gcc-ext.inc')
-rw-r--r--externals/grill/flext/buildsys/mac/gnumake-gcc-ext.inc51
1 files changed, 51 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/mac/gnumake-gcc-ext.inc b/externals/grill/flext/buildsys/mac/gnumake-gcc-ext.inc
new file mode 100644
index 00000000..ad4e2856
--- /dev/null
+++ b/externals/grill/flext/buildsys/mac/gnumake-gcc-ext.inc
@@ -0,0 +1,51 @@
+# build class specific settings
+
+INCPATH += -I$(FLEXTINC)
+LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB)
+LIBS += -l$(FLEXTNAME)
+
+##############################################
+
+CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
+CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
+COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS)))
+CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
+
+##############################################
+
+# default target
+_build_: $(TARGET)
+
+$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
+ touch $@
+
+$(OBJPATH):
+ -mkdir -p $@
+
+$(TARGETPATH):
+ -mkdir -p $@
+
+$(OBJPATH)/%.opp : $(SRCDIR)/%.cpp
+ $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(OBJPATH)/%.o : $(SRCDIR)/%.c
+ $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGET) :: $(OBJPATH) $(TARGETPATH)
+
+$(TARGET) :: $(COBJS) $(CPPOBJS)
+ $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
+ chmod 755 $@
+
+##############################################
+
+_clean_:
+ rm $(COBJS) $(CPPOBJS) $(TARGET)
+
+##############################################
+
+$(INSTPATH):
+ -mkdir -p $@
+
+_install_:: $(INSTPATH)
+ install $(TARGET) $(INSTPATH)