-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
52 lines (43 loc) · 787 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
47
48
49
50
51
52
.PHONY: all clean test fmt
SOURCES = \
amfm.cpp \
amfm.h \
amfm_audio.h \
amfm_test.c \
manual.cpp \
manual.h \
manual_test.c \
preamp_audio.h \
roto.ino \
roto_test.c \
tonewheel_osc.cpp \
tonewheel_osc.h \
tonewheel_osc_audio.h \
tonewheel_osc_test.c \
vibrato.cpp \
vibrato.h \
vibrato_audio.h \
vibrato_test.c
ROTO_TEST_OBJS = \
amfm.o \
amfm_test.o \
manual.o \
manual_test.o \
roto_test.o \
tonewheel_osc.o \
tonewheel_osc_test.o \
vibrato.o \
vibrato_test.o
CFLAGS=-DROTO_TEST
.c.o:
$(CC) $(CFLAGS) -c -g -o $@ $<
.cpp.o:
$(CXX) $(CFLAGS) -c -g -o $@ $<
roto.test: $(ROTO_TEST_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -g -o $@ $(ROTO_TEST_OBJS)
test: roto.test
./roto.test
fmt:
clang-format -i $(SOURCES)
clean:
rm -f $(ROTO_TEST_OBJS) roto.test