diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-12 20:41:34 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-06-12 20:41:34 +0000 |
commit | dda26b130c1aa944bc042095677b2245c722e7ba (patch) | |
tree | ab4cdf7e4bc30ebdeca4d28a470ee8fc73d79007 | |
parent | 2106abbc4af813e176e21e149a9d13fcc72682fa (diff) |
added generic makefile with etags support
svn path=/trunk/externals/hcs/; revision=5201
-rw-r--r-- | Makefile | 39 |
1 files changed, 17 insertions, 22 deletions
@@ -1,22 +1,17 @@ -CC=gcc
-
-pd_linux: pan_gogins~.pd_linux range.pd_linux linuxmouse.pd_linux linuxevent.pd_linux linuxjoystick.pd_linux ifeel.pd_linux platformdummy.pd_linux
-
-clean: ; rm -f *.pd_linux *.o *~
-
-# ----------------------- LINUX i386 -----------------------
-
-.SUFFIXES: .pd_linux
-
-LINUXCFLAGS = -DUNIX -DPD -O2 -funroll-loops -fomit-frame-pointer \
- -Wall -W -Wshadow -Wstrict-prototypes -Werror \
- -Wno-unused -Wno-parentheses -Wno-switch
-
-LINUXINCLUDE = -I/usr/local/lib/pd/include -I../../pd/src -I/usr/local/include
-
-.c.pd_linux:
- $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
- ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
- strip --strip-unneeded $*.pd_linux
- rm $*.o
-
+TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|') +EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|') + +default: + make -C $(EXTERNALS_ROOT) $(TARGET) + +install: + make -C $(EXTERNALS_ROOT) $(TARGET)_install + +clean: + make -C $(EXTERNALS_ROOT) $(TARGET)_clean + +test_locations: + make -C $(EXTERNALS_ROOT) test_locations + +etags: + etags *.[ch] ~/cvs/pure-data/pd/src/*.[ch] /usr/include/*.h /usr/include/sys/*.h |