(none)
authorSam Lantinga <slouken@libsdl.org>
Mon, 01 May 2006 10:31:05 +0000
changeset 302d42471775e9f
parent 301 0e92ba702922
child 303 e851b5783fdf
(none)
Makefile.in
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.in	Mon May 01 10:31:05 2006 +0000
     1.3 @@ -0,0 +1,137 @@
     1.4 +# Makefile to build and install the SDL_mixer library
     1.5 +
     1.6 +top_builddir = .
     1.7 +srcdir  = @srcdir@
     1.8 +objects = build
     1.9 +depend	= build-deps
    1.10 +prefix = @prefix@
    1.11 +exec_prefix = @exec_prefix@
    1.12 +bindir	= $(DESTDIR)@bindir@
    1.13 +libdir  = $(DESTDIR)@libdir@
    1.14 +includedir = $(DESTDIR)@includedir@
    1.15 +datadir	= $(DESTDIR)@datadir@
    1.16 +mandir	= $(DESTDIR)@mandir@
    1.17 +auxdir	= @ac_aux_dir@
    1.18 +distpath = $(srcdir)/..
    1.19 +distdir = SDL_mixer-@VERSION@
    1.20 +distfile = $(distdir).tar.gz
    1.21 +
    1.22 +@SET_MAKE@
    1.23 +EXE	= @EXE@
    1.24 +SHELL	= @SHELL@
    1.25 +CC      = @CC@
    1.26 +CFLAGS  = @BUILD_CFLAGS@
    1.27 +EXTRA_CFLAGS = @EXTRA_CFLAGS@
    1.28 +LDFLAGS = @BUILD_LDFLAGS@
    1.29 +EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
    1.30 +LIBTOOL = @LIBTOOL@
    1.31 +INSTALL = @INSTALL@
    1.32 +AR	= @AR@
    1.33 +RANLIB	= @RANLIB@
    1.34 +SDL_CFLAGS = @SDL_CFLAGS@
    1.35 +SDL_LIBS = @SDL_LIBS@
    1.36 +
    1.37 +TARGET  = libSDL_mixer.la
    1.38 +SOURCES = @SOURCES@
    1.39 +OBJECTS = @OBJECTS@
    1.40 +
    1.41 +DIST = CHANGES COPYING CWProjects.sea.bin MPWmake.sea.bin Makefile.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.m4 autogen.sh build-scripts configure.in effect_position.c effect_stereoreverse.c effects_internal.c effects_internal.h gcc-fat.sh load_aiff.c load_aiff.h load_ogg.c load_ogg.h load_voc.c load_voc.h mikmod mixer.c music.c music_cmd.c music_cmd.h music_ogg.c music_ogg.h native_midi native_midi_gpl playmus.c playwave.c timidity wavestream.c wavestream.h
    1.42 +
    1.43 +LT_AGE      = @LT_AGE@
    1.44 +LT_CURRENT  = @LT_CURRENT@
    1.45 +LT_RELEASE  = @LT_RELEASE@
    1.46 +LT_REVISION = @LT_REVISION@
    1.47 +LT_LDFLAGS  = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    1.48 +
    1.49 +all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/playwave$(EXE) $(objects)/playmus$(EXE)
    1.50 +
    1.51 +$(srcdir)/configure: $(srcdir)/configure.in
    1.52 +	@echo "Warning, configure.in is out of date"
    1.53 +	#(cd $(srcdir) && sh autogen.sh && sh configure)
    1.54 +	@sleep 3
    1.55 +
    1.56 +Makefile: $(srcdir)/Makefile.in
    1.57 +	$(SHELL) config.status $@
    1.58 +
    1.59 +$(objects):
    1.60 +	$(SHELL) $(auxdir)/mkinstalldirs $@
    1.61 +
    1.62 +$(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
    1.63 +	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    1.64 +
    1.65 +$(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
    1.66 +	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
    1.67 +
    1.68 +.PHONY: all depend install install-hdrs install-lib install-bin uninstall uninstall-hdrs uninstall-lib uninstall-bin clean distclean dist
    1.69 +depend:
    1.70 +	@SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    1.71 +	$(SHELL) $(auxdir)/makedep.sh
    1.72 +	echo "\$$(objects)/playwave.lo: \$$(srcdir)/playwave.c" >>$(depend)
    1.73 +	echo "	\$$(LIBTOOL) --mode=compile \$$(CC) \$$(CFLAGS) \$$(SDL_CFLAGS) -c \$$(srcdir)/playwave.c  -o \$$@" >>$(depend)
    1.74 +	echo "" >>$(depend)
    1.75 +	echo "\$$(objects)/playmus.lo: \$$(srcdir)/playmus.c" >>$(depend)
    1.76 +	echo "	\$$(LIBTOOL) --mode=compile \$$(CC) \$$(CFLAGS) \$$(SDL_CFLAGS) -c \$$(srcdir)/playmus.c  -o \$$@" >>$(depend)
    1.77 +	echo "" >>$(depend)
    1.78 +
    1.79 +include $(depend)
    1.80 +
    1.81 +$(objects)/$(TARGET): $(OBJECTS)
    1.82 +	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.83 +
    1.84 +install: install-hdrs install-lib #install-bin
    1.85 +install-hdrs:
    1.86 +	$(SHELL) $(auxdir)/mkinstalldirs $(includedir)/SDL
    1.87 +	for src in $(srcdir)/SDL_mixer.h; do \
    1.88 +	    file=`echo $$src | sed -e 's|^.*/||'`; \
    1.89 +	    $(INSTALL) -m 644 $$src $(includedir)/SDL/$$file; \
    1.90 +	done
    1.91 +install-lib:
    1.92 +	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)
    1.93 +	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
    1.94 +install-bin:
    1.95 +	$(SHELL) $(auxdir)/mkinstalldirs $(bindir)
    1.96 +	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playwave$(EXE) $(bindir)/playwave$(EXE)
    1.97 +	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(objects)/playmus$(EXE) $(bindir)/playmus$(EXE)
    1.98 +
    1.99 +uninstall: uninstall-hdrs uninstall-lib uninstall-bin
   1.100 +uninstall-hdrs:
   1.101 +	for src in $(srcdir)/SDL_mixer.h; do \
   1.102 +	    file=`echo $$src | sed -e 's|^.*/||'`; \
   1.103 +	    rm -f $(includedir)/SDL/$$file; \
   1.104 +	done
   1.105 +	-rmdir $(includedir)/SDL
   1.106 +uninstall-lib:
   1.107 +	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
   1.108 +uninstall-bin:
   1.109 +	rm -f $(bindir)/playwave$(EXE)
   1.110 +	rm -f $(bindir)/playmus$(EXE)
   1.111 +
   1.112 +clean:
   1.113 +	rm -rf $(objects)
   1.114 +	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
   1.115 +
   1.116 +distclean: clean
   1.117 +	rm -f Makefile
   1.118 +	rm -f SDL_mixer.qpg
   1.119 +	rm -f config.status config.cache config.log libtool $(depend)
   1.120 +	rm -rf $(srcdir)/autom4te*
   1.121 +	find $(srcdir) \( \
   1.122 +	    -name '*~' -o \
   1.123 +	    -name '*.bak' -o \
   1.124 +	    -name '*.old' -o \
   1.125 +	    -name '*.rej' -o \
   1.126 +	    -name '*.orig' -o \
   1.127 +	    -name '.#*' \) \
   1.128 +	    -exec rm -f {} \;
   1.129 +
   1.130 +dist $(distfile):
   1.131 +	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
   1.132 +	tar cf - $(DIST) | (cd $(distdir); tar xf -)
   1.133 +	rm -rf `find $(distdir) -name .svn`
   1.134 +	rm -f `find $(distdir) -name '.#*'`
   1.135 +	rmdir `find $(distdir) -type d -empty`
   1.136 +	tar cvf - $(distdir) | gzip --best >$(distfile)
   1.137 +	rm -rf $(distdir)
   1.138 +
   1.139 +rpm: $(distfile)
   1.140 +	rpmbuild -ta $?