aboutsummaryrefslogtreecommitdiff
path: root/send+dump
diff options
context:
space:
mode:
authorjdl <x75@users.sourceforge.net>2004-03-10 00:01:57 +0000
committerjdl <x75@users.sourceforge.net>2004-03-10 00:01:57 +0000
commit8ee6fc849523193a6c9ec849599b4153b7d97fdd (patch)
tree767e9c4522a420c9f2d87dd61495141f47f7c5cd /send+dump
parentd8847bccfcc9ac116d81cd18ce485f5595e7f6bb (diff)
changed to single external style ...
svn path=/trunk/externals/OSCx/; revision=1400
Diffstat (limited to 'send+dump')
-rw-r--r--send+dump/Makefile.in32
-rw-r--r--send+dump/dumpOSC.c2
-rw-r--r--send+dump/sendOSC.c2
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