-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
48 lines (40 loc) · 1.05 KB
/
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
TOPDIR=../
include $(TOPDIR)Rules.make
all: freverb$(LIB_SUFFIX) ireverb$(LIB_SUFFIX)
freverb_so=freverb.o
freverb$(LIB_SUFFIX): $(freverb_so)
$(CC) $(SHARED_FLAGS) -o $@ $^ $(MATH_LIBS)
ireverb_so=ireverb.o
ireverb$(LIB_SUFFIX): $(ireverb_so)
$(CC) $(SHARED_FLAGS) -o $@ $^ $(MATH_LIBS)
clean:
rm -f *.o *$(LIB_SUFFIX)
install:
mkdir -p "$(DESTDIR)$(LIBDIROCP)/autoload"
$(CP) freverb$(LIB_SUFFIX) "$(DESTDIR)$(LIBDIROCP)/autoload"
$(CP) ireverb$(LIB_SUFFIX) "$(DESTDIR)$(LIBDIROCP)/autoload"
uninstall:
rm -f "$(DESTDIR)$(LIBDIROCP)/autoload/freverb$(LIB_SUFFIX)"
rm -f "$(DESTDIR)$(LIBDIROCP)/autoload/ireverb$(LIB_SUFFIX)"
freverb.o: freverb.c \
../config.h \
../types.h \
../boot/plinkman.h \
../cpiface/cpiface.h \
../cpiface/vol.h \
../dev/mcp.h \
../dev/postproc.h \
../stuff/err.h \
../stuff/imsrtns.h
$(CC) -O $< -o $@ -c
ireverb.o: ireverb.c \
../config.h \
../types.h \
../boot/plinkman.h \
../cpiface/cpiface.h \
../cpiface/vol.h \
../dev/mcp.h \
../dev/postproc.h \
../stuff/err.h \
../stuff/imsrtns.h
$(CC) -O $< -o $@ -c