root/oscgroups/trunk/Makefile

Revision 52, 1.7 kB (checked in by ross, 3 years ago)

fixed oscpack -I include path in Makefile

  • Property svn:eol-style set to native
Line 
1 CLIENT=OscGroupClient
2 SERVER=OscGroupServer
3
4
5 # should be either OSC_HOST_BIG_ENDIAN or OSC_HOST_LITTLE_ENDIAN
6 # Apple: OSC_HOST_BIG_ENDIAN
7 # Win32: OSC_HOST_LITTLE_ENDIAN
8 # i386 LinuX: OSC_HOST_LITTLE_ENDIAN
9
10 ENDIANESS=OSC_HOST_LITTLE_ENDIAN
11
12
13 SERVERSOURCES = \
14         ../oscpack/osc/OscTypes.cpp  \
15         ../oscpack/osc/OscOutboundPacketStream.cpp \
16         ../oscpack/osc/OscReceivedElements.cpp \
17         ../oscpack/ip/posix/NetworkingUtils.cpp  \
18         ../oscpack/ip/IpEndpointName.cpp \
19         ../oscpack/ip/posix/UdpSocket.cpp \
20         ./GroupServer.cpp \
21         ./OscGroupServer.cpp
22 SERVEROBJECTS = $(SERVERSOURCES:.cpp=.o)
23
24 CLIENTSOURCES = \
25         ../oscpack/osc/OscTypes.cpp \
26         ../oscpack/osc/OscOutboundPacketStream.cpp \
27         ../oscpack/osc/OscReceivedElements.cpp \
28         ../oscpack/ip/posix/NetworkingUtils.cpp \
29         ../oscpack/ip/IpEndpointName.cpp \
30         ../oscpack/ip/posix/UdpSocket.cpp \
31         ./OscGroupClient.cpp \
32         ./md5.cpp
33 CLIENTOBJECTS = $(CLIENTSOURCES:.cpp=.o)
34
35 SCRIPTS = \
36     ./OscGroupServerStartStop.sh \
37     ./run_client.sh \
38     ./run_server.sh
39
40
41 INCLUDES = -I../oscpack
42 COPTS  = -Wall -O3
43 CDEBUG = -Wall -g
44 CXXFLAGS = $(COPTS) $(INCLUDES) -D$(ENDIANESS)
45 LIBS = -lpthread
46
47 all:    server client
48
49 server : $(SERVEROBJECTS)
50         @if [ ! -d bin ] ; then mkdir bin ; fi
51         $(CXX) -o bin/$(SERVER) $+ $(LIBS)
52
53 client : $(CLIENTOBJECTS)
54         @if [ ! -d bin ] ; then mkdir bin ; fi
55         $(CXX) -o bin/$(CLIENT) $+ $(LIBS)
56
57
58 # set executable bit on scripts
59 scripts:
60         chmod +x $(SCRIPTS)
61
62 # install the daemon on linux. make sure you
63 # edit the script with the right path information first
64 install_daemon : OscGroupServerStartStop.sh
65         ln -s ./OscGroupServerStartStop.sh /etc/init.d/OscGroupServer
66         update-rc.d OscGroupServer defaults
67
68 clean:
69         rm -rf bin $(SERVEROBJECTS) $(CLIENTOBJECTS)
70
71
Note: See TracBrowser for help on using the browser.