aboutsummaryrefslogtreecommitdiff
path: root/Make.include
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-11-14 18:22:55 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-11-14 18:22:55 +0000
commitc285b2ffa595ad84771495fa49f2614ed8ae6b97 (patch)
tree6647d350f84fd56bba6d59ab98d88881f77576b7 /Make.include
parent22e2a8c435e6907aae8fb43c54341f8ec55e6231 (diff)
forgot Make.include in the last checkin
svn path=/trunk/externals/iemlib/; revision=3893
Diffstat (limited to 'Make.include')
-rw-r--r--Make.include35
1 files changed, 34 insertions, 1 deletions
diff --git a/Make.include b/Make.include
index 74f32b7..fbecf97 100644
--- a/Make.include
+++ b/Make.include
@@ -1,11 +1,44 @@
+current: all
+
PDSOURCE = /usr/local/src/pd-0.37-4/src
+
+.SUFFIXES: .pd_linux
+
+EXT = pd_linux
+
LDFLAGS = -export-dynamic -shared
LIB = -ldl -lm -lpthread
#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 \
- -DDL_OPEN -fPIC
+ -DDL_OPEN -fPIC
+
+
+INCLUDE = -I. -I$(PDSOURCE)
+
+# the sources
+SRC = $(sort $(filter %.c, $(wildcard *.c)))
+
+OBJ = $(SRC:.c=.o)
+
+#
+# ------------------ targets ------------------------------------
+#
+
+clean:
+ -rm ../../lib/$(TARGET).$(EXT) $(TARGET).$(EXT)
+ -rm *.o
+
+all: $(OBJ)
+ @echo :: $(OBJ)
+ ld $(LDFLAGS) -o $(TARGET).$(EXT) *.o $(LIB)
+ strip --strip-unneeded $(TARGET).$(EXT)
+ -cp $(TARGET).$(EXT) ../../lib
+
+$(OBJ) : %.o : %.c
+ touch $*.c
+ cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c