From 09a578cb496501a11b85d820c00aea02a9b0dba4 Mon Sep 17 00:00:00 2001 From: jdl Date: Sat, 28 Sep 2002 20:06:08 +0000 Subject: added linking to libOSC again .. svn path=/trunk/externals/OSCx/; revision=157 --- OSC/makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OSC/makefile') diff --git a/OSC/makefile b/OSC/makefile index f59b8fa..e68f8cf 100644 --- a/OSC/makefile +++ b/OSC/makefile @@ -2,6 +2,8 @@ current: pd_linux ############################### NAME=OSC EXT=o +LIBS = -lm -lc +LIBOSC = ../libOSC/libOSC.a # ----------------------- Mac OS X (Darwin) ----------------------- @@ -22,7 +24,8 @@ DARWINEXTERNALS = htmsocket.o OSC-pattern-match.o sendOSC.o dumpOSC.o routeOSC.o .c.pd_darwin: cc $(DARWINCFLAGS) $(DARWININCLUDE) -c *.c - cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o $(DARWINEXTERNALS) + cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o $(DARWINEXTERNALS) $(LIBOSC) + rm -f $*.o ../$*.pd_darwin ln -s $*/$*.pd_darwin .. @@ -46,7 +49,7 @@ LINUXEXTERNALS = htmsocket.o OSC-pattern-match.o sendOSC.o dumpOSC.o routeOSC.o .c.pd_linux: cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c *.c - ld -export_dynamic -shared -o $*.pd_linux $*.o $(LINUXEXTERNALS) -lc + ld -export_dynamic -shared -o $*.pd_linux $*.o $(LINUXEXTERNALS) $(LIBS) $(LIBOSC) strip --strip-unneeded $*.pd_linux # ---------------------------------------------------------- -- cgit v1.2.1