/
Makefile.am
66 lines (54 loc) · 1.29 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_SUBIDRS = 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
mixer.c \
music.c \
music_cmd.c \
music_cmd.h \
17
18
music_ogg.c \
music_ogg.h \
19
20
wave.h \
wavestream.c \
21
22
wavestream.h \
voc.c
23
24
25
26
27
28
29
30
31
32
33
if USE_MIKMOD
MIKMOD_LIB = mikmod/libmikmod.la
else
MIKMOD_LIB =
endif
if USE_TIMIDITY
TIMIDITY_LIB = timidity/libtimidity.la
else
TIMIDITY_LIB =
endif
34
35
36
37
38
if USE_NATIVE_MIDI
NATIVE_MIDI_LIB = native_midi/libnativemidi.la
else
NATIVE_MIDI_LIB =
endif
39
40
41
EXTRA_DIST = \
CHANGES \
42
VisualC.zip \
43
PBProjects.tar.gz \
44
MPWmake.sea.bin \
45
CWprojects.sea.hqx \
46
47
SDL_mixer.spec \
SDL_mixer.spec.in \
48
49
autogen.sh
50
libSDL_mixer_la_LDFLAGS = \
51
-release $(LT_RELEASE) \
52
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
53
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB) $(NATIVE_MIDI_LIB)
54
55
56
bin_PROGRAMS = playwave playmus
57
58
playwave_LDADD = libSDL_mixer.la
playmus_LDADD = libSDL_mixer.la
59
60
# Rule to build tar-gzipped distribution package
61
$(PACKAGE)-$(VERSION).tar.gz: distcheck
62
63
64
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz
65
rpm -ta $(PACKAGE)-$(VERSION).tar.gz