aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc')
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc46
1 files changed, 46 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc b/externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc
new file mode 100644
index 00000000..4ce1c1da
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc
@@ -0,0 +1,46 @@
+# build class specific settings
+
+INCPATH += -I$(FLEXTINC)
+LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB)
+LIBS += -l$(FLEXTNAME)
+
+##############################################
+
+# 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)
+ icc $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
+ chmod 755 $@
+ifndef DEBUG
+ifndef PROFILE
+ strip --strip-unneeded $@
+endif
+endif
+
+##############################################
+
+_clean_:
+ -rm -r $(TARGETPATH)
+
+##############################################
+
+$(INSTPATH):
+ -mkdir -p $@
+
+_install_: $(INSTPATH)
+ install $(TARGET) $(INSTPATH)