/
Makefile.am
78 lines (66 loc) · 1.6 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
load_ogg.c \
load_ogg.h \
19
20
21
22
mixer.c \
music.c \
music_cmd.c \
music_cmd.h \
23
24
music_ogg.c \
music_ogg.h \
25
wavestream.c \
26
27
28
29
30
wavestream.h \
effect_position.c \
effect_stereoreverse.c \
effects_internal.c \
effects_internal.h
31
32
33
34
35
36
37
38
39
40
41
if USE_MIKMOD
MIKMOD_LIB = mikmod/libmikmod.la
else
MIKMOD_LIB =
endif
if USE_TIMIDITY
TIMIDITY_LIB = timidity/libtimidity.la
else
TIMIDITY_LIB =
endif
42
if USE_NATIVE_MIDI
43
44
45
if USE_NATIVE_MIDI_GPL
NATIVE_MIDI_LIB = native_midi_gpl/libnativemidi_gpl.la
else
46
NATIVE_MIDI_LIB = native_midi/libnativemidi.la
47
endif
48
49
50
else
NATIVE_MIDI_LIB =
endif
51
52
53
EXTRA_DIST = \
CHANGES \
54
VisualC.zip \
55
PBProjects.tar.gz \
56
MPWmake.sea.bin \
57
CWProjects.sea.bin \
58
59
SDL_mixer.spec \
SDL_mixer.spec.in \
60
61
autogen.sh
62
libSDL_mixer_la_LDFLAGS = \
63
-release $(LT_RELEASE) \
64
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
65
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB) $(NATIVE_MIDI_LIB) @SYSTEM_LIBS@ @SDL_LIBS@
66
67
noinst_PROGRAMS = playwave playmus
68
69
70
playwave_LDADD = libSDL_mixer.la @SDL_LIBS@
playmus_LDADD = libSDL_mixer.la @SDL_LIBS@
71
72
# Rule to build tar-gzipped distribution package
73
$(PACKAGE)-$(VERSION).tar.gz: distcheck
74
75
76
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
77
rpm -ta $(PACKAGE)-$(VERSION).tar.gz