Skip to content

Latest commit

 

History

History
131 lines (112 loc) · 4.69 KB

Makefile.in

File metadata and controls

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