Makefile.in
author James Le Cuirot <chewi@aura-online.co.uk>
Sun, 20 Mar 2011 14:34:18 +0000
changeset 506 586ae09f8176
parent 497 55499f7b054d
child 518 8bc9b5fd2aae
permissions -rw-r--r--
Add FluidSynth backend and generic SoundFont functions. No FluidSynth DLL or headers for MSVC in this commit.
     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 = SDL_mixer-@VERSION@
    17 distfile = $(distdir).tar.gz
    18 
    19 @SET_MAKE@
    20 EXE	= @EXE@
    21 SHELL	= @SHELL@
    22 CC      = @CC@
    23 CXX     = g++
    24 CFLAGS  = @BUILD_CFLAGS@
    25 EXTRA_CFLAGS = @EXTRA_CFLAGS@
    26 LDFLAGS = @BUILD_LDFLAGS@
    27 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
    28 LIBTOOL = @LIBTOOL@
    29 INSTALL = @INSTALL@
    30 AR	= @AR@
    31 RANLIB	= @RANLIB@
    32 WINDRES	= @WINDRES@
    33 SDL_CFLAGS = @SDL_CFLAGS@
    34 SDL_LIBS = @SDL_LIBS@
    35 
    36 TARGET  = libSDL_mixer.la
    37 OBJECTS = @OBJECTS@
    38 VERSION_OBJECTS = @VERSION_OBJECTS@
    39 PLAYWAVE_OBJECTS = @PLAYWAVE_OBJECTS@
    40 PLAYMUS_OBJECTS = @PLAYMUS_OBJECTS@
    41 
    42 DIST = Android.mk CHANGES COPYING CWProjects.sea.bin MPWmake.sea.bin Makefile.in SDL_mixer.pc.in README SDL_mixer.h SDL_mixer.qpg.in SDL_mixer.spec SDL_mixer.spec.in VisualC.zip Watcom-OS2.zip Xcode.tar.gz acinclude autogen.sh build-scripts configure configure.in dynamic_flac.c dynamic_flac.h dynamic_fluidsynth.c dynamic_fluidsynth.h dynamic_mod.c dynamic_mod.h dynamic_mp3.c dynamic_mp3.h dynamic_ogg.c dynamic_ogg.h effect_position.c effect_stereoreverse.c effects_internal.c effects_internal.h fluidsynth.c fluidsynth.h gcc-fat.sh libmikmod-3.1.12.zip load_aiff.c load_aiff.h load_flac.c load_flac.h load_ogg.c load_ogg.h load_voc.c load_voc.h mixer.c music.c music_cmd.c music_cmd.h music_flac.c music_flac.h music_mad.c music_mad.h music_mod.c music_mod.h music_modplug.c music_modplug.h music_ogg.c music_ogg.h native_midi native_midi_gpl playmus.c playwave.c timidity wavestream.c wavestream.h version.rc
    43 
    44 LT_AGE      = @LT_AGE@
    45 LT_CURRENT  = @LT_CURRENT@
    46 LT_RELEASE  = @LT_RELEASE@
    47 LT_REVISION = @LT_REVISION@
    48 LT_LDFLAGS  = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    49 
    50 all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/playwave$(EXE) $(objects)/playmus$(EXE)
    51 
    52 $(srcdir)/configure: $(srcdir)/configure.in
    53 	@echo "Warning, configure.in is out of date"
    54 	#(cd $(srcdir) && sh autogen.sh && sh configure)
    55 	@sleep 3
    56 
    57 Makefile: $(srcdir)/Makefile.in
    58 	$(SHELL) config.status $@
    59 
    60 $(objects):
    61 	$(SHELL) $(auxdir)/mkinstalldirs $@
    62 
    63 .PHONY: all install install-hdrs install-lib install-bin uninstall uninstall-hdrs uninstall-lib uninstall-bin clean distclean dist
    64 
    65 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
    66 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    67 
    68 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
    69 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    70 
    71 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
    72 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    73 
    74 install: all install-hdrs install-lib #install-bin
    75 install-hdrs:
    76 	$(SHELL) $(auxdir)/mkinstalldirs $(includedir)/SDL
    77 	for src in $(srcdir)/SDL_mixer.h; do \
    78 	    file=`echo $$src | sed -e 's|^.*/||'`; \
    79 	    $(INSTALL) -m 644 $$src $(includedir)/SDL/$$file; \
    80 	done
    81 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig
    82 	$(INSTALL) -m 644 SDL_mixer.pc $(libdir)/pkgconfig/
    83 install-lib: $(objects) $(objects)/$(TARGET)
    84 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)
    85 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
    86 install-bin:
    87 	$(SHELL) $(auxdir)/mkinstalldirs $(bindir)
    88 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playwave$(EXE) $(bindir)/playwave$(EXE)
    89 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playmus$(EXE) $(bindir)/playmus$(EXE)
    90 
    91 uninstall: uninstall-hdrs uninstall-lib uninstall-bin
    92 uninstall-hdrs:
    93 	for src in $(srcdir)/SDL_mixer.h; do \
    94 	    file=`echo $$src | sed -e 's|^.*/||'`; \
    95 	    rm -f $(includedir)/SDL/$$file; \
    96 	done
    97 	-rmdir $(includedir)/SDL
    98 	rm -f $(libdir)/pkgconfig/SDL_mixer.pc
    99 	-rmdir $(libdir)/pkgconfig
   100 uninstall-lib:
   101 	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
   102 uninstall-bin:
   103 	rm -f $(bindir)/playwave$(EXE)
   104 	rm -f $(bindir)/playmus$(EXE)
   105 
   106 clean:
   107 	rm -rf $(objects)
   108 
   109 distclean: clean
   110 	rm -f Makefile
   111 	rm -f SDL_mixer.qpg
   112 	rm -f config.status config.cache config.log libtool
   113 	rm -f SDL_mixer.pc
   114 	rm -rf $(srcdir)/autom4te*
   115 	find $(srcdir) \( \
   116 	    -name '*~' -o \
   117 	    -name '*.bak' -o \
   118 	    -name '*.old' -o \
   119 	    -name '*.rej' -o \
   120 	    -name '*.orig' -o \
   121 	    -name '.#*' \) \
   122 	    -exec rm -f {} \;
   123 
   124 dist $(distfile):
   125 	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
   126 	tar cf - $(DIST) | (cd $(distdir); tar xf -)
   127 	rm -rf `find $(distdir) -name .svn`
   128 	rm -f `find $(distdir) -name '.#*'`
   129 	tar cvf - $(distdir) | gzip --best >$(distfile)
   130 	rm -rf $(distdir)
   131 
   132 rpm: $(distfile)
   133 	rpmbuild -ta $?