diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-13 04:59:11 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-13 04:59:11 +0000 |
commit | 12dd4dd914b26ef48f6d6b7f49077d62b63be217 (patch) | |
tree | 40455f88c69fa072c1120dbd4f644510cb6fba56 /externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc | |
parent | e39ca045a8ef5c6f2e6f1fbd3aba8bd2641296b2 (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-ext.inc')
-rw-r--r-- | externals/grill/flext/buildsys/lnx/gnumake-icc-ext.inc | 46 |
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) |