summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 753c3819dd440c00b3a7957fc3299aacd678f820 (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
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
SUBDIRS = mpaudec

lib_LTLIBRARIES = libaudiere.la
include_HEADERS = audiere.h

if HAVE_FLAC
FLAC_SOURCES = input_flac.cpp input_flac.h
else
FLAC_DIST    = input_flac.cpp input_flac.h
endif

if HAVE_DUMB
DUMB_SOURCES = input_mod.cpp input_mod.h
else
DUMB_DIST    = input_mod.cpp input_mod.h
endif

if HAVE_OGG
OGG_SOURCES = input_ogg.cpp input_ogg.h
else
OGG_DIST    = input_ogg.cpp input_ogg.h
endif

if HAVE_SPEEX
SPEEX_SOURCES = input_speex.cpp input_speex.h speexfile/speexfile.h speexfile/speexfile.cpp
else
SPEEX_DIST    = input_speex.cpp input_speex.h speexfile/speexfile.h speexfile/speexfile.cpp
endif

if HAVE_AL
AL_SOURCES = device_al.cpp device_al.h
else
AL_DIST    = device_al.cpp device_al.h
endif

if HAVE_DLFCN
EXTERN_SOURCES = device_extern.cpp device_extern.h
else
EXTERN_DIST    = device_extern.cpp device_extern.h
endif

if HAVE_ALSA
ALSA_SOURCES = device_alsa.cpp device_alsa.h
else
ALSA_DIST    = device_alsa.cpp device_alsa.h
endif

if HAVE_NEXUS
NEXUS_SOURCES = device_nexus.cpp device_nexus.h
else
NEXUS_DIST    = device_nexus.cpp device_nexus.h
endif

if HAVE_ZTE
ZTE_SOURCES = device_zte.cpp device_zte.h
else
ZTE_DIST    = device_zte.cpp device_zte.h
endif

if HAVE_OSS
OSS_SOURCES = device_oss.cpp device_oss.h
else
OSS_DIST    = device_oss.cpp device_oss.h
endif

DSOUND_SRC = \
	device_ds.cpp device_ds.h \
	device_ds_buffer.cpp device_ds_buffer.h \
	device_ds_stream.cpp device_ds_stream.h \
	dxguid.cpp

if HAVE_DSOUND
DSOUND_SOURCES = $(DSOUND_SRC)
else
DSOUND_DIST = $(DSOUND_SRC)
endif

if HAVE_WINMM
WINMM_SOURCES = device_mm.cpp device_mm.h
else
WINMM_DIST    = device_mm.cpp device_mm.h
endif

if HAVE_CORE_AUDIO
COREAUDIO_SOURCES = device_coreaudio.cpp \
		device_coreaudio.h
else
COREAUDIO_DIST = device_coreaudio.cpp \
		device_coreaudio.h
endif

ANDROIDAUDIO_DIST = device_android.cpp device_android.h

# Automake blows.
# A lot.
if HAVE_LIBCDAUDIO
LIBCDAUDIO_SOURCES  = cd_unix.cpp
WINCDAUDIO_DIST     = cd_win32.cpp
NULLCDAUDIO_DIST    = cd_null.cpp
else
LIBCDAUDIO_DIST     = cd_unix.cpp
if HAVE_WINMM
WINCDAUDIO_SOURCES  = cd_win32.cpp
NULLCDAUDIO_DIST    = cd_null.cpp
else
NULLCDAUDIO_SOURCES = cd_null.cpp
WINCDAUDIO_DIST     = cd_win32.cpp
endif
endif

if HAVE_WINMM
MIDI_SOURCES        = midi_mci.cpp
MIDI_DIST           = midi_null.cpp
else
MIDI_SOURCES        = midi_null.cpp
MIDI_DIST           = midi_mci.cpp
endif

if HAVE_WIN32
THREADS_SOURCES        = threads_win32.cpp
THREADS_DIST           = threads_posix.cpp
TIMER_SOURCES          = timer_win32.cpp
TIMER_DIST             = timer_posix.cpp
else
THREADS_SOURCES        = threads_posix.cpp
THREADS_DIST           = threads_win32.cpp
TIMER_SOURCES          = timer_posix.cpp
TIMER_DIST             = timer_win32.cpp
endif

EXTRA_DIST = \
	$(LIBCDAUDIO_DIST) $(WINCDAUDIO_DIST) $(NULLCDAUDIO_DIST) \
	$(FLAC_DIST) $(DUMB_DIST) $(OGG_DIST) $(SPEEX_DIST) $(AL_DIST) \
	$(OSS_DIST) $(DSOUND_DIST) $(WINMM_DIST) $(COREAUDIO_DIST) \
	$(ALSA_DIST) $(NEXUS_DIST) $(ZTE_DIST) $(ANDROIDAUDIO_DIST) \
	$(MIDI_DIST) $(THREADS_DIST) $(EXTERN_DIST)

libaudiere_la_SOURCES = \
	$(MIDI_SOURCES) \
	basic_source.cpp \
	basic_source.h \
	$(LIBCDAUDIO_SOURCES) \
	$(WINCDAUDIO_SOURCES) \
	$(NULLCDAUDIO_SOURCES) \
	debug.cpp \
	debug.h \
	default_file.h \
	device.cpp \
	device.h \
	$(DSOUND_SOURCES) \
	device_mixer.cpp \
	device_mixer.h \
	device_null.cpp \
	device_null.h \
	$(EXTERN_SOURCES) \
	$(AL_SOURCES) \
	$(ALSA_SOURCES) \
	$(NEXUS_SOURCES) \
	$(ZTE_SOURCES) \
	$(OSS_SOURCES) \
	$(WINMM_SOURCES) \
	$(COREAUDIO_SOURCES) \
	dumb_resample.cpp \
	dumb_resample.h \
	file_ansi.cpp \
	input.cpp \
	input_aiff.cpp \
	input_aiff.h \
	$(DUMB_SOURCES) \
	$(FLAC_SOURCES) \
	input_mp3.cpp \
	input_mp3.h \
	$(OGG_SOURCES) \
	$(SPEEX_SOURCES) \
	input_wav.cpp \
	input_wav.h \
	internal.h \
	loop_point_source.cpp \
	mci_device.h \
	memory_file.cpp \
	memory_file.h \
	noise.cpp \
	resampler.cpp \
	resampler.h \
	sample_buffer.cpp \
	sound.cpp \
	sound_effect.cpp \
	square_wave.cpp \
	$(THREADS_SOURCES) \
	threads.h \
	$(TIMER_SOURCES) \
	timer.h \
	tone.cpp \
	types.h \
	utility.cpp \
	utility.h \
	version.cpp

libaudiere_la_LDFLAGS =	-release $(VERSION)
libaudiere_la_LIBADD = mpaudec/libmpaudec.la