Makefile 822 Bytes
Newer Older
pokergaming's avatar
pokergaming committed
1
LIBS = -L../../../pd/bin -lc -lm
2
3
4
5
LIBOSCDIR = ../libOSC
LIBOSC = ${LIBOSCDIR}/libOSC.a

# strange bug requires this...
pokergaming's avatar
pokergaming committed
6
CFLAGS= -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1 -fPIC -I../libOSC -I../../pd/src -I../../../pd/src -I../src -I../libOSC -I../../pd/src -I../../../pd/src -I../src
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# INCLUDES= -I../libOSC -I../../pd/src -I../../../pd/src -I../src

DUMPOBJS=dumpOSC.o


both: sendOSC dumpOSC

sendOSC: sendOSC.o htmsocket.o ${LIBOSC}
	${CC} ${CFLAGS} $(INCLUDES) -o sendOSC sendOSC.o htmsocket.o $(LIBS) ${LIBOSC}

dumpOSC: ${DUMPOBJS}
	${CC} ${CFLAGS} $(INCLUDES) -o $@ ${DUMPOBJS} $(LIBS)

dumpUDP: dumpUDP.o
	${CC} ${CFLAGS} $(INCLUDES) -o dumpUDP dumpUDP.o $(LIBS)

${LIBOSC}:
	echo "You need to go to " ${LIBOSCDIR} " and do a make."
	(cd ../libOSC ; make)

clean:
	rm -f sendOSC dumpOSC *.o