aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/lnx/gnumake-icc.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.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.inc')
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-icc.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-icc.inc b/externals/grill/flext/buildsys/lnx/gnumake-icc.inc
new file mode 100644
index 00000000..2797e882
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/gnumake-icc.inc
@@ -0,0 +1,31 @@
+##############################################
+
+OBJPATH=$(OUTPATH)/$(OUTSUB)
+TARGETPATH=$(OBJPATH)
+TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
+
+##############################################
+
+CFLAGS +=
+LDFLAGS += -shared -Wl,-x
+
+##############################################
+
+ifdef DEBUG
+CFLAGS += -g
+LDFLAGS += -g
+else
+ifdef PROFILE
+CFLAGS += -g -qp
+LDFLAGS += -g -qp
+else
+LDFLAGS += -Wl,-S
+endif
+endif
+
+##############################################
+
+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)))