|
Revision 5, 1.7 kB
(checked in by ross, 3 years ago)
|
commiting most recent pre-svn oscpack version. Main change is new networking classes with new unified UdpSocket? class, support for listening to multiple sockets. New IpEndpointName? class for refering to endpoints by name, ip address etc.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
TEST=OscUnitTests |
|---|
| 2 |
SEND=OscSendTests |
|---|
| 3 |
RECEIVE=OscReceiveTest |
|---|
| 4 |
DUMP=OscDump |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
ENDIANESS=OSC_HOST_LITTLE_ENDIAN |
|---|
| 12 |
|
|---|
| 13 |
SENDSOURCES = ./osc/OscSendTests.cpp ./osc/OscOutboundPacketStream.cpp ./osc/OscTypes.cpp ./ip/posix/NetworkingUtils.cpp ./ip/posix/UdpSocket.cpp ./ip/IpEndpointName.cpp |
|---|
| 14 |
SENDOBJECTS = $(SENDSOURCES:.cpp=.o) |
|---|
| 15 |
|
|---|
| 16 |
RECEIVESOURCES = ./osc/OscReceiveTest.cpp ./osc/OscTypes.cpp ./osc/OscReceivedElements.cpp ./osc/OscPrintReceivedElements.cpp ./ip/posix/NetworkingUtils.cpp ./ip/posix/UdpSocket.cpp |
|---|
| 17 |
RECEIVEOBJECTS = $(RECEIVESOURCES:.cpp=.o) |
|---|
| 18 |
|
|---|
| 19 |
DUMPSOURCES = ./osc/OscDump.cpp ./osc/OscTypes.cpp ./osc/OscReceivedElements.cpp ./osc/OscPrintReceivedElements.cpp ./ip/posix/NetworkingUtils.cpp ./ip/posix/UdpSocket.cpp |
|---|
| 20 |
DUMPOBJECTS = $(DUMPSOURCES:.cpp=.o) |
|---|
| 21 |
|
|---|
| 22 |
TESTSOURCES = ./osc/OscUnitTests.cpp ./osc/OscOutboundPacketStream.cpp ./osc/OscTypes.cpp ./osc/OscReceivedElements.cpp ./osc/OscPrintReceivedElements.cpp |
|---|
| 23 |
TESTOBJECTS = $(TESTSOURCES:.cpp=.o) |
|---|
| 24 |
|
|---|
| 25 |
INCLUDES = -I./ip -I./osc |
|---|
| 26 |
COPTS = -Wall -O3 |
|---|
| 27 |
CDEBUG = -Wall -g |
|---|
| 28 |
CXXFLAGS = $(COPTS) $(INCLUDES) -D$(ENDIANESS) |
|---|
| 29 |
LIBS = -lpthread |
|---|
| 30 |
|
|---|
| 31 |
all: test send receive dump |
|---|
| 32 |
|
|---|
| 33 |
test : $(TESTOBJECTS) |
|---|
| 34 |
@if [ ! -d bin ] ; then mkdir bin ; fi |
|---|
| 35 |
$(CXX) -o bin/$(TEST) $+ $(LIBS) |
|---|
| 36 |
send : $(SENDOBJECTS) |
|---|
| 37 |
@if [ ! -d bin ] ; then mkdir bin ; fi |
|---|
| 38 |
$(CXX) -o bin/$(SEND) $+ $(LIBS) |
|---|
| 39 |
receive : $(RECEIVEOBJECTS) |
|---|
| 40 |
@if [ ! -d bin ] ; then mkdir bin ; fi |
|---|
| 41 |
$(CXX) -o bin/$(RECEIVE) $+ $(LIBS) |
|---|
| 42 |
dump : $(DUMPOBJECTS) |
|---|
| 43 |
@if [ ! -d bin ] ; then mkdir bin ; fi |
|---|
| 44 |
$(CXX) -o bin/$(DUMP) $+ $(LIBS) |
|---|
| 45 |
|
|---|
| 46 |
clean: |
|---|
| 47 |
rm -rf bin $(TESTOBJECTS) $(SENDOBJECTS) $(RECEIVEOBJECTS) $(DUMPOBJECTS) |
|---|
| 48 |
|
|---|