aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorjdl <x75@users.sourceforge.net>2002-07-02 20:32:59 +0000
committerjdl <x75@users.sourceforge.net>2002-07-02 20:32:59 +0000
commit992bd94dddb021b297fcf28cb5248cc94f48aaf3 (patch)
tree4c883cab8c330942fbc91559dad8e8168fb56e95 /makefile
This commit was generated by cvs2svn to compensate for changes in r24,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/cxc/; revision=25
Diffstat (limited to 'makefile')
-rw-r--r--makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..1ecb81d
--- /dev/null
+++ b/makefile
@@ -0,0 +1,44 @@
+
+current: linux
+
+.SUFFIXES: .pd_linux
+INSTALL_PREFIX = /usr
+PD_DIR = $(INSTALL_PREFIX)/lib/pd
+
+VERSION = \"$(shell cat VERSION)\"
+#LIBOSC = ../OSC/perl/libOSC/libOSC.a
+LIBOSC =
+
+TARGETS = binshift ascwave ixprint bangfilt bangfilt2 \
+ counter reson prepend microtime ascseq \
+ randomix ENV proc mean sigdelta cx
+
+# mean
+# serialize
+
+LINUXOBJECTS = $(TARGETS:%=%.o)
+
+LINCLUDE = -I. -I../pd-0.35-test24/src
+# possible defines
+# -DPRINTADDRS
+DEBUG = -DDEBUG -ggdb
+#DEBUG =
+CFLAGS = -O2 -DPD -DVERSION=$(VERSION) $(DEBUG) -fPIC $(LINCLUDE)
+LIBS = -lc -lm
+linux: $(LINUXOBJECTS)
+ ld -export_dynamic -shared -o cxc.pd_linux *.o $(LIBS) ${LIBOSC}
+ strip --strip-unneeded cxc.pd_linux
+
+.c.pd_linux:
+ cc $(CFLAGS) -c $*.c ${LIBOSC}
+
+clean:
+ rm *.pd_linux *.o *~
+
+install:
+ install -d $(PD_DIR)/doc/5.reference/cxc
+ install -m664 reference/*.pd $(PD_DIR)/doc/5.reference/cxc
+ install -m664 cxc.pd_linux $(PD_DIR)/externs
+uninstall:
+ rm -rf $(PD_DIR)/doc/5.reference/cxc
+ rm -rf $(PD_DIR)/externs/cxc.pd_linux