Makefile.in
author Vitaly Novichkov
Mon, 23 Dec 2019 14:01:02 +0300
changeset 1119 24ca9a03d51c
parent 1070 db2d266f592e
permissions -rw-r--r--
introduce MetaTags api

In some games or players it would be possible to print a title and
some minor tags about playing music.

There are 5 added functions which can give meta-tags from music if
they are available or supported by a codec:
- Mix_GetMusicTitle() gives song title.
Unlike Mix_GetMusicTitleTag, returns filename if tag is blank.
- Mix_GetMusicTitleTag() gives song title
- Mix_GetMusicArtistTag() gives artist name
- Mix_GetMusicAlbumTag() gives album name
- Mix_GetMusicCopyrightTag() gives copyright tag
     1 # Makefile to build and install the SDL_mixer library
     2 
     3 top_builddir = .
     4 srcdir  = @srcdir@
     5 objects = build
     6 prefix = @prefix@
     7 exec_prefix = @exec_prefix@
     8 bindir	= $(DESTDIR)@bindir@
     9 libdir  = $(DESTDIR)@libdir@
    10 includedir = $(DESTDIR)@includedir@
    11 datarootdir = $(DESTDIR)@datarootdir@
    12 datadir	= @datadir@
    13 mandir	= @mandir@
    14 auxdir	= @ac_aux_dir@
    15 distpath = $(srcdir)/..
    16 distdir = SDL2_mixer-@VERSION@
    17 distfile = $(distdir).tar.gz
    18 
    19 @SET_MAKE@
    20 EXE	= @EXE@
    21 SHELL	= @SHELL@
    22 CC      = @CC@
    23 CFLAGS  = @BUILD_CFLAGS@
    24 EXTRA_CFLAGS = @EXTRA_CFLAGS@
    25 LDFLAGS = @BUILD_LDFLAGS@
    26 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
    27 LIBTOOL = @LIBTOOL@
    28 INSTALL = @INSTALL@
    29 AR	= @AR@
    30 RANLIB	= @RANLIB@
    31 WINDRES	= @WINDRES@
    32 SDL_CFLAGS = @SDL_CFLAGS@
    33 SDL_LIBS = @SDL_LIBS@
    34 
    35 TARGET  = libSDL2_mixer.la
    36 OBJECTS = @OBJECTS@
    37 VERSION_OBJECTS = @VERSION_OBJECTS@
    38 PLAYWAVE_OBJECTS = @PLAYWAVE_OBJECTS@
    39 PLAYMUS_OBJECTS = @PLAYMUS_OBJECTS@
    40 
    41 DIST = *.txt Android.mk Makefile.in SDL2_mixer.pc.in SDL2_mixer.spec.in include/SDL_mixer.h VisualC VisualC-WinRT Xcode Xcode-iOS acinclude aclocal.m4 autogen.sh build-scripts configure configure.in debian external gcc-fat.sh src/compat.c src/compat.h src/effect_position.c src/effect_stereoreverse.c src/effects_internal.c src/effects_internal.h src/codecs/load_aiff.c src/codecs/load_aiff.h src/codecs/load_voc.c src/codecs/load_voc.h src/codecs/mp3utils.c src/codecs/mp3utils.h src/mixer.c src/mixer.h src/music.c src/music.h src/codecs/music_cmd.c src/codecs/music_cmd.h src/codecs/music_flac.c src/codecs/music_flac.h src/codecs/music_fluidsynth.c src/codecs/music_fluidsynth.h src/codecs/music_mad.c src/codecs/music_mad.h src/codecs/music_mikmod.c src/codecs/music_mikmod.h src/codecs/music_modplug.c src/codecs/music_modplug.h src/codecs/music_mpg123.c src/codecs/music_mpg123.h src/codecs/music_nativemidi.c src/codecs/music_nativemidi.h src/codecs/music_ogg.c src/codecs/music_ogg.h src/codecs/music_opus.c src/codecs/music_opus.h src/codecs/music_timidity.c src/codecs/music_timidity.h src/codecs/music_wav.c src/codecs/music_wav.h src/codecs/native_midi playmus.c playwave.c src/codecs/timidity version.rc
    42 
    43 LT_AGE      = @LT_AGE@
    44 LT_CURRENT  = @LT_CURRENT@
    45 LT_RELEASE  = @LT_RELEASE@
    46 LT_REVISION = @LT_REVISION@
    47 LT_LDFLAGS  = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    48 
    49 all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/playwave$(EXE) $(objects)/playmus$(EXE)
    50 
    51 $(srcdir)/configure: $(srcdir)/configure.in
    52 	@echo "Warning, configure is out of date, please re-run autogen.sh"
    53 
    54 Makefile: $(srcdir)/Makefile.in
    55 	$(SHELL) config.status $@
    56 
    57 $(objects):
    58 	$(SHELL) $(auxdir)/mkinstalldirs $@
    59 
    60 .PHONY: all install install-hdrs install-lib install-bin uninstall uninstall-hdrs uninstall-lib uninstall-bin clean distclean dist
    61 
    62 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
    63 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    64 
    65 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
    66 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(objects)/$(TARGET) $(SDL_LIBS) $(LDFLAGS)
    67 
    68 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
    69 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(objects)/$(TARGET) $(SDL_LIBS) $(LDFLAGS)
    70 
    71 install: all install-hdrs install-lib #install-bin
    72 install-hdrs:
    73 	$(SHELL) $(auxdir)/mkinstalldirs $(includedir)/SDL2
    74 	for src in $(srcdir)/include/SDL_mixer.h; do \
    75 	    file=`echo $$src | sed -e 's|^.*/||'`; \
    76 	    $(INSTALL) -m 644 $$src $(includedir)/SDL2/$$file; \
    77 	done
    78 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig
    79 	$(INSTALL) -m 644 SDL2_mixer.pc $(libdir)/pkgconfig/
    80 install-lib: $(objects) $(objects)/$(TARGET)
    81 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)
    82 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
    83 install-bin:
    84 	$(SHELL) $(auxdir)/mkinstalldirs $(bindir)
    85 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playwave$(EXE) $(bindir)/playwave$(EXE)
    86 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playmus$(EXE) $(bindir)/playmus$(EXE)
    87 
    88 uninstall: uninstall-hdrs uninstall-lib uninstall-bin
    89 uninstall-hdrs:
    90 	for src in $(srcdir)/include/SDL_mixer.h; do \
    91 	    file=`echo $$src | sed -e 's|^.*/||'`; \
    92 	    rm -f $(includedir)/SDL2/$$file; \
    93 	done
    94 	-rmdir $(includedir)/SDL2
    95 	rm -f $(libdir)/pkgconfig/SDL2_mixer.pc
    96 	-rmdir $(libdir)/pkgconfig
    97 uninstall-lib:
    98 	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
    99 uninstall-bin:
   100 	rm -f $(bindir)/playwave$(EXE)
   101 	rm -f $(bindir)/playmus$(EXE)
   102 
   103 clean:
   104 	rm -rf $(objects)
   105 
   106 distclean: clean
   107 	rm -f Makefile
   108 	rm -f config.status config.cache config.log libtool
   109 	rm -f SDL2_mixer.pc
   110 	rm -rf $(srcdir)/autom4te*
   111 	find $(srcdir) \( \
   112 	    -name '*~' -o \
   113 	    -name '*.bak' -o \
   114 	    -name '*.old' -o \
   115 	    -name '*.rej' -o \
   116 	    -name '*.orig' -o \
   117 	    -name '.#*' \) \
   118 	    -exec rm -f {} \;
   119 
   120 dist $(distfile):
   121 	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
   122 	(cd $(srcdir); tar cf - $(DIST)) | (cd $(distdir); tar xf -)
   123 	rm -rf `find $(distdir) -name .svn`
   124 	rm -f `find $(distdir) -name '.#*'`
   125 	tar cvf - $(distdir) | gzip --best >$(distfile)
   126 	rm -rf $(distdir)
   127 
   128 rpm: $(distfile)
   129 	rpmbuild -ta $?