/
Makefile.am
76 lines (64 loc) · 1.52 KB
1
2
# Makefile.am for the SDL sample mixer library and players
3
lib_LTLIBRARIES = libSDL_mixer.la
4
5
SUBDIRS = @MUSIC_SUBDIRS@
6
DIST_SUBDIRS = mikmod timidity native_midi native_midi_gpl
7
8
9
libSDL_mixerincludedir = $(includedir)/SDL
libSDL_mixerinclude_HEADERS = \
10
SDL_mixer.h
11
12
libSDL_mixer_la_SOURCES = \
13
14
15
16
load_aiff.c \
load_aiff.h \
load_voc.c \
load_voc.h \
17
18
19
20
mixer.c \
music.c \
music_cmd.c \
music_cmd.h \
21
22
music_ogg.c \
music_ogg.h \
23
wavestream.c \
24
25
26
27
28
wavestream.h \
effect_position.c \
effect_stereoreverse.c \
effects_internal.c \
effects_internal.h
29
30
31
32
33
34
35
36
37
38
39
if USE_MIKMOD
MIKMOD_LIB = mikmod/libmikmod.la
else
MIKMOD_LIB =
endif
if USE_TIMIDITY
TIMIDITY_LIB = timidity/libtimidity.la
else
TIMIDITY_LIB =
endif
40
if USE_NATIVE_MIDI
41
42
43
if USE_NATIVE_MIDI_GPL
NATIVE_MIDI_LIB = native_midi_gpl/libnativemidi_gpl.la
else
44
NATIVE_MIDI_LIB = native_midi/libnativemidi.la
45
endif
46
47
48
else
NATIVE_MIDI_LIB =
endif
49
50
51
EXTRA_DIST = \
CHANGES \
52
VisualC.zip \
53
PBProjects.tar.gz \
54
MPWmake.sea.bin \
55
CWprojects.sea.hqx \
56
57
SDL_mixer.spec \
SDL_mixer.spec.in \
58
59
autogen.sh
60
libSDL_mixer_la_LDFLAGS = \
61
-release $(LT_RELEASE) \
62
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
63
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB) $(NATIVE_MIDI_LIB)
64
65
66
bin_PROGRAMS = playwave playmus
67
68
playwave_LDADD = libSDL_mixer.la
playmus_LDADD = libSDL_mixer.la
69
70
# Rule to build tar-gzipped distribution package
71
$(PACKAGE)-$(VERSION).tar.gz: distcheck
72
73
74
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
75
rpm -ta $(PACKAGE)-$(VERSION).tar.gz