/
Makefile.am
72 lines (60 loc) · 1.42 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
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
41
42
43
44
if USE_NATIVE_MIDI
NATIVE_MIDI_LIB = native_midi/libnativemidi.la
else
NATIVE_MIDI_LIB =
endif
45
46
47
EXTRA_DIST = \
CHANGES \
48
VisualC.zip \
49
PBProjects.tar.gz \
50
MPWmake.sea.bin \
51
CWprojects.sea.hqx \
52
53
SDL_mixer.spec \
SDL_mixer.spec.in \
54
55
autogen.sh
56
libSDL_mixer_la_LDFLAGS = \
57
-release $(LT_RELEASE) \
58
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
59
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB) $(NATIVE_MIDI_LIB)
60
61
62
bin_PROGRAMS = playwave playmus
63
64
playwave_LDADD = libSDL_mixer.la
playmus_LDADD = libSDL_mixer.la
65
66
# Rule to build tar-gzipped distribution package
67
$(PACKAGE)-$(VERSION).tar.gz: distcheck
68
69
70
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
71
rpm -ta $(PACKAGE)-$(VERSION).tar.gz