aboutsummaryrefslogtreecommitdiff
path: root/OSC/makefile
diff options
context:
space:
mode:
authorjdl <x75@users.sourceforge.net>2002-08-06 12:13:57 +0000
committerjdl <x75@users.sourceforge.net>2002-08-06 12:13:57 +0000
commit189c0787586602185fea7dcbc3ef37665b75ba45 (patch)
tree06e30a3a7e166b01134cc33ccda71034c876baf8 /OSC/makefile
This commit was generated by cvs2svn to compensate for changes in r75,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/OSCx/; revision=76
Diffstat (limited to 'OSC/makefile')
-rw-r--r--OSC/makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/OSC/makefile b/OSC/makefile
new file mode 100644
index 0000000..8534bc9
--- /dev/null
+++ b/OSC/makefile
@@ -0,0 +1,69 @@
+###############################
+# change these
+IFLAGS = -I. -I../../pd-0.34-4/src
+INSTALL_PREFIX=/usr
+
+# should be oke below ..
+EXT = o
+#DEFS = -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DPD_VERSION_MINOR=32
+DEFS =
+CC = gcc
+CXX = c++
+LD = ld
+AFLAGS =
+LFLAGS = -export_dynamic -shared
+WFLAGS =
+
+# DEBUG = -DDEBUG -g
+DEBUG =
+
+VERSION = \"$(shell cat VERSION)\"
+
+.SUFFIXES: .$(EXT)
+
+PDCFLAGS = -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION)
+CFLAGS = -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) $(DEBUG)
+CXXFLAGS = $(CFLAGS)
+LIBOSC = ../libOSC/libOSC.a
+LIBS = -lpthread -lm -lc
+SOURCES = htmsocket.c OSC-pattern-match.c sendOSC.c dumpOSC.c routeOSC.c
+TARGETS = $(SOURCES:.c=.$(EXT))
+
+all: $(TARGETS)
+
+OSC: $(TARGETS)
+ cc -c $(CFLAGS) -DPD OSC.c
+ $(LD) -export_dynamic -shared -o OSC.pd_linux *.o $(LIBS) $(LIBOSC)
+ strip --strip-unneeded OSC.pd_linux
+
+clean::
+ -rm *.$(EXT) *.pd_linux *~
+
+distclean: clean
+ -rm config.cache config.log config.status makefile
+
+
+distcleancvs:
+ -rm -r CVS reference/CVS
+
+
+.c.o:
+ $(CC) -c -o $@ $(CFLAGS) -DPD $*.c
+
+# cp $@ $*_stat.o
+
+#.o.pd_linux:
+# $(CC) -o $@ $(PDCFLAGS) -DPD $*.o
+
+
+
+install::
+ install -d $(INSTALL_PREFIX)/lib/pd/externs
+# install -m 644 *.pd_linux $(INSTALL_PREFIX)/lib/pd/externs
+ install -m 644 OSC.pd_linux $(INSTALL_PREFIX)/lib/pd/externs
+ install -d $(INSTALL_PREFIX)/lib/pd/doc/5.reference/OSC
+ install -m 644 ../doc/*.pd $(INSTALL_PREFIX)/lib/pd/doc/5.reference/OSC
+
+
+#dist: distclean
+# (cd ..;tar czvf ggext.tgz ggext)