forked from pichenettes/eurorack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·44 lines (34 loc) · 974 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
PACKAGES = clouds/dsp clouds/dsp/pvoc clouds/test stmlib/utils stmlib/dsp clouds
VPATH = $(PACKAGES)
TARGET = clouds_test
BUILD_ROOT = build/
BUILD_DIR = $(BUILD_ROOT)$(TARGET)/
CC_FILES = atan.cc \
clouds_test.cc \
correlator.cc \
granular_processor.cc \
mu_law.cc \
random.cc \
resources.cc \
frame_transformation.cc \
phase_vocoder.cc \
stft.cc \
units.cc
OBJ_FILES = $(CC_FILES:.cc=.o)
OBJS = $(patsubst %,$(BUILD_DIR)%,$(OBJ_FILES)) $(STARTUP_OBJ)
DEPS = $(OBJS:.o=.d)
DEP_FILE = $(BUILD_DIR)depends.mk
all: clouds_test
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
$(BUILD_DIR)%.o: %.cc
g++ -c -DTEST -g -Wall -Werror -I. $< -o $@
$(BUILD_DIR)%.d: %.cc
g++ -MM -DTEST -I. $< -MF $@ -MT $(@:.d=.o)
clouds_test: $(OBJS)
g++ -o $(TARGET) $(OBJS)
depends: $(DEPS)
cat $(DEPS) > $(DEP_FILE)
$(DEP_FILE): $(BUILD_DIR) $(DEPS)
cat $(DEPS) > $(DEP_FILE)
include $(DEP_FILE)