From 34f856146966f04adf1059b21429294c2e2449dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 9 Feb 2011 13:02:33 +0000 Subject: use PD_CFLAGS rather than CFLAGS for crucial flags svn path=/trunk/externals/iemlib/; revision=14883 --- Make.include | 21 ++++++++++----------- 1 file 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 -- cgit v1.2.1