aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-13 04:59:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-13 04:59:11 +0000
commit12dd4dd914b26ef48f6d6b7f49077d62b63be217 (patch)
tree40455f88c69fa072c1120dbd4f644510cb6fba56 /externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc
parente39ca045a8ef5c6f2e6f1fbd3aba8bd2641296b2 (diff)
various fixes to build system
fixes for build system better templates, some minor changes build system: added profiler mode, more fixes added ICC/linux support small optimizations svn path=/trunk/; revision=2498
Diffstat (limited to 'externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc')
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc56
1 files changed, 56 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc b/externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc
new file mode 100644
index 00000000..ed06f9cf
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/gnumake-icc-flext.inc
@@ -0,0 +1,56 @@
+# build class specific settings
+
+##############################################
+
+# default target
+_build_: $(TARGET)
+
+$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
+ touch $@
+
+$(TARGETPATH):
+ -mkdir -p $@
+
+$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
+ icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGETPATH)/%.o : $(SRCDIR)/%.c
+ icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGET) :: $(TARGETPATH)
+
+$(TARGET) :: $(COBJS) $(CPPOBJS)
+ifdef SHARED
+ icc $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
+ chmod 755 $@
+ifndef DEBUG
+ifndef PROFILE
+ strip --strip-unneeded $@
+endif
+endif
+else
+ $(AR) rc $@ $(COBJS) $(CPPOBJS)
+endif
+
+##############################################
+
+_clean_:
+ -rm -r $(TARGETPATH)
+
+##############################################
+
+ifdef SHARED
+FLEXTLIBINST=$(FLEXTSHLIB)
+else
+FLEXTLIBINST=$(FLEXTLIB)
+endif
+
+$(FLEXTINC):
+ -mkdir -p $@
+
+$(FLEXTLIBINST):
+ -mkdir -p $@
+
+_install_: $(FLEXTINC) $(FLEXTLIBINST)
+ install $(TARGET) $(FLEXTLIBINST)
+ install $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(FLEXTINC)