Makefile.in
author Sam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2011 11:07:36 -0800
changeset 494 4f4caf04bcd1
parent 491 0f6c89f20c76
child 497 55499f7b054d
permissions -rw-r--r--
scott mc to me

Attached is a patch from GCI student Egor Suvorov (yeputons) to add
native midi playback on Haiku.
     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_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 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 -include $(OBJECTS:.lo=.d)
    66 @DEPENDS@
    67 @VERSION_DEPENDS@
    68 
    69 -include $(PLAYWAVE_OBJECTS:.lo=.d)
    70 @PLAYWAVE_DEPENDS@
    71 
    72 -include $(PLAYMUS_OBJECTS:.lo=.d)
    73 @PLAYMUS_DEPENDS@
    74 
    75 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
    76 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    77 
    78 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
    79 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    80 
    81 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
    82 	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    83 
    84 install: all install-hdrs install-lib #install-bin
    85 install-hdrs:
    86 	$(SHELL) $(auxdir)/mkinstalldirs $(includedir)/SDL
    87 	for src in $(srcdir)/SDL_mixer.h; do \
    88 	    file=`echo $$src | sed -e 's|^.*/||'`; \
    89 	    $(INSTALL) -m 644 $$src $(includedir)/SDL/$$file; \
    90 	done
    91 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig
    92 	$(INSTALL) -m 644 SDL_mixer.pc $(libdir)/pkgconfig/
    93 install-lib: $(objects) $(objects)/$(TARGET)
    94 	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)
    95 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
    96 install-bin:
    97 	$(SHELL) $(auxdir)/mkinstalldirs $(bindir)
    98 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playwave$(EXE) $(bindir)/playwave$(EXE)
    99 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playmus$(EXE) $(bindir)/playmus$(EXE)
   100 
   101 uninstall: uninstall-hdrs uninstall-lib uninstall-bin
   102 uninstall-hdrs:
   103 	for src in $(srcdir)/SDL_mixer.h; do \
   104 	    file=`echo $$src | sed -e 's|^.*/||'`; \
   105 	    rm -f $(includedir)/SDL/$$file; \
   106 	done
   107 	-rmdir $(includedir)/SDL
   108 	rm -f $(libdir)/pkgconfig/SDL_mixer.pc
   109 	-rmdir $(libdir)/pkgconfig
   110 uninstall-lib:
   111 	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
   112 uninstall-bin:
   113 	rm -f $(bindir)/playwave$(EXE)
   114 	rm -f $(bindir)/playmus$(EXE)
   115 
   116 clean:
   117 	rm -rf $(objects)
   118 
   119 distclean: clean
   120 	rm -f Makefile
   121 	rm -f SDL_mixer.qpg
   122 	rm -f config.status config.cache config.log libtool
   123 	rm -f SDL_mixer.pc
   124 	rm -rf $(srcdir)/autom4te*
   125 	find $(srcdir) \( \
   126 	    -name '*~' -o \
   127 	    -name '*.bak' -o \
   128 	    -name '*.old' -o \
   129 	    -name '*.rej' -o \
   130 	    -name '*.orig' -o \
   131 	    -name '.#*' \) \
   132 	    -exec rm -f {} \;
   133 
   134 dist $(distfile):
   135 	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
   136 	tar cf - $(DIST) | (cd $(distdir); tar xf -)
   137 	rm -rf `find $(distdir) -name .svn`
   138 	rm -f `find $(distdir) -name '.#*'`
   139 	tar cvf - $(distdir) | gzip --best >$(distfile)
   140 	rm -rf $(distdir)
   141 
   142 rpm: $(distfile)
   143 	rpmbuild -ta $?