current: all PDSOURCE ?= /usr/local/src/pd/src .SUFFIXES: .pd_linux EXT = pd_linux STRIP = strip PD_LDFLAGS = --export-dynamic -shared $(LD_FLAGS) PD_LIB = -lm $(LIB) #select either the DBG and OPT compiler flags below: DBG_CFLAGS=-W -Wno-parentheses -Wno-switch -Wno-unused CFLAGS=-O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing 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))) OBJ = $(SRC:.c=.o) # # ------------------ targets ------------------------------------ # clean: -rm -f ../../lib/$(TARGET).$(EXT) $(TARGET).$(EXT) -rm -f *.o all: $(OBJ) @echo :: $(OBJ) $(LD) $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB) $(STRIP) --strip-unneeded $(TARGET).$(EXT) -cp $(TARGET).$(EXT) ../../lib/ $(OBJ) : %.o : %.c touch $*.c $(CC) $(PD_CFLAGS) $(PD_INCLUDE) -c -o $*.o $*.c