blob: 7702b2ebabcfc8eb9780ab89ac486ed76980ecec (
plain)
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
|
DISTDIRS = input output
if ENABLE_CLI
bin_PROGRAMS = drumgizmo dgvalidator
drumgizmo_LDADD = $(JACK_LIBS) $(top_builddir)/src/libdg.la
drumgizmo_LDFLAGS =
drumgizmo_CXXFLAGS = \
-I$(top_srcdir)/src -I$(top_srcdir)/getoptpp \
-I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \
$(JACK_CFLAGS) $(SSEFLAGS)
drumgizmo_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER
drumgizmo_SOURCES = \
drumgizmoc.cc \
enginefactory.cc \
$(top_srcdir)/hugin/hugin.c \
$(top_srcdir)/hugin/hugin_filter.c
if HAVE_INPUT_DUMMY
drumgizmo_SOURCES += input/inputdummy.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_DUMMY
endif # HAVE_INPUT_DUMMY
if HAVE_INPUT_TEST
drumgizmo_SOURCES += input/test.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_TEST
endif # HAVE_INPUT_TEST
if HAVE_INPUT_MIDIFILE
drumgizmo_CXXFLAGS += $(SMF_CFLAGS)
drumgizmo_LDADD += $(SMF_LIBS)
drumgizmo_SOURCES += input/midifile.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_MIDIFILE
endif # HAVE_INPUT_MIDIFILE
if HAVE_INPUT_JACKMIDI
drumgizmo_SOURCES += input/jackmidi.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_JACKMIDI
endif # HAVE_INPUT_JACKMIDI
if HAVE_OUTPUT_DUMMY
drumgizmo_SOURCES += output/outputdummy.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_DUMMY
endif # HAVE_OUTPUT_DUMMY
if HAVE_OUTPUT_WAVFILE
drumgizmo_SOURCES += output/wavfile.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_WAVFILE
endif # HAVE_OUTPUT_WAVFILE
if HAVE_OUTPUT_ALSA
drumgizmo_CXXFLAGS += $(ALSA_CFLAGS)
drumgizmo_LDFLAGS += $(ALSA_LIBS)
drumgizmo_SOURCES += output/alsa.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_ALSA
endif # HAVE_OUTPUT_ALSA
if HAVE_OUTPUT_JACKAUDIO
drumgizmo_CXXFLAGS += $(JACK_CFLAGS)
drumgizmo_LDFLAGS += $(JACK_LIBS)
drumgizmo_SOURCES += output/jackaudio.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_JACKAUDIO
endif # HAVE_OUTPUT_JACKAUDIO
if HAVE_OUTPUT_OSS
drumgizmo_SOURCES += output/oss.cc
drumgizmo_CXXFLAGS += -DHAVE_OUTPUT_OSS
endif # HAVE_OUTPUT_OSS
if HAVE_INPUT_OSSMIDI
drumgizmo_SOURCES += input/ossmidi.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_OSSMIDI
endif # HAVE_INPUT_OSSMIDI
if HAVE_INPUT_ALSAMIDI
drumgizmo_SOURCES += input/alsamidi.cc
drumgizmo_CXXFLAGS += -DHAVE_INPUT_ALSAMIDI
endif # HAVE_INPUT_ALSAMIDI
# Only compile jackclient.cc if at least one of the jack modules are included.
if HAVE_OUTPUT_JACKAUDIO
drumgizmo_SOURCES += jackclient.cc
else
if HAVE_INPUT_JACKMIDI
drumgizmo_SOURCES += jackclient.cc
endif # HAVE_INPUT_JACKMIDI
endif # HAVE_OUTPUT_JACKAUDIO
EXTRA_DIST = \
jackclient.h \
enginefactory.h \
input/inputdummy.h \
input/test.h \
input/jackmidi.h \
input/alsamidi.h \
input/midifile.h \
input/ossmidi.h \
output/alsa.h \
output/jackaudio.h \
output/outputdummy.h \
output/oss.h \
output/wavfile.h
dgvalidator_LDADD = $(JACK_LIBS) $(top_builddir)/src/libdg.la
dgvalidator_LDFLAGS =
dgvalidator_CXXFLAGS = \
-I$(top_srcdir)/src -I$(top_srcdir)/getoptpp \
-I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \
$(SSEFLAGS) \
-I$(top_srcdir)/ \
-DLODEPNG_NO_COMPILE_ENCODER \
-DLODEPNG_NO_COMPILE_DISK \
-DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \
-DLODEPNG_NO_COMPILE_ERROR_TEXT \
-DLODEPNG_NO_COMPILE_CPP
dgvalidator_CFLAGS = -DWITH_HUG_MUTEX -DWITH_HUG_FILTER
dgvalidator_SOURCES = \
dgvalidator.cc \
$(top_srcdir)/hugin/hugin.c \
$(top_srcdir)/hugin/hugin_filter.c \
$(top_srcdir)/dggui/lodepng/lodepng.cpp \
$(top_srcdir)/dggui/image.cc \
$(top_srcdir)/dggui/resource.cc \
$(top_srcdir)/dggui/colour.cc
endif # ENABLE_CLI
|