diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-09-24 02:40:50 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-09-24 02:40:50 +0000 |
commit | b1ab45bd09c01f9ec61e0017ebe42af1a8bf0f6d (patch) | |
tree | 352867c77c959f4d0e85b559dee84708e9ab29a6 /externals/grill/xsample/makefile.pd-linux | |
parent | 8c5eb1bcbbf8156dc3211cb1c33974b6bb0df1ec (diff) |
""
svn path=/trunk/; revision=1022
Diffstat (limited to 'externals/grill/xsample/makefile.pd-linux')
-rw-r--r-- | externals/grill/xsample/makefile.pd-linux | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/externals/grill/xsample/makefile.pd-linux b/externals/grill/xsample/makefile.pd-linux index 6bc5935a..306c3512 100644 --- a/externals/grill/xsample/makefile.pd-linux +++ b/externals/grill/xsample/makefile.pd-linux @@ -12,22 +12,31 @@ CONFIG=config-pd-linux.txt include ${CONFIG} -FLEXTLIB=$(FLEXTPATH)/flext.a # compiler stuff INCLUDES=$(PDINC) FLAGS=-DFLEXT_SYS=2 -CFLAGS=${UFLAGS} -O6 -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions -LIBS=m +CFLAGS=-O2 ${UFLAGS} +LIBS= ifdef FLEXT_SHARED -CFLAGS+=-DFLEXT_SHARED -LDFLAGS+=-Bdynamic -LINKFLEXT=-lflext +CFLAGS+=-shared -DFLEXT_SHARED +LDFLAGS+=-L $(FLEXTPATH) +LIBFLEXT=-lflext + +ifeq ($(CXX),icc) +LDFLAGS+=-i_dynamic else -LINKFLEXT=$(FLEXTLIB) +LDFLAGS+=-Wl,-Bdynamic endif +else + +LIBFLEXT=$(FLEXTPATH)/libflext.a + +endif + + # ---------------------------------------------- # the rest can stay untouched # ---------------------------------------------- @@ -52,7 +61,7 @@ $(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ $(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) - $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -L$(FLEXTPATH) $(LINKFLEXT) -o $@ + $(CXX) $(LDFLAGS) -shared -o $@ $^ $(LIBFLEXT) $(patsubst %,-l%,$(LIBS)) strip --strip-unneeded $@ chmod 755 $@ |