Mercurial > sdl-ios-xcode
annotate Makefile.in @ 1380:d94b080ff6ce
Completely removed dependency on automake
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 02:09:49 +0000 |
parents | 88ddeb76c9c1 |
children | b34d38f76a2a |
rev | line source |
---|---|
1362 | 1 # Makefile to build and install the SDL library |
2 | |
3 top_builddir = . | |
4 srcdir = @srcdir@ | |
5 objects = build | |
6 depend = build-deps | |
7 prefix = @prefix@ | |
8 exec_prefix = @exec_prefix@ | |
9 bindir = @bindir@ | |
10 libdir = @libdir@ | |
11 includedir = @includedir@ | |
12 datadir = @datadir@ | |
13 mandir = @mandir@ | |
14 distpath = $(srcdir)/.. | |
15 distdir = SDL-@SDL_VERSION@ | |
16 distfile = $(distdir).tar.gz | |
17 | |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1362
diff
changeset
|
18 @SET_MAKE@ |
1362 | 19 SHELL = @SHELL@ |
20 CC = @CC@ | |
21 INCLUDE = @INCLUDE@ | |
22 CFLAGS = @BUILD_CFLAGS@ | |
23 LDFLAGS = @BUILD_LIBS@ | |
24 LIBTOOL = @LIBTOOL@ | |
25 INSTALL = @INSTALL@ | |
26 NASM = @NASM@ @NASMFLAGS@ | |
27 | |
28 TARGET = libSDL.la | |
29 SOURCES = @SOURCES@ | |
30 OBJECTS = @OBJECTS@ | |
31 | |
32 DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html EpocBuildFiles.zip include INSTALL Makefile.dc Makefile.in MPWmake.sea.bin PBProjects.tar.gz README* sdl-config.in sdl.m4 SDL.qpg.in SDL.spec SDL.spec.in setvars.cmd src test TODO VisualCE.zip VisualC.html VisualC.zip Watcom.mif WhatsNew Xcode21.tar.gz Xcode.tar.gz XcodeUniversal.tar.gz | |
33 | |
34 BUILDC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@ | |
35 BUILDCC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@ | |
36 BUILDM = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@ | |
37 BUILDASM = $(LIBTOOL) --tag=CC --mode=compile @ac_aux_dir@/strip_fPIC.sh $(NASM) $? -o $@ | |
38 | |
39 LT_AGE = @LT_AGE@ | |
40 LT_CURRENT = @LT_CURRENT@ | |
41 LT_RELEASE = @LT_RELEASE@ | |
42 LT_REVISION = @LT_REVISION@ | |
43 LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) | |
44 | |
45 all: Makefile $(objects) $(objects)/$(TARGET) | |
46 | |
47 Makefile: $(srcdir)/Makefile.in | |
48 $(SHELL) config.status $@ | |
49 | |
50 $(objects): | |
51 $(SHELL) @ac_aux_dir@/mkinstalldirs $@ | |
52 | |
53 .PHONY: all depend 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 | |
54 depend: | |
55 SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" objects="$(objects)" output="$(depend)" \ | |
56 $(SHELL) @ac_aux_dir@/makedep.sh | |
57 | |
58 include $(depend) | |
59 | |
60 $(objects)/$(TARGET): $(OBJECTS) | |
61 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(LT_LDFLAGS) | |
62 | |
63 install: install-bin install-hdrs install-lib install-data install-man | |
64 install-bin: | |
65 $(SHELL) @ac_aux_dir@/mkinstalldirs $(bindir) | |
66 $(INSTALL) -m 755 $(srcdir)/sdl-config $(bindir)/sdl-config | |
67 install-hdrs: | |
68 $(SHELL) @ac_aux_dir@/mkinstalldirs $(includedir)/SDL | |
69 for src in $(srcdir)/include/*.h; do \ | |
70 file=`echo $$src | sed -e 's|^.*/||'`; \ | |
71 $(INSTALL) $$src $(includedir)/SDL/$$file; \ | |
72 done | |
73 $(INSTALL) include/SDL_config.h $(includedir)/SDL/SDL_config.h | |
74 install-lib: | |
75 $(SHELL) @ac_aux_dir@/mkinstalldirs $(libdir) | |
76 $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET) | |
77 install-data: | |
78 $(SHELL) @ac_aux_dir@/mkinstalldirs $(datadir)/aclocal | |
79 $(INSTALL) $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4 | |
80 install-man: | |
81 $(SHELL) @ac_aux_dir@/mkinstalldirs $(mandir)/man3 | |
82 for src in $(srcdir)/docs/man3/*.3; do \ | |
83 file=`echo $$src | sed -e 's|^.*/||'`; \ | |
84 $(INSTALL) $$src $(mandir)/man3/$$file; \ | |
85 done | |
86 | |
87 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-man | |
88 uninstall-bin: | |
89 rm -f $(bindir)/sdl-config | |
90 uninstall-hdrs: | |
91 for src in $(srcdir)/include/*.h; do \ | |
92 file=`echo $$src | sed -e 's|^.*/||'`; \ | |
93 rm -f $(includedir)/SDL/$$file; \ | |
94 done | |
95 rm -f $(includedir)/SDL/SDL_config.h | |
96 uninstall-lib: | |
97 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET) | |
98 uninstall-data: | |
99 rm -f $(datadir)/aclocal/sdl.m4 | |
100 uninstall-man: | |
101 for src in $(srcdir)/docs/man3/*.3; do \ | |
102 file=`echo $$src | sed -e 's|^.*/||'`; \ | |
103 rm -f $(mandir)/man3/$$file; \ | |
104 done | |
105 | |
106 clean: | |
107 rm -rf $(objects) | |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1362
diff
changeset
|
108 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi |
1362 | 109 |
110 distclean: clean | |
111 rm -f Makefile include/SDL_config.h sdl-config | |
112 rm -f SDL.qpg | |
113 rm -f config.status config.cache config.log libtool $(depend) | |
114 rm -rf $(srcdir)/autom4te* | |
115 find $(srcdir) \ | |
116 -name '*~' -o -name '*.bak' -o -name '*.old' -o -name '*.rej' -o \ | |
117 -name '.#*' \ | |
118 -exec rm -f {} \; | |
119 cp include/SDL_config.h.minimal include/SDL_config.h | |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1362
diff
changeset
|
120 if test -f test/Makefile; then (cd test; $(MAKE) $@); fi |
1362 | 121 |
122 dist $(distfile): | |
123 $(SHELL) @ac_aux_dir@/mkinstalldirs $(distdir) | |
124 tar cf - $(DIST) | (cd $(distdir); tar xf -) | |
125 rm -rf `find $(distdir) -name CVS` | |
126 rm -f `find $(distdir) -name '.#*'` | |
127 tar cvf - $(distdir) | gzip --best >$(distfile) | |
128 rm -rf $(distdir) | |
129 | |
130 rpm: $(distfile) | |
131 rpmbuild -ta $? |