diff options
Diffstat (limited to 'src/makefile_linux')
-rw-r--r-- | src/makefile_linux | 23 |
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 |