comparison Makefile.in @ 3352:6dc250ebdd80

The SDL 1.3 documentation will be primarily online wiki based: http://wiki.libsdl.org/ Please contact Lauren MacDonell laleh_aziz cox.net who is coordinating it.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 07 Oct 2009 14:29:59 +0000
parents b2abf7a772fc
children 3c9e6f2f3c58
comparison
equal deleted inserted replaced
3351:8e0182c236d8 3352:6dc250ebdd80
8 bindir = @bindir@ 8 bindir = @bindir@
9 libdir = @libdir@ 9 libdir = @libdir@
10 includedir = @includedir@ 10 includedir = @includedir@
11 datarootdir = @datarootdir@ 11 datarootdir = @datarootdir@
12 datadir = @datadir@ 12 datadir = @datadir@
13 mandir = @mandir@
14 auxdir = @ac_aux_dir@ 13 auxdir = @ac_aux_dir@
15 distpath = $(srcdir)/.. 14 distpath = $(srcdir)/..
16 distdir = SDL-@SDL_VERSION@ 15 distdir = SDL-@SDL_VERSION@
17 distfile = $(distdir).tar.gz 16 distfile = $(distdir).tar.gz
18 17
70 $(srcdir)/include/SDL_revision.h: update-revision 69 $(srcdir)/include/SDL_revision.h: update-revision
71 70
72 update-revision: 71 update-revision:
73 $(SHELL) $(auxdir)/updaterev.sh 72 $(SHELL) $(auxdir)/updaterev.sh
74 73
75 .PHONY: all update-revision install install-bin install-hdrs install-lib install-data install-man uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man clean distclean dist 74 .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist
76 75
77 -include $(OBJECTS:.lo=.d) 76 -include $(OBJECTS:.lo=.d)
78 @DEPENDS@ 77 @DEPENDS@
79 @VERSION_DEPENDS@ 78 @VERSION_DEPENDS@
80 @SDLMAIN_DEPENDS@ 79 @SDLMAIN_DEPENDS@
84 83
85 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS) 84 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
86 $(AR) cru $@ $(SDLMAIN_OBJECTS) 85 $(AR) cru $@ $(SDLMAIN_OBJECTS)
87 $(RANLIB) $@ 86 $(RANLIB) $@
88 87
89 install: all install-bin install-hdrs install-lib install-data install-man 88 install: all install-bin install-hdrs install-lib install-data
90 install-bin: 89 install-bin:
91 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir) 90 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
92 $(INSTALL) -m 755 sdl-config $(DESTDIR)$(bindir)/sdl-config 91 $(INSTALL) -m 755 sdl-config $(DESTDIR)$(bindir)/sdl-config
93 install-hdrs: 92 install-hdrs:
94 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL 93 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL
104 install-data: 103 install-data:
105 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal 104 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
106 $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(DESTDIR)$(datadir)/aclocal/sdl.m4 105 $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(DESTDIR)$(datadir)/aclocal/sdl.m4
107 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig 106 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
108 $(INSTALL) -m 644 sdl.pc $(DESTDIR)$(libdir)/pkgconfig 107 $(INSTALL) -m 644 sdl.pc $(DESTDIR)$(libdir)/pkgconfig
109 install-man:
110 $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
111 for src in $(srcdir)/docs/man3/*.3; do \
112 file=`echo $$src | sed -e 's|^.*/||'`; \
113 $(INSTALL) -m 644 $$src $(DESTDIR)$(mandir)/man3/$$file; \
114 done
115 108
116 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man 109 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
117 uninstall-bin: 110 uninstall-bin:
118 rm -f $(DESTDIR)$(bindir)/sdl-config 111 rm -f $(DESTDIR)$(bindir)/sdl-config
119 uninstall-hdrs: 112 uninstall-hdrs:
120 for file in $(HDRS); do \ 113 for file in $(HDRS); do \
121 rm -f $(DESTDIR)$(includedir)/SDL/$$file; \ 114 rm -f $(DESTDIR)$(includedir)/SDL/$$file; \
125 uninstall-lib: 118 uninstall-lib:
126 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET) 119 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
127 rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET) 120 rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
128 uninstall-data: 121 uninstall-data:
129 rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4 122 rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4
130 uninstall-man:
131 for src in $(srcdir)/docs/man3/*.3; do \
132 file=`echo $$src | sed -e 's|^.*/||'`; \
133 rm -f $(DESTDIR)$(mandir)/man3/$$file; \
134 done
135 123
136 clean: 124 clean:
137 rm -rf $(objects) 125 rm -rf $(objects)
138 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi 126 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
139 127