Debian Codegraph @

Makefile

raw
1 VERSION = 0.9.26
2
3 PREFIX = /usr
4 DESTDIR =
5
6 CC = g++
7
8 OPTS = -O3 -ffast-math -funroll-loops -Wall -fPIC -DPIC
9 #OPTS = -fPIC -DPIC -g -DDEBUG
10
11 _LDFLAGS = -shared
12 STRIP = strip
13
14 -include defines.make
15
16 CFLAGS += $(OPTS) $(_CFLAGS)
17 LDFLAGS += $(_LDFLAGS) $(CFLAGS)
18
19 PLUG = caps
20
21 SOURCES = $(wildcard *.cc) $(wildcard dsp/*.cc)
22 OBJECTS = $(SOURCES:.cc=.o)
23 HEADERS = $(wildcard *.h) $(wildcard dsp/*.h) $(wildcard util/*.h) $(wildcard dsp/tonestack/*.h)
24
25 DEST = $(PREFIX)/lib/ladspa
26 RDFDEST = $(PREFIX)/share/ladspa/rdf
27
28 # targets following -------------------------------------------------------------
29
30 all: depend $(PLUG).so tags
31
32 run: all
33 @#python bin/enhance_dp_wsop.py
34 @#python -i bin/rack.py White AutoFilter cream.Audio.Meter Pan
35 @#python -i bin/rack.py White AutoFilter Pan
36 @#python -i bin/rack.py Click Plate
37 @#python -i bin/rack.py PhaserII
38 @#~/cream/gdb-python html/graph.py Eq4p,a.f=100,a.gain=30.png
39 @#~/cream/gdb-python bin/eqtest.py
40 @#~/cream/gdb-python bin/fractalstest.py
41 @#python bin/sinsweep.py
42 @#python -i ~/reve/bin/noisegate.py
43 @#rack.py Noisegate AmpVI Plate
44 @#python ~/reve/bin/hum.py
45 @#python bin/cabtest.py
46 @#python bin/spicetest.py
47 @#python bin/test.py
48 @#cd ~/reve && python bin/cabmake.py
49 @python ~/bin/rack.py
50
51 rdf: $(PLUG).rdf
52 $(PLUG).rdf: all tools/make-rdf.py
53 python tools/make-rdf.py > $(PLUG).rdf
54
55 $(PLUG).so: $(OBJECTS)
56 $(CC) $(ARCH) $(LDFLAGS) -o $@ $(OBJECTS)
57
58 .cc.s:
59 $(CC) $(ARCH) $(CFLAGS) -S $<
60
61 .cc.o: depend
62 $(CC) $(ARCH) $(CFLAGS) -o $@ -c $<
63
64 tags: $(SOURCES) $(HEADERS)
65 @-if [ -x /usr/bin/ctags ]; then ctags $(SOURCES) $(HEADERS) >/dev/null 2>&1 ; fi
66
67 install: all
68 @$(STRIP) $(PLUG).so > /dev/null
69 install -d $(DESTDIR)$(DEST)
70 install -m 644 $(PLUG).so $(DESTDIR)$(DEST)
71 install -d $(DESTDIR)$(RDFDEST)
72 install -m 644 $(PLUG).rdf $(DESTDIR)$(RDFDEST)
73
74 fake-install: all
75 -rm $(DESTDIR)$(DEST)/$(PLUG).so
76 ln -s `pwd`/$(PLUG).so $(DESTDIR)$(DEST)/$(PLUG).so
77 -rm $(DESTDIR)$(RDFDEST)/$(PLUG).rdf
78 ln -s `pwd`/$(PLUG).rdf $(DESTDIR)$(RDFDEST)/$(PLUG).rdf
79
80 rdf-install:
81 install -d $(DESTDIR)$(RDFDEST)
82 install -m 644 $(PLUG).rdf $(DESTDIR)$(RDFDEST)
83
84 uninstall:
85 -rm $(DESTDIR)$(DEST)/$(PLUG).so
86 -rm $(DESTDIR)$(RDFDEST)/$(PLUG).rdf
87
88 clean:
89 rm -f $(OBJECTS) $(PLUG).so *.s depend
90
91 version.h:
92 @VERSION=$(VERSION) python tools/make-version.h.py
93
94 dist: all $(PLUG).rdf version.h
95 tools/make-dist.py caps $(VERSION) $(CFLAGS)
96
97 depend: $(SOURCES) $(HEADERS)
98 $(CC) -MM $(CFLAGS) $(DEFINES) $(SOURCES) > depend
99
100 -include depend