Makefile.am
author Sam Lantinga <slouken@lokigames.com>
Thu, 20 Jan 2000 06:09:27 +0000
changeset 39 2cf024600f9c
parent 38 d6f9745b780b
child 40 e8c2428f4492
permissions -rw-r--r--
*** empty log message ***
     1 # Makefile.am for the SDL sample mixer library and players
     2 
     3 lib_LTLIBRARIES = libSDL_mixer.la
     4 
     5 SUBDIRS = @MUSIC_SUBDIRS@
     6 DIST_SUBIDRS = mikmod timidity
     7 
     8 libSDL_mixerincludedir = $(includedir)/SDL
     9 libSDL_mixerinclude_HEADERS =	\
    10 	SDL_mixer.h
    11 
    12 libSDL_mixer_la_SOURCES =	\
    13 	mixer.c			\
    14 	music.c			\
    15 	music_cmd.c		\
    16 	music_cmd.h		\
    17 	wave.h			\
    18 	wavestream.c		\
    19 	wavestream.h
    20 
    21 if USE_MIKMOD
    22 MIKMOD_LIB = mikmod/libmikmod.la
    23 else
    24 MIKMOD_LIB =
    25 endif
    26 if USE_TIMIDITY
    27 TIMIDITY_LIB = timidity/libtimidity.la
    28 else
    29 TIMIDITY_LIB =
    30 endif
    31 
    32 libSDL_mixer_la_LDFLAGS = 		\
    33         -release $(LT_RELEASE)	\
    34 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    35 libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB)
    36 
    37 bin_PROGRAMS = playwave playmus
    38 
    39 playwave_LDADD = libSDL_mixer.la
    40 playmus_LDADD = libSDL_mixer.la
    41 
    42 # Rule to build tar-gzipped distribution package
    43 $(PACKAGE)-$(VERSION).tar.gz: dist
    44 
    45 # Rule to build RPM distribution package
    46 rpm: $(PACKAGE)-$(VERSION).tar.gz
    47 	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
    48 	rpm -ba $(PACKAGE).spec
    49