-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
executable file
·46 lines (33 loc) · 1018 Bytes
/
Makefile
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
OBJS = \
./src/BeepBoxMain.o \
./src/Mixer.o \
./src/LoudnessStats.o \
./src/ebur128/ebur128.o
all: BeepBox
DEPS=$(OBJS:.o=.d)
depend: $(DEPS)
include $(DEPS)
BeepBox: $(OBJS)
mkdir -p ./bin
g++ $(OBJS) -L. -L./lib -lBeepingCore -lm /usr/local/lib/libsndfile.a /usr/local/lib/libFLAC.a /usr/local/lib/libogg.a /usr/local/lib/libvorbis.a /usr/local/lib/libvorbisenc.a -o ./bin/$@
clean:
rm -rf $(OBJS) $(DEPS) ./bin/BeepBox
rm -rf $(OBJS) $(DEPS) ./bin
CXXFLAGS= -w -DLINUX -DOSX -I. -I/usr/local/include -I./lib \
-I./lib/include -I./src/ebur128 \
-I/opt/local/include -O3 -DNDEBUG -ffast-math -funroll-loops
%.o: %.c
gcc $(CXXFLAGS) -c -o $@ $<
%.d: %.c
echo $(@:.d=.o): \\> $@
gcc $(CXXFLAGS) -M -o - $< | sed s/.*:// >> $@
%.o: %.cxx
g++ $(CXXFLAGS) -c -o $@ $<
%.d: %.cxx
echo $(@:.d=.o): \\> $@
g++ $(CXXFLAGS) -M -o - $< | sed s/.*:// >> $@
%.o: %.cpp
g++ $(CXXFLAGS) -c -o $@ $<
%.d: %.cpp
echo $(@:.d=.o): \\> $@
g++ $(CXXFLAGS) -M -o - $< | sed s/.*:// >> $@