-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
248 lines (213 loc) · 7.97 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
PACKAGE_NAME = ll-plugins
PACKAGE_VERSION = 0.2.8
PKG_DEPS = \
cairomm-1.0>=1.2.4 \
gtkmm-2.4>=2.8.8 \
jack>=0.109.0 \
lv2-plugin>=1.0.0 \
lv2-gui>=1.0.0 \
paq>=1.0.0 \
sndfile>=1.0.18 \
samplerate>=0.1.2
ifeq ($(BUILD_ELVEN),1)
PKG_DEPS += \
lash-1.0>=0.5.1
endif
DOCS = AUTHORS COPYING INSTALL ChangeLog README
ARCHIVES = \
libkeyboard.a \
libvuwidget.a
ifeq ($(BUILD_ELVEN),1)
PROGRAMS = elven
endif
LV2_BUNDLES = \
arpeggiator.lv2 \
control2midi.lv2 \
klaviatur.lv2 \
klaviatur_gtk.lv2 \
math-constants.lv2 \
math-functions.lv2 \
peakmeter.lv2 \
peakmeter_gtk.lv2 \
rudolf556.lv2 \
rudolf556_gtk.lv2 \
sineshaper.lv2 \
sineshaper_gtk.lv2
# Archives with useful code bits
libkeyboard_a_SOURCES = keyboard.hpp keyboard.cpp
libkeyboard_a_CFLAGS = `pkg-config --cflags gtkmm-2.4`
libkeyboard_a_SOURCEDIR = libraries/widgets
libvuwidget_a_SOURCES = vuwidget.hpp vuwidget.cpp
libvuwidget_a_CFLAGS = `pkg-config --cflags gtkmm-2.4`
libvuwidget_a_SOURCEDIR = libraries/widgets
# Executable programs
ifeq ($(BUILD_ELVEN),1)
elven_SOURCES = \
debug.hpp \
lv2guihost.hpp lv2guihost.cpp \
lv2host.hpp lv2host.cpp \
main.cpp \
midiutils.hpp
elven_CFLAGS = `pkg-config --cflags jack gtkmm-2.4 lash-1.0 sigc++-2.0 lv2-plugin lv2-gui paq` -Ilibraries/components -DVERSION=\"$(PACKAGE_VERSION)\"
elven_LDFLAGS = `pkg-config --libs jack gtkmm-2.4 lash-1.0 sigc++-2.0 paq` -lpthread
elven_SOURCEDIR = programs/elven
endif
# The plugins
PLUGINARCHIVES = `pkg-config --libs lv2-plugin`
PLUGINCFLAGS = `pkg-config --cflags lv2-plugin`
ADVANCEDARCHIVES = $(PLUGINARCHIVES)
ADVANCEDCFLAGS = $(PLUGINCFLAGS)
RESIDENTGUI = lv2soname '<http://ll-plugins.nongnu.org/lv2/dev/klaviatur/0.0.0/gui>' '<http://lv2plug.in/ns/extensions/ui\#requiredFeature>' -lgtkmm-2.4
# Control2MIDI
control2midi_lv2_MODULES = control2midi.so
control2midi_lv2_DATA = manifest.ttl control2midi.ttl
control2midi_lv2_PEGFILES = control2midi.peg
control2midi_lv2_SOURCEDIR = plugins/control2midi
control2midi_so_SOURCES = control2midi.cpp
control2midi_so_CFLAGS = $(PLUGINCFLAGS)
control2midi_so_LDFLAGS = $(PLUGINARCHIVES)
# Klaviatur
klaviatur_lv2_MODULES = klaviatur.so
klaviatur_lv2_DATA = manifest.ttl klaviatur.ttl
klaviatur_lv2_PEGFILES = klaviatur.peg
klaviatur_lv2_SOURCEDIR = plugins/klaviatur
klaviatur_so_SOURCES = klaviatur.cpp
klaviatur_so_CFLAGS = $(PLUGINCFLAGS) -Ilibraries/components
klaviatur_so_LDFLAGS = $(PLUGINARCHIVES)
# Klaviatur GUI
klaviatur_gtk_lv2_MODULES = klaviatur_gtk.so
klaviatur_gtk_lv2_MANIFEST = gui_manifest.ttl
klaviatur_gtk_lv2_SOURCEDIR = plugins/klaviatur
klaviatur_gtk_so_SOURCES = klaviatur_gtk.cpp
klaviatur_gtk_so_CFLAGS = `pkg-config --cflags lv2-gui` -Ilibraries/widgets
klaviatur_gtk_so_LDFLAGS = `pkg-config --libs lv2-gui`
klaviatur_gtk_so_ARCHIVES = libraries/widgets/libkeyboard.a
klaviatur_gtk_lv2_POSTINSTALL = $(RESIDENTGUI) >> klaviatur.lv2/klaviatur.ttl
# Arpeggiator
arpeggiator_lv2_MODULES = arpeggiator.so
arpeggiator_so_SOURCES = arpeggiator.cpp
arpeggiator_so_CFLAGS = $(PLUGINCFLAGS)
arpeggiator_so_LDFLAGS = $(PLUGINARCHIVES)
arpeggiator_lv2_DATA = manifest.ttl arpeggiator.ttl
arpeggiator_lv2_SOURCEDIR = plugins/arpeggiator
# Peak meter
peakmeter_lv2_MODULES = peakmeter.so
peakmeter_so_SOURCES = peakmeter.cpp
peakmeter_lv2_PEGFILES = peakmeter.peg
peakmeter_so_CFLAGS = $(PLUGINCFLAGS)
peakmeter_so_LDFLAGS = $(PLUGINARCHIVES)
peakmeter_lv2_DATA = manifest.ttl peakmeter.ttl icon.svg
peakmeter_lv2_SOURCEDIR = plugins/peakmeter
# Peak meter GUI
peakmeter_gtk_lv2_MODULES = peakmeter_gtk.so
peakmeter_gtk_lv2_SOURCEDIR = plugins/peakmeter
peakmeter_gtk_lv2_MANIFEST = gui_manifest.ttl
peakmeter_gtk_so_SOURCES = peakmeter_gtk.cpp
peakmeter_gtk_so_CFLAGS = `pkg-config --cflags gtkmm-2.4 lv2-gui` -Ilibraries/widgets
peakmeter_gtk_so_LDFLAGS = `pkg-config --libs gtkmm-2.4 lv2-gui`
peakmeter_gtk_so_ARCHIVES = libraries/widgets/libvuwidget.a
# VU meter GUI
envelope_gtk_lv2_MODULES = envelope_gtk.so
envelope_gtk_lv2_SOURCEDIR = plugins/envelope
envelope_gtk_lv2_MANIFEST = gui_manifest.ttl
envelope_gtk_so_SOURCES = envelope_gtk.cpp
envelope_gtk_so_CFLAGS = `pkg-config --cflags gtkmm-2.4 lv2-gui` -Ilibraries/widgets
envelope_gtk_so_LDFLAGS = `pkg-config --libs gtkmm-2.4 lv2-gui`
envelope_gtk_so_ARCHIVES = libraries/widgets/libenvelopeeditor.a
# Math constants
math-constants_lv2_MODULES = math-constants.so
math-constants_so_SOURCES = math-constants.cpp
math-constants_so_CFLAGS = `pkg-config --cflags lv2-plugin`
math-constants_so_LDFLAGS = `pkg-config --libs lv2-plugin`
math-constants_lv2_DATA = \
manifest.ttl math-constants.ttl \
e.svg pi.svg pi_2.svg pi_4.svg sqrt2.svg \
1_pi.svg 1_sqrt2.svg 2_pi.svg 2_sqrtpi.svg
math-constants_lv2_SOURCEDIR = plugins/math-constants
# Math functions
math-functions_lv2_MODULES = math-functions.so
math-functions_so_SOURCES = math-functions.cpp
math-functions_so_CFLAGS = `pkg-config --cflags lv2-plugin`
math-functions_so_LDFLAGS = `pkg-config --libs lv2-plugin`
math-functions_lv2_DATA = manifest.ttl math-functions.ttl
math-functions_lv2_SOURCEDIR = plugins/math-functions
# Sineshaper
sineshaper_lv2_MODULES = sineshaper.so
sineshaper_lv2_DATA = manifest.ttl sineshaper.ttl presets.ttl icon.svg
sineshaper_lv2_SOURCEDIR = plugins/sineshaper
sineshaper_lv2_PEGFILES = sineshaper.peg
sineshaper_so_SOURCES = \
adsr.hpp \
delay.hpp \
frequencytable.hpp \
midiiterator.hpp \
sineoscillator.hpp \
sineshaper.hpp sineshaper.cpp \
sineshaperports.hpp \
slide.hpp \
wavewrapper.hpp
sineshaper_so_CFLAGS = `pkg-config --cflags lv2-plugin` -Ilibraries/components
sineshaper_so_LDFLAGS = `pkg-config --libs lv2-plugin`
# Sineshaper GUI
sineshaper_gtk_lv2_MODULES = sineshaper_gtk.so
sineshaper_gtk_lv2_MANIFEST = gui_manifest.ttl
sineshaper_gtk_lv2_DATA = dial.png sineshaper.png icon.svg
sineshaper_gtk_lv2_SOURCEDIR = plugins/sineshaper
sineshaper_gtk_so_SOURCES = \
sineshaper_gtk.cpp \
sineshaperwidget.cpp sineshaperwidget.hpp \
skindial_gtkmm.cpp skindial_gtkmm.hpp
sineshaper_gtk_so_CFLAGS = `pkg-config --cflags lv2-gui`
sineshaperwidget_cpp_CFLAGS = -DVERSION=\"$(PACKAGE_VERSION)\"
sineshaper_gtk_so_LDFLAGS = `pkg-config --libs lv2-gui`
sineshaper_gtk_so_SOURCEDIR = plugins/sineshaper
# Rudolf 556
rudolf556_lv2_MODULES = rudolf556.so
rudolf556_lv2_DATA = \
manifest.ttl rudolf556.ttl \
icon.svg \
bass_h00.flac bass_h05.flac bass_h10.flac \
snare_bonk.flac snare_noise.flac \
hihat_base.flac hihat_hit.flac
rudolf556_lv2_SOURCEDIR = plugins/rudolf556
rudolf556_lv2_PEGFILES = rudolf556.peg
rudolf556_so_SOURCES = rudolf556.cpp
rudolf556_so_CFLAGS = `pkg-config --cflags lv2-plugin sndfile samplerate`
rudolf556_so_LDFLAGS = `pkg-config --libs lv2-plugin sndfile samplerate`
# Rudolf 556 GUI
rudolf556_gtk_lv2_MODULES = rudolf556_gtk.so
rudolf556_gtk_lv2_MANIFEST = gui_manifest.ttl
rudolf556_gtk_lv2_DATA = rudolf556.png
rudolf556_gtk_lv2_SOURCEDIR = plugins/rudolf556
rudolf556_gtk_so_SOURCES = \
rudolf556_gtk.cpp \
rudolf556widget.cpp rudolf556widget.hpp
rudolf556_gtk_so_CFLAGS = `pkg-config --cflags lv2-gui`
rudolf556_gtk_so_LDFLAGS = `pkg-config --libs lv2-gui`
# The shared headers need to go in the distribution too
EXTRA_DIST = \
libraries/components/adsr.hpp \
libraries/components/chebyshevshaper.hpp \
libraries/components/dcblocker.hpp \
libraries/components/delay.hpp \
libraries/components/delayline.hpp \
libraries/components/envelopegenerator.hpp \
libraries/components/filter.hpp \
libraries/components/frequencytable.hpp \
libraries/components/householderfdn.hpp \
libraries/components/ladspawrapper.hpp \
libraries/components/markov.hpp \
libraries/components/monophonicmidinote.hpp \
libraries/components/monostep.hpp \
libraries/components/mooglpf.hpp \
libraries/components/pdosc.hpp \
libraries/components/polyphonicmidinote.hpp \
libraries/components/programmanager.hpp \
libraries/components/randomsineoscillator.hpp \
libraries/components/ringbuffer.hpp \
libraries/components/sineoscillator.hpp \
libraries/components/slide.hpp \
libraries/components/voicehandler.hpp \
libraries/components/wavewrapper.hpp
# Do the magic
include Makefile.template