-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
81 lines (52 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# for debian packager
BIN=$(DESTDIR)/usr/bin
MAN=$(DESTDIR)/usr/share/man/man1
# JACK_SESSION=-DJACK_SESSION
CFLAGS=$(JACK_SESSION) -Wall -std=c99 -O3 -fomit-frame-pointer -pipe
CFLAGS_SSE=-DCONNIE_SSE $(CFLAGS) -march=pentium3 -msse -mfpmath=sse -ffast-math
CFLAGS_I386=-DCONNIE_I386 $(CFLAGS)
#TARGETS=connie_i386 connie_sse
TARGETS=connie
all: $(TARGETS)
deb: all
fakeroot debian/rules binary
connie: connie_main.o connie_ui.o reverb.o
gcc $(LDFLAGS) -o $@ $^ -lm -ljack -lconfuse
connie_main.o: connie_main.c connie.h connie_ui.h reverb.h scales.h
gcc -c $(CFLAGS) -o $@ $<
connie_ui.o: connie_ui.c connie.h connie_tg.h connie_ui.h
gcc -c $(CFLAGS) -o $@ $<
reverb.o: reverb.c reverb.h
gcc -c $(CFLAGS) -o $@ $<
connie_sse: connie_main_sse.o connie_ui_sse.o reverb_sse.o
gcc $(LDFLAGS) -o $@ $^ -lm -ljack -lconfuse
connie_main_sse.o: connie_main.c connie.h connie_ui.h reverb.h scales.h
gcc -c $(CFLAGS_SSE) -o $@ $<
connie_ui_sse.o: connie_ui.c connie.h connie_tg.h connie_ui.h
gcc -c $(CFLAGS_SSE) -o $@ $<
reverb_sse.o: reverb.c reverb.h
gcc -c $(CFLAGS_SSE) -o $@ $<
connie_i386: connie_main_i386.o connie_ui_i386.o reverb_i386.o
gcc $(LDFLAGS) -o $@ $^ -lm -ljack -lconfuse
connie_main_i386.o: connie_main.c connie.h connie_ui.h reverb.h scales.h
gcc -c $(CFLAGS_I386) -o $@ $<
connie_ui_i386.o: connie_ui.c connie.h connie_tg.h connie_ui.h
gcc -c $(CFLAGS_I386) -o $@ $<
reverb_i386.o: reverb.c reverb.h
gcc -c $(CFLAGS_I386) -o $@ $<
clean:
rm -f *~ .*~ *.o
distclean: clean
rm $(TARGETS)
rm build-stamp configure-stamp
debclean:
fakeroot debian/rules clean
install: $(TARGETS) connie connie.1
install -s -p $(TARGETS) $(BIN)
install -p connie $(BIN)
install -p connie.1 $(MAN)
uninstall:
cd $(BIN) && rm -f $(TARGETS)
rm -f $(MAN)/connie.1
tar: debclean
sh MKtar.sh