1 libname
:= liboscpack.a
2 system ?
= $(shell uname
-s
)
4 ifeq ($(system
), Darwin
)
5 subprojects
:= ip ip
/posix osc
6 sources
:= $(wildcard ip
/*.
cpp) $(wildcard ip
/posix
/*.
cpp) $(wildcard osc
/*.
cpp)
7 ARCHFLAGS
:= -arch i386
-arch x86_64
10 ifeq ($(system
), Linux
)
11 subprojects
:= ip ip
/posix osc
12 sources
:= $(wildcard ip
/*.
cpp) $(wildcard ip
/posix
/*.
cpp) $(wildcard osc
/*.
cpp)
16 subprojects
:= ip ip
/win32 osc
17 sources
:= $(wildcard ip
/*.
cpp) $(wildcard ip
/win32
/*.
cpp) $(wildcard osc
/*.
cpp)
22 VPATH
= $(subprojects
)
24 CXXFLAGS ?
= -O3
-Wall
-Wuninitialized
$(ARCHFLAGS
)
25 CXXFLAGS
+= -Wno-parentheses
-I.
$(addprefix -I
, $(subprojects
))
27 objects
:= $(sources
:.
cpp=.o
)
34 $(libname
): $(objects
)
40 makedepend
-fMakefile
-w120
-Y
-- $(CXXFLAGS
) -- $(sources
)
49 ip
/IpEndpointName.o
: ip
/IpEndpointName.h ip
/NetworkingUtils.h
50 ip
/posix
/NetworkingUtils.o
: ip
/NetworkingUtils.h
51 ip
/posix
/UdpSocket.o
: ip
/UdpSocket.h ip
/NetworkingUtils.h ip
/IpEndpointName.h ip
/PacketListener.h ip
/TimerListener.h
52 osc
/OscOutboundPacketStream.o
: osc
/OscOutboundPacketStream.h osc
/OscTypes.h osc
/OscException.h osc
/OscHostEndianness.h
53 osc
/OscPrintReceivedElements.o
: osc
/OscPrintReceivedElements.h osc
/OscReceivedElements.h osc
/OscTypes.h
54 osc
/OscPrintReceivedElements.o
: osc
/OscException.h
55 osc
/OscReceivedElements.o
: osc
/OscReceivedElements.h osc
/OscTypes.h osc
/OscException.h osc
/OscHostEndianness.h
56 osc
/OscTypes.o
: osc
/OscTypes.h