aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-06-28 07:08:23 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-06-28 07:08:23 +0000
commit0350c31d68339f2d462da801f1c03c6f93999f67 (patch)
tree75eb04589d56334c94795d467a2b218cbc5505df
parent1941caab41f0de033902cb7f824db5c5d9a14b79 (diff)
use PD_ prefix for CFLAGS,...
svn path=/trunk/externals/iem/iem_ambi/; revision=17160
-rw-r--r--src/makefile_linux23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/makefile_linux b/src/makefile_linux
index 039507d..a65bb40 100644
--- a/src/makefile_linux
+++ b/src/makefile_linux
@@ -3,20 +3,20 @@ current: all
.SUFFIXES: .pd_linux
PDSOURCE?=/usr/local/src/pd/src
-INCLUDE = -I. -I$(PDSOURCE)
+PD_INCLUDE = -I. -I$(PDSOURCE)
-LDFLAGS = -export-dynamic -shared
-LIB = -ldl -lm -lpthread
-
-STRIP=strip
+PD_LDFLAGS = -export-dynamic -shared
+LIB = -lm
#select either the DBG and OPT compiler flags below:
-CFLAGS = -DPD -DUNIX \
+PD_CFLAGS = -DPD -DUNIX \
-W -Wno-unused -Wno-parentheses -Wno-switch \
- -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
+ -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
-DDL_OPEN -fPIC
+CFLAGS="-O6"
+
SYSTEM = $(shell uname -m)
# the sources
@@ -39,17 +39,16 @@ OBJ = $(SRC:.c=.o)
#
clean:
- -rm ../$(TARGET)
- -rm *.o
+ -rm -f ../$(TARGET)
+ -rm -f *.o
all: $(OBJ)
@echo :: $(OBJ)
- $(LD) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
- $(STRIP) --strip-unneeded $(TARGET)
+ $(LD) $(PD_LDFLAGS) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
mv $(TARGET) ..
$(OBJ) : %.o : %.c
- $(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
+ $(CC) $(PD_CFLAGS) $(CFLAGS) $(PD_INCLUDE) $(INCLUDE) -c -o $*.o $*.c