aboutsummaryrefslogtreecommitdiff
path: root/send+dump/Makefile
blob: a2d11802d5bdfe75496c689b73f272e8a3e9662b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
LIBOSCDIR = ../libOSC
LIBOSC = ${LIBOSCDIR}/libOSC.a
# for eg. linux
# DEFS= -Dunix
# for MAC OSX, should be DARWIN
DEFS=-Dunix -DMACOSX

CFLAGS=  -O2 -I$(LIBOSCDIR) $(DEFS) -Wall

DUMPOBJS=dumpOSC.o


both: sendOSC dumpOSC

sendOSC: sendOSC.o htmsocket.o ${LIBOSC}
	${CC} ${CFLAGS} ${DEFS} -o sendOSC sendOSC.o htmsocket.o  ${LIBOSC}

dumpOSC: ${DUMPOBJS}
	${CC} ${CFLAGS} ${DEFS} -o $@ ${DUMPOBJS}
	
dumpUDP: dumpUDP.o
	${CC} ${CFLAGS} ${DEFS} -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