-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (27 loc) · 998 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (27 loc) · 998 Bytes
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
appname := lantern-server
#CXX := g++-5
CXXFLAGS := -std=c++11 -I. -I./lib -I./lib/websocketpp -I./lib/shairplay/include -I./lib/Gist/src/
CXXFLAGS += -DUSE_FFTW
CXXFLAGS += -g
srcfiles := $(shell find ./src -name "*.cpp")
srcfiles += $(shell find ./lib/Gist/src/core -name "*.cpp")
srcfiles += ./lib/Gist/src/fft/WindowFunctions.cpp
srcfiles += $(shell find ./lib/Gist/src/mfcc -name "*.cpp")
srcfiles += $(shell find ./lib/Gist/src/onset-detection-functions -name "*.cpp")
srcfiles += $(shell find ./lib/Gist/src/pitch -name "*.cpp")
srcfiles += ./lib/Gist/src/Gist.cpp
objects := $(patsubst %.cpp, %.o, $(srcfiles))
all: $(appname)
LDLIBS += -pthread -lfftw3
LDFLAGS += -luuid -lboost_system -lssl -lcrypto -lshairplay
$(appname): $(objects)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(appname) $(objects) $(LDLIBS)
depend: .depend
.depend: $(srcfiles)
rm -f ./.depend
$(CXX) $(CXXFLAGS) -MM $^>>./.depend;
clean:
rm -f $(objects)
dist-clean: clean
rm -f *~ .depend
include .depend