-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.src.am
94 lines (76 loc) · 3.02 KB
/
Makefile.src.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
if USE_DLLWRAPPER_DIRECT
DLLWRAPPER_LIB=libloader.la
DLLWRAPPER_SRC=src/bmlw.c
else
DLLWRAPPER_LIB=
DLLWRAPPER_SRC=src/bmlipc.c src/strpool.c
endif
lib_LTLIBRARIES = libbml.la
AM_CPPFLAGS = \
-I$(top_srcdir)/dllwrapper \
-I$(top_srcdir)/src/BuzzMachineLoader \
-I$(top_srcdir)/src \
-DNATIVE_BML_DIR="\"$(pkglibdir)\""
libbmldir = $(includedir)/libbml
libbml_HEADERS = src/bml.h src/BuzzMachineLoader/BuzzMachineLoader.h
libbml_la_SOURCES = src/bml.c src/bmllog.c $(DLLWRAPPER_SRC)
libbml_la_CFLAGS = $(PTHREAD_CFLAGS) $(BML_CFLAGS)
libbml_la_LIBADD = $(LIBM) $(PTHREAD_LIBS) $(BML_LIBS) $(DLLWRAPPER_LIB)
libbml_la_LDFLAGS = \
-export-symbols-regex ^_?\(bml_\|bmlw_\|bmln_\).* \
-version-info @BML_VERSION_INFO@
if USE_DLLWRAPPER_IPC
bin_PROGRAMS = bmlhost
bmlhost_SOURCES = src/bmlhost.c src/bmllog.c src/bmlw.c src/bmlipc.c src/strpool.c
bmlhost_CFLAGS = $(BML_CFLAGS) $(ARCH_CFLAGS)
bmlhost_LDADD = $(PTHREAD_LIBS) $(BML_LIBS) libloader.la
endif
noinst_HEADERS += \
src/bmlipc.h \
src/bmllog.h \
src/bmlw.h \
src/strpool.h
noinst_PROGRAMS=bmltest_info bmltest_process
bmltest_info_SOURCES = src/bmltest_info.c src/bmltest_info.h
bmltest_info_CFLAGS = $(PTHREAD_CFLAGS) $(BML_CFLAGS)
bmltest_info_LDADD = $(LIBM) $(PTHREAD_LIBS) $(BML_LIBS) libbml.la
bmltest_process_SOURCES = src/bmltest_process.c src/bmltest_process.h
bmltest_process_CFLAGS = $(PTHREAD_CFLAGS) $(BML_CFLAGS)
bmltest_process_LDADD = $(LIBM) $(PTHREAD_LIBS) $(BML_LIBS) libbml.la
# buzzmachine loader (native adapter)
pkglib_LTLIBRARIES = libbuzzmachineloader.la
libbuzzmachineloader_la_SOURCES = \
src/BuzzMachineLoader/BuzzMachineCallbacks.cpp \
src/BuzzMachineLoader/BuzzMachineCallbacksPre12.cpp \
src/BuzzMachineLoader/BuzzMachineLoader.cpp \
src/BuzzMachineLoader/BuzzMachineVirtualCallbacks.cpp \
src/BuzzMachineLoader/MachineDataImpl.cpp \
src/BuzzMachineLoader/OscTable.cpp \
src/BuzzMachineLoader/mdkimp.cpp \
src/BuzzMachineLoader/debug.cpp
noinst_HEADERS += \
src/BuzzMachineLoader/BuzzMachine.h \
src/BuzzMachineLoader/BuzzMachineCallbacks.h \
src/BuzzMachineLoader/BuzzMachineCallbacksPre12.h \
src/BuzzMachineLoader/BuzzMachineLoader.h \
src/BuzzMachineLoader/CMachine.h \
src/BuzzMachineLoader/MachineDataImpl.h \
src/BuzzMachineLoader/MachineInterface.h \
src/BuzzMachineLoader/OscTable.h \
src/BuzzMachineLoader/mdk.h \
src/BuzzMachineLoader/mdkimp.h \
src/BuzzMachineLoader/bw.h \
src/BuzzMachineLoader/debug.h \
src/BuzzMachineLoader/dsplib.h \
src/BuzzMachineLoader/resample.h
libbuzzmachineloader_la_CXXFLAGS = $(PTHREAD_CFLAGS) $(BML_CXXFLAGS) -I$(top_srcdir)/dllwrapper
libbuzzmachineloader_la_LIBADD = $(LIBM) $(PTHREAD_LIBS) $(BML_LIBS) -lstdc++
libbuzzmachineloader_la_LDFLAGS = -module -avoid-version
libbuzzmachineloader_la_LIBTOOLFLAGS = --tag=disable-static
# buzzmachine loader (wrapped adapter)
if USE_DLLWRAPPER
dlldir = $(libdir)/win32
dll_DATA = src/BuzzMachineLoader.dll
endif
# unconditionally dist the dll
EXTRA_DIST += src/BuzzMachineLoader.dll