Merge branch 'master' of https://scm.cri.ensmp.fr/git/Faustine
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / architecture / osclib / oscpack / Makefile
1 libname := liboscpack.a
2 system ?= $(shell uname -s)
3
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
8
9 else
10 ifeq ($(system), Linux)
11 subprojects := ip ip/posix osc
12 sources := $(wildcard ip/*.cpp) $(wildcard ip/posix/*.cpp) $(wildcard osc/*.cpp)
13 ARCHFLAGS :=
14
15 else
16 subprojects := ip ip/win32 osc
17 sources := $(wildcard ip/*.cpp) $(wildcard ip/win32/*.cpp) $(wildcard osc/*.cpp)
18 ARCHFLAGS :=
19 endif
20 endif
21
22 VPATH = $(subprojects)
23
24 CXXFLAGS ?= -O3 -Wall -Wuninitialized $(ARCHFLAGS)
25 CXXFLAGS += -Wno-parentheses -I. $(addprefix -I, $(subprojects))
26
27 objects := $(sources:.cpp=.o)
28
29
30 ## TARGETS
31
32 all: $(libname)
33
34 $(libname): $(objects)
35 rm -f $@
36 ar cq $@ $(objects)
37 ranlib $@
38
39 depend :
40 makedepend -fMakefile -w120 -Y -- $(CXXFLAGS) -- $(sources)
41
42 clean :
43 rm -f $(objects)
44 rm -f $(libname)
45
46
47 # DO NOT DELETE
48
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