diff options
-rw-r--r-- | send+dump/Makefile.in | 32 | ||||
-rw-r--r-- | send+dump/dumpOSC.c | 2 | ||||
-rw-r--r-- | send+dump/sendOSC.c | 2 |
3 files changed, 34 insertions, 2 deletions
diff --git a/send+dump/Makefile.in b/send+dump/Makefile.in new file mode 100644 index 0000000..6ff1cf2 --- /dev/null +++ b/send+dump/Makefile.in @@ -0,0 +1,32 @@ +LIBOSCDIR = ../libOSC +LIBOSC = ${LIBOSCDIR}/libOSC.a +# for eg. linux +# DEFS= -Dunix +# for MAC OSX, should be DARWIN +# DEFS=-Dunix -DMACOSX + +CFLAGS= @CFLAGS@ +# INCLUDES= @INCLUDES@ + +DUMPOBJS=dumpOSC.o + + +both: sendOSC dumpOSC + +sendOSC: sendOSC.o htmsocket.o ${LIBOSC} + ${CC} ${CFLAGS} $(INCLUDES) -o sendOSC sendOSC.o htmsocket.o ${LIBOSC} + +dumpOSC: ${DUMPOBJS} + ${CC} ${CFLAGS} $(INCLUDES) -o $@ ${DUMPOBJS} + +dumpUDP: dumpUDP.o + ${CC} ${CFLAGS} $(INCLUDES) -o dumpUDP dumpUDP.o + +${LIBOSC}: + echo "You need to go to " ${LIBOSCDIR} " and do a make." + (cd ../libOSC ; make) + +clean: + rm -f sendOSC dumpOSC *.o + + diff --git a/send+dump/dumpOSC.c b/send+dump/dumpOSC.c index 0837586..63efc38 100644 --- a/send+dump/dumpOSC.c +++ b/send+dump/dumpOSC.c @@ -60,7 +60,7 @@ Technologies, University of California, Berkeley. */ -#ifdef unix +#ifdef UNIX #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/send+dump/sendOSC.c b/send+dump/sendOSC.c index d37a539..f445f92 100644 --- a/send+dump/sendOSC.c +++ b/send+dump/sendOSC.c @@ -55,7 +55,7 @@ compiling: /* #include <bstring.h> */ #include <string.h> -#ifdef unix +#ifdef UNIX #include <ctype.h> #include <netinet/in.h> #endif |