forked from faudio/faudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.new
107 lines (90 loc) · 1.89 KB
/
Makefile.new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.PHONY: test
.PHONY: clean
test: bin/fa_tests
bin/fa_tests
CC = clang -fcolor-diagnostics
FILES= \
fa/core.c \
fa/*.c \
fa/atomic/*.c \
fa/device/*.c \
fa/plot/*.c \
fa/string/*.c \
platform/macosx/fa/*.c \
platform/macosx/fa/plot/*.m \
platform/macosx/fa/system/*.c
LIBS= \
-lportmidi \
-lsndfile \
-lportaudio \
-liconv \
-framework Cocoa \
-framework CoreAudio \
-framework CoreMidi \
-framework AudioUnit \
-framework AudioToolbox \
-framework CorePlot \
-framework QuartzCore
# -lfluidsynth \
LIB_DIRS = \
-L external/portaudio/result/lib \
-L external/portmidi/result/lib
# -L external/fluidsynth/result/lib
# -L external/sndfile/result/lib \
MISC_OPTS = \
-mmin-macosx-version=10.5 -mmacosx-version-min=10.5 \
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk \
-ObjC -all_load
FRAMEWORK_OPTS = \
-shared \
-o ../Frameworks/FA.framework/Versions/2.0.0alpha4/FA \
-install_name /Users/hans/audio/build/Frameworks/FA.framework/Versions/2.0.0alpha4/FA
SHARED_OPTS = \
-shared \
-o lib/libfa.dylib \
-install_name /usr/local/lib/libfa.dylib
STATIC_OPTS = \
-static \
-o lib/libfa.a
TEST_OPTS = \
-o bin/fa_tests
lib/libfa.dylib: bin/config.h
$(CC) -arch x86_64 \
$(SHARED_OPTS) \
-I include \
-I bin \
$(LIB_DIRS) \
$(LIBS) \
$(FILES)
lib/libfa.a: bin/config.h
$(CC) -arch x86_64 \
$(STATIC_OPTS) \
-I include \
-I bin \
$(LIB_DIRS) \
$(LIBS) \
$(FILES)
bin/fa_tests: bin/config.h
$(CC) -arch x86_64 \
$(TEST_OPTS) \
-I include \
-I bin \
$(LIB_DIRS) \
$(LIBS) \
$(FILES) \
test/main.c
bin/fa_list_midi: bin/config.h
$(CC) -arch x86_64 \
-o bin/fa_list_midi \
-I include \
-I bin \
$(LIB_DIRS) \
$(LIBS) \
$(FILES) \
tools/fa_list_midi.c
bin/config.h:
mkdir -p bin
cp include/config.h_ bin/config.h
clean:
rm -f bin/*
rm -f lib/*