Debian Codegraph @

embedded/faustremote/RemoteServer/Makefile

raw symbols SCIP
1 # These paths are searched for llvm-config* in reverse order (/opt/local/bin
2 # is included for compatibility with MacPorts).
3 llvm_paths = /usr/bin /opt/local/bin /usr/local/bin
4
5 # Search heuristic for finding a suitable llvm-config. This will select a
6 # default 'llvm-config', if it's on the PATH. Otherwise it will look for
7 # llvm-config* on the paths above and select the lexicographically greatest
8 # among these. Usually this will give the llvm-config for the latest LLVM
9 # version on your system, preferring later paths in the list (so /usr/local
10 # will be considered before /usr). If none of these work then you can either
11 # link a suitable llvm-config to a location somewhere on your PATH, or just
12 # set LLVM_CONFIG manually.
13
14 LLVM_CONFIG = $(lastword $(wildcard /usr/bin/llvm-config* /opt/local/bin/llvm-config* /usr/local/bin/llvm-config*) $(shell which llvm-config 2> /dev/null))
15
16 CC = gcc -O3
17 CXX = g++ -O3 -std=c++11 -fvisibility=hidden
18 DEFINE = D_REENTRANT
19 INCPATH = -I. -I../ -I../../../architecture -I../../../compiler/generator -I../../../compiler/generator/llvm -I../../../compiler/generator/interpreter -I../../../compiler/utils -I/usr/include -I/opt/local/include
20 LINK = g++
21
22 system ?= $(shell uname -s)
23
24 sources = $(wildcard *.cpp)
25 objects = $(sources:.cpp=.o)
26
27 ifeq ($(system), Darwin)
28 LIBS = ../../../build/lib/libfaust.a -framework CoreAudio -framework AudioUnit -framework CoreServices -framework CoreFoundation -lportaudio -ljack -ljacknet -L/opt/local/lib ../../../build/lib/libOSCFaust.a ../../../build/lib/libHTTPDFaust.a -framework CoreMIDI -lmicrohttpd -lpthread `$(LLVM_CONFIG) --ldflags` `$(LLVM_CONFIG) --libs` -lz -lncurses -ldl -llo
29 else
30 LIBS = ../../../build/lib/libfaust.a ../../../build/lib/libOSCFaust.a ../../../architecture/httpdlib/libHTTPDFaust.a -ljack -ljacknet -lmicrohttpd -lpthread `$(LLVM_CONFIG) --ldflags` `$(LLVM_CONFIG) --libs` -lz -lncurses -ldl -llo
31 endif
32
33 ####### Files
34
35 SOURCES = remote_server.cpp main.cpp ../utilities.cpp
36
37 OBJECTS = remote_server.o main.o utilities.o
38 DESTDIR =
39 TARGET = RemoteServer
40
41 first: all
42
43 ####### Build rules
44
45 all: Makefile $(TARGET)
46
47 $(TARGET): $(OBJECTS)
48 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
49
50 clean:
51 rm -f $(OBJECTS) $(TARGET)
52
53 ####### Compile
54
55 remote_server.o: remote_server.cpp remote_server.h
56 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o remote_server.o remote_server.cpp
57
58 main.o: main.cpp remote_server.h
59 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
60
61 utilities.o: ../utilities.h
62 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o utilities.o ../utilities.cpp