From 189c0787586602185fea7dcbc3ef37665b75ba45 Mon Sep 17 00:00:00 2001 From: jdl Date: Tue, 6 Aug 2002 12:13:57 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r75, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/OSCx/; revision=76 --- OSC/makefile.in | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 OSC/makefile.in (limited to 'OSC/makefile.in') diff --git a/OSC/makefile.in b/OSC/makefile.in new file mode 100644 index 0000000..1f951b6 --- /dev/null +++ b/OSC/makefile.in @@ -0,0 +1,60 @@ +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 +CC = gcc +CXX = c++ +LD = ld +AFLAGS = +LFLAGS = -export_dynamic -shared +WFLAGS = +IFLAGS = -I. -I../../pd/src +INSTALL_PREFIX=@prefix@ + +VERSION = \"$(shell cat VERSION)\" + +.SUFFIXES: .$(EXT) + +PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION) +CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) +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 -m 644 *.pd $(INSTALL_PREFIX)/lib/pd/doc/5.reference + + +dist: distclean + (cd ..;tar czvf ggext.tgz ggext) -- cgit v1.2.1