-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
37 lines (28 loc) · 915 Bytes
/
Makefile
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
32
33
34
35
CC=g++
CFLAGS=-Wall -DXP_UNIX=1 -fPIC -g -ITuioClient -ITuioClient/oscpack -DOSC_HOST_LITTLE_ENDIAN
TUIO_CLIENT_SRC=TuioClient/TuioClient.cpp \
TuioClient/oscpack/osc/OscReceivedElements.cpp \
TuioClient/oscpack/osc/OscOutboundPacketStream.cpp \
TuioClient/oscpack/osc/OscTypes.cpp \
TuioClient/oscpack/osc/OscPrintReceivedElements.cpp \
TuioClient/oscpack/ip/posix/NetworkingUtils.cpp \
TuioClient/oscpack/ip/posix/UdpSocket.cpp \
TuioClient/oscpack/ip/IpEndpointName.cpp
PLUGIN_SRC=src/plugin.cc \
src/client.cc \
src/connection-manager.cc \
src/adapter-npapi.cc
TUIO_CLIENT_OBJ=$(TUIO_CLIENT_SRC:.cpp=.o)
PLUGIN_OBJ=$(PLUGIN_SRC:.cc=.o)
TARGET=npTuioClient.so
all : $(TARGET)
$(TARGET) : $(PLUGIN_OBJ) $(TUIO_CLIENT_OBJ)
$(CC) $(CFLAGS) -shared $+ -o $@
.cc.o :
$(CC) $(CFLAGS) $< -c -o $@
.cpp.o :
$(CC) $(CFLAGS) $< -c -o $@
clean :
rm $(TARGET)
rm $(PLUGIN_OBJ)
rm $(TUIO_CLIENT_OBJ)