-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 658 Bytes
/
Makefile
File metadata and controls
46 lines (34 loc) · 658 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
43
44
45
46
TARGETS = \
exsynthia \
mf0 \
#
all: $(TARGETS)
MYLIBS = \
linenoise.o \
audio.o \
miniwav.o \
minietf.o \
#
MYINC = korg
LIBS = \
-lm \
-lpthread \
#
ifeq ($(shell uname), Linux)
LIBS += -lasound -latomic
endif
DEBUG = -ggdb
minietf.o : minietf.c minietf.h
gcc $(DEBUG) -c minietf.c
miniwav.o : miniwav.c miniwav.h
gcc $(DEBUG) -c miniwav.c
linenoise.o : linenoise.c linenoise.h
gcc $(DEBUG) -c linenoise.c
audio.o : audio.c audio.h
gcc $(DEBUG) -c audio.c
exsynthia: exsynthia.c $(MYLIBS) korg/korg.h plot.c
gcc $(DEBUG) -I$(MYINC) exsynthia.c $(MYLIBS) -o $@ $(LIBS) plot.c
mf0: mf0.c
gcc mf0.c -o mf0
clean:
rm -f $(TARGETS) $(MYLIBS)