-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.osx
126 lines (90 loc) · 2.96 KB
/
Makefile.osx
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
CC=gcc
CPP=g++
INCLUDES=-I $(MARSYAS_DIR) -I $(INCLUDE_DIR) -I $(SRC) -I $(GLM_DIR)\
-I $(GLEW_DIR)include/ -I $(GLFW3_DIR)include/ -I $(IMGUI_DIR) -I $(GLFW3_IMGUI_DIR)\
-I $(LIBAUDIODECODERINCL)include/ -I $(PORTAUDIO)include/ -I $(IMGUI_ADDONS)
MARSYAS_DIR=./marsyas/
INCLUDE_DIR=./include/
GLM_DIR=../lib-macOS/glm/
GLEW_DIR=../lib-macOS/glew-2.0.0/
GLFW3_DIR=../lib-macOS/glfw-3.2.1/
IMGUI_DIR=../lib-macOS/imgui/
GLFW3_IMGUI_DIR=../lib-macOS/imgui/examples/opengl2_example/
IMGUI_ADDONS=../lib-macOS/imgui/examples/addons/
LIBAUDIODECODER=../lib-macOS/libaudiodecoder/src/.obj/
LIBAUDIODECODERINCL=../lib-macOS/libaudiodecoder/
PORTAUDIO=../lib-macOS/portaudio/
SRC=./src/
CFLAGS= -stdlib=libc++ -D__MACOSX_CORE__ -Dusleep1 $(INCLUDES) -O3 -c
LIBS= -L $(GLEW_DIR)/lib/ -lglew -L $(GLFW3_DIR)/build/src -lglfw3 -L $(LIBAUDIODECODER)/ -laudiodecoder -L $(PORTAUDIO)/build/ -lportaudio
FRAMEWORK=-F /Library/Frameworks/ -framework CoreAudio -framework CoreMIDI -framework CoreFoundation\
-framework OpenGL -framework GLUT -framework Foundation -framework IOKit\
-framework AppKit -framework AudioToolBox -framework CoreVideo
OBJS=chuck_fft.o Thread.o Virtuoso_Reality.o Stk.o Windowing_System.o \
Centroid.o DownSampler.o Flux.o LPC.o MFCC.o RMS.o Rolloff.o \
System.o fvec.o AutoCorrelation.o Communicator.o Hamming.o \
MagFFT.o NormRMS.o MarSignal.o fmatrix.o main.o imgui_impl_glfw.o imgui.o\
imguifilesystem.o imgui_draw.o imgui_demo.o
Virtuoso_Reality: $(OBJS)
$(CPP) -v -o $@ $(OBJS) $(FRAMEWORK) $(LIBS)
imguifilesystem.o:
$(CPP) $(CFLAGS) $(IMGUI_ADDONS)$*.cpp
imgui_impl_glfw.o:
$(CPP) $(CFLAGS) $(IMGUI_DIR)/examples/opengl2_example/$*.cpp
imgui_draw.o:
$(CPP) $(CFLAGS) $(IMGUI_DIR)$*.cpp
imgui_demo.o:
$(CPP) $(CFLAGS) $(IMGUI_DIR)$*.cpp
imgui.o:
$(CPP) $(CFLAGS) $(IMGUI_DIR)$*.cpp
Centroid.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
DownSampler.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
Flux.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
LPC.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
MFCC.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
RMS.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
Rolloff.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
System.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
fvec.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
AutoCorrelation.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
Communicator.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
Hamming.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
MagFFT.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
NormRMS.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
MarSignal.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
fmatrix.o:
$(CPP) $(CFLAGS) $(MARSYAS_DIR)$*.cpp
chuck_fft.o:
$(CPP) $(CFLAGS) $(SRC)*.c
Stk.o:
$(CPP) $(CFLAGS) $(SRC)*.cpp
Thread.o:
$(CPP) $(CFLAGS) $(SRC)*.cpp
Windowing_System.o:
$(CPP) $(CFLAGS) $(SRC)*.cpp
Virtuoso_Reality.o:
$(CPP) $(CFLAGS) $(SRC)*.cpp
main.o:
$(CPP) $(CFLAGS) $(SRC)*.cpp
.o: $*.h
.c.o: $*.h $*.c
$(CC) $(CFLAGS) $*.c
.cpp.o: $*.h $*.cpp
$(CC) $(CFLAGS) $*.cpp
clean:
rm -f Virtuoso_Reality *~ *.o