| 1 |
|
| 2 |
|
| 3 |
llvm_paths = /usr/bin /opt/local/bin /usr/local/bin |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |