Debian Codegraph @

embedded/faustremote/Makefile

raw symbols SCIP
1
2 sources = $(wildcard RemoteClient/*.cpp)
3 sources += utilities.cpp
4 sources += $(wildcard RemoteServer/*.cpp)
5
6 objects = $(sources:.cpp=.o)
7
8 os := $(shell uname)
9 system ?= $(shell uname -s)
10
11 PREFIX ?= /usr/local
12 INCPATH = -I. -I../../compiler -I../../compiler/errors -I../../architecture -I../../compiler/utils -I../../compiler/generator/ -I../../compiler/generator/llvm -I../../compiler/generator/interpreter -I/usr/include -I/opt/local/include -F/Library/
13
14 ifeq ($(system), Darwin)
15 CXX = g++
16 CXXFLAGS = -O3 $(INCPATH) -arch x86_64 -std=c++11 -fvisibility=hidden
17 LIB_EXT = dylib
18 else
19 ARCHFLAGS :=
20 CXXFLAGS = -O3 $(INCPATH) -std=c++11 -fvisibility=hidden
21 LIBFLAGS := --mode=link --tag=CXX -fvisibility=hidden
22 LIB_EXT = so
23 endif
24
25 first: all
26
27 ####### Build rules
28
29 all: $(objects) libfaustremote.a
30
31
32 ifeq ($(system), Darwin)
33 libfaustremote.a : $(objects)
34 libtool -static $(LIBFLAGS) $(objects) -o libfaustremote.a
35 else
36 libfaustremote.a : $(objects)
37 rm -f $@
38 ar cq $@ $(objects)
39 ranlib $@
40 endif
41
42 install:
43 install libfaustremote.a /usr/local/lib
44 cp remote-dsp.h /usr/local/include/faust/dsp/
45
46 clean :
47 rm -f $(objects) libfaustremote.a
48
49 depend :
50 makedepend -w120 -Y -- $(sources)
51
52
53 # DO NOT DELETE
54
55 RemoteClient/Sources/remote_dsp_aux.o: RemoteClient/Sources/remote_dsp_aux.h
56 RemoteClient/Sources/remote_dsp_aux.o: utilities.h
57 utilities.o: utilities.h
58 RemoteServer/remote_server.o: RemoteServer/remote_server.h utilities.h