aboutsummaryrefslogtreecommitdiff
path: root/Make.include
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 13:02:33 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-02-09 13:02:33 +0000
commit34f856146966f04adf1059b21429294c2e2449dc (patch)
tree11c8da0b19c4ab5b21a276f6f0293b5293df70e4 /Make.include
parent589a485bfec090740d2a91f4333c044edd7add4f (diff)
use PD_CFLAGS rather than CFLAGS for crucial flags
svn path=/trunk/externals/iemlib/; revision=14883
Diffstat (limited to 'Make.include')
-rw-r--r--Make.include21
1 files changed, 10 insertions, 11 deletions
diff --git a/Make.include b/Make.include
index 13c6c2f..51e73a2 100644
--- a/Make.include
+++ b/Make.include
@@ -6,16 +6,18 @@ PDSOURCE ?= /usr/local/src/pd/src
EXT = pd_linux
-LDFLAGS = --export-dynamic -shared
-LIB = -ldl -lm -lpthread
+PD_LDFLAGS = --export-dynamic -shared $(LD_FLAGS)
+PD_LIB = -ldl -lm -lpthread $(LIB)
#select either the DBG and OPT compiler flags below:
-CFLAGS = -DPD -DUNIX -W -Werror -Wno-unused \
- -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
- -DDL_OPEN -fPIC -fno-stack-protector
+DBG_CFLAGS=-W -Wno-parentheses -Wno-switch -Wno-unused
+CFLAGS=-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-INCLUDE = -I. -I$(PDSOURCE)
+PD_CFLAGS = -DPD -DUNIX -DDL_OPEN -DHAVE_G_CANVAS_H -fPIC -fno-stack-protector $(DBG_CFLAGS) $(CFLAGS)
+
+
+PD_INCLUDE = -I. -I$(PDSOURCE) -I../../../../pd/src
# the sources
SRC = $(sort $(filter %.c, $(wildcard *.c)))
@@ -32,14 +34,11 @@ clean:
all: $(OBJ)
@echo :: $(OBJ)
- ld $(LDFLAGS) -o $(TARGET).$(EXT) *.o $(LIB)
+ ld $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB)
strip --strip-unneeded $(TARGET).$(EXT)
-cp $(TARGET).$(EXT) ../../lib/
$(OBJ) : %.o : %.c
touch $*.c
- cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
-
-
-
+ cc $(PD_CFLAGS) $(PD_INCLUDE) -c -o $*.o $*.c