-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.am
220 lines (200 loc) · 6.55 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
# Copyright (C) 2018-2021 Jérémy Oden <[email protected]>
# Copyright (C) 2018-2021 Nicolas Boulenguez <[email protected]>
# Unless otherwise specified, the numbers refer to
# https://www.gnu.org/software/automake/manual/automake.html
######################################################################
# https://www.gnu.org/software/gettext/manual/gettext.html
# 13.4.8 aclocal.m4 at top level
# Cache shared with autoconf.
ACLOCAL_AMFLAGS = -I m4
######################################################################
# 8 building programs and libraries
# Delegate library handling to libtool.
lib_LTLIBRARIES = libexadrums.la
# libtool 7.3 updating library version information
# Downstream packagers may have to override the SO version.
exadrums_libtool_version_info = 2:0:0
libexadrums_la_CXXFLAGS = \
-Wall \
-pthread \
-std=c++23 $(alsa_CFLAGS) $(tinyxml2_CFLAGS) $(minizip_CFLAGS)
libexadrums_la_LDFLAGS = \
-Wl,--as-needed \
-Wl,--no-allow-shlib-undefined \
-Wl,--no-copy-dt-needed-entries \
-Wl,--no-undefined \
-pthread \
-version-info $(exadrums_libtool_version_info)
# The -pthread compiler and linker option links with libpthread, but
# also selects various architecture-dependent settings.
libexadrums_la_LIBADD = $(alsa_LIBS) $(tinyxml2_LIBS) $(minizip_LIBS) -lpthread -lstdc++fs -latomic
# The standard C++ library does not include libatomic on some
# architectures (armel mips mipsel). It does not hurt to always list
# it here, it will only be effective when used thanks to --as-needed.
# Distribute and embed into the library.
libexadrums_la_SOURCES = \
Api/Config/Config_api.cpp \
Api/Config/TriggerParameters_api.cpp \
Api/KitCreator/KitCreator_api.cpp \
Api/eXaDrums.cpp \
DrumKit/DrumModule/Module.cpp \
DrumKit/DrumModule/Module.h \
DrumKit/DrumModule/Recorder.cpp \
DrumKit/DrumModule/Recorder.h \
DrumKit/DrumModule/TrigSound.h \
DrumKit/Instruments/Cymbals/TestHiHat.cpp \
DrumKit/Instruments/Cymbals/TestHiHat.h \
DrumKit/Instruments/Drums/TestDrum.cpp \
DrumKit/Instruments/Drums/TestDrum.h \
DrumKit/Instruments/Instrument.cpp \
DrumKit/Instruments/Instrument.h \
DrumKit/Instruments/InstrumentFactory.h \
DrumKit/Instruments/InstrumentParameters.h \
DrumKit/Instruments/InstrumentSoundInfo.h \
DrumKit/Instruments/InstrumentType.h \
DrumKit/Instruments/Pads/Pad.cpp \
DrumKit/Instruments/Pads/Pad.h \
DrumKit/Kits/Kit.cpp \
DrumKit/Kits/Kit.h \
DrumKit/Kits/KitCreator.cpp \
DrumKit/Kits/KitManager.cpp \
DrumKit/Triggers/Curves/Curves.h \
DrumKit/Triggers/TriggerFactory.h \
DrumKit/Triggers/TriggerManager.cpp \
DrumKit/Triggers/TriggerState.h \
DrumKit/Triggers/Triggers/ContinuousTrigger.cpp \
DrumKit/Triggers/Triggers/ContinuousTrigger.h \
DrumKit/Triggers/Triggers/DiscreteTrigger.cpp \
DrumKit/Triggers/Triggers/DiscreteTrigger.h \
DrumKit/Triggers/Triggers/Trigger.cpp \
DrumKit/Triggers/Triggers/Trigger.h \
IO/HddSensor.cpp \
IO/HddSensor.h \
IO/ISensor.h \
IO/MIDI.h \
IO/MIDIFactory.h \
IO/SerialMidi.h \
IO/USBMIDI.h \
IO/SpiDevices/SpiDev.cpp \
IO/SpiDevices/SpiDev.h \
IO/SpiDevices/SpiDevFactory.h \
IO/SpiSensor.cpp \
IO/SpiSensor.h \
IO/SensorFactory.h \
IO/VirtualSensor.h \
Metronome/ClickTypes.h \
Metronome/Metronome.cpp \
Metronome/Metronome.h \
Metronome/MetronomeParameters.h \
Sound/Alsa/Alsa.cpp \
Sound/Alsa/Alsa.h \
Sound/Alsa/AlsaParameters.cpp \
Sound/Alsa/AlsaParameters.h \
Sound/Mixer/Mixer.cpp \
Sound/Mixer/Mixer.h \
Sound/Sound.cpp \
Sound/Sound.h \
Sound/SoundBank/SoundBank.cpp \
Sound/SoundBank/SoundBank.h \
Sound/SoundProcessor/SoundProcessor.cpp \
Sound/SoundProcessor/SoundProcessor.h \
Sound/SoundState.h \
Sound/Util/WavUtil.h \
Util/Crypt.h \
Util/ErrorHandling.h \
Util/Misc.h \
Util/Parsing.h \
Util/SimpleSafeQueue.h \
Util/Threading.h \
Util/Time.h \
Util/Zip.h
# Install into pkgincludedir, but do not distribute (it is generated
# by configure.ac).
nobase_nodist_pkginclude_HEADERS = \
Api/Version.h
# Distribute and install into pkgincludedir.
nobase_pkginclude_HEADERS = \
Api/Config/AlsaParams_api.h \
Api/Config/Config_api.h \
Api/Config/Config_api.hpp \
Api/Config/SpiDevParameters_api.h \
Api/Config/TriggerParameters_api.h \
Api/KitCreator/KitCreator_api.h \
Api/KitCreator/KitCreator_api.hpp \
Api/eXaDrums.h \
Api/eXaDrums.hpp \
DrumKit/Instruments/InstrumentParameters.h \
DrumKit/Instruments/InstrumentSoundInfo.h \
DrumKit/Instruments/InstrumentType.h \
DrumKit/Kits/KitCreator.h \
DrumKit/Kits/KitManager.h \
DrumKit/Kits/KitParameters.h \
DrumKit/Triggers/Curves/CurveType.h \
DrumKit/Triggers/TriggerLocation.h \
DrumKit/Triggers/TriggerManager.h \
DrumKit/Triggers/TriggerParameters.h \
DrumKit/Triggers/TriggerType.h \
IO/SensorsConfig.h \
IO/MIDI.h \
IO/MIDIFactory.h \
IO/SerialMidi.h \
IO/USBMIDI.h \
IO/SpiDevices/SpiDevParameters.h \
Sound/Alsa/AlsaParams.h \
Sound/InstrumentSoundType.h \
Util/Enums.h \
Util/ErrorHandling.h \
Util/Xml.h \
Util/Zip.h
######################################################################
# 12 what gets installed
# Distribute and install into docdir.
dist_doc_DATA = README.md
# Install in an architecture-dependent directory, do not distribute.
pkgexecconfigdir = $(libdir)/pkgconfig
pkgexecconfig_DATA = exadrums.pc
# autoconf 4.8.2 Installation Directory Variables
# Substituting from here instead of from configure.ac ensures that the
# user can override prefix on the Make command line.
edit = sed \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|@includedir[@]|$(includedir)|g' \
-e 's|@libdir[@]|$(libdir)|g'
exadrums.pc: Makefile
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
mv $@.tmp $@
exadrums.pc: $(srcdir)/exadrums.pc.in
######################################################################
# 13 what gets cleaned
# Remove files created by Makefile.
CLEANFILES = \
exadrums.pc
# Should silent `rm .gitignore && git status`.
MAINTAINERCLEANFILES = \
Makefile.in \
aclocal.m4 \
ar-lib \
compile \
config.guess \
config.h.in \
config.sub \
configure \
depcomp \
install-sh \
ltmain.sh \
m4/* \
missing
######################################################################
# 14 what goes in a distribution
# Distribute (in the tarball created by 'make dist-gzip').
EXTRA_DIST = \
LICENSE \
Roadmap.md \
bootstrap \
exadrums.pc.in