Mercurial > sdl-ios-xcode
comparison Makefile.in @ 1397:b189a73aa335
Added rules to build libSDLmain.a
Reverted Patrice's mint changes - you should fix the source files, not
add include paths to the build process.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 22:15:38 +0000 |
parents | e57f8d1344b6 |
children | 1819fd069e89 |
comparison
equal
deleted
inserted
replaced
1396:428c8690cf73 | 1397:b189a73aa335 |
---|---|
28 | 28 |
29 TARGET = libSDL.la | 29 TARGET = libSDL.la |
30 SOURCES = @SOURCES@ | 30 SOURCES = @SOURCES@ |
31 OBJECTS = @OBJECTS@ | 31 OBJECTS = @OBJECTS@ |
32 | 32 |
33 SDLMAIN_TARGET = libSDLmain.a | |
34 SDLMAIN_SOURCES = @SDLMAIN_SOURCES@ | |
35 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@ | |
36 | |
33 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 | 37 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 |
34 | 38 |
35 LT_AGE = @LT_AGE@ | 39 LT_AGE = @LT_AGE@ |
36 LT_CURRENT = @LT_CURRENT@ | 40 LT_CURRENT = @LT_CURRENT@ |
37 LT_RELEASE = @LT_RELEASE@ | 41 LT_RELEASE = @LT_RELEASE@ |
38 LT_REVISION = @LT_REVISION@ | 42 LT_REVISION = @LT_REVISION@ |
39 LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) | 43 LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) |
40 | 44 |
41 all: Makefile $(objects) $(objects)/$(TARGET) | 45 all: Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(TARGET_SDLMAIN) |
42 | 46 |
43 Makefile: $(srcdir)/Makefile.in | 47 Makefile: $(srcdir)/Makefile.in |
44 $(SHELL) config.status $@ | 48 $(SHELL) config.status $@ |
45 | 49 |
46 $(objects): | 50 $(objects): |
48 | 52 |
49 .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 | 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 |
50 depend: | 54 depend: |
51 SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" objects="$(objects)" output="$(depend)" \ | 55 SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" objects="$(objects)" output="$(depend)" \ |
52 $(SHELL) $(auxdir)/makedep.sh | 56 $(SHELL) $(auxdir)/makedep.sh |
57 for src in $(SDLMAIN_SOURCES); do \ | |
58 obj=`echo $$src | sed -e 's|.*/||' -e 's|\.[^\.]*$$|.o|'`; \ | |
59 echo "$(objects)/$$obj: $$src" >>$(depend); \ | |
60 echo " \$$(CC) \$$(CFLAGS) -c $$src -o \$$@" >>$(depend); \ | |
61 done | |
53 | 62 |
54 include $(depend) | 63 include $(depend) |
55 | 64 |
56 $(objects)/$(TARGET): $(OBJECTS) | 65 $(objects)/$(TARGET): $(OBJECTS) |
57 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(LT_LDFLAGS) | 66 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(LT_LDFLAGS) |
67 | |
68 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS) | |
69 @AR@ cru $@ $(SDLMAIN_OBJECTS) | |
70 @RANLIB@ $@ | |
58 | 71 |
59 install: install-bin install-hdrs install-lib install-data install-man | 72 install: install-bin install-hdrs install-lib install-data install-man |
60 install-bin: | 73 install-bin: |
61 $(SHELL) $(auxdir)/mkinstalldirs $(bindir) | 74 $(SHELL) $(auxdir)/mkinstalldirs $(bindir) |
62 $(INSTALL) -m 755 $(srcdir)/sdl-config $(bindir)/sdl-config | 75 $(INSTALL) -m 755 $(srcdir)/sdl-config $(bindir)/sdl-config |
68 done | 81 done |
69 $(INSTALL) -m 644 include/SDL_config.h $(includedir)/SDL/SDL_config.h | 82 $(INSTALL) -m 644 include/SDL_config.h $(includedir)/SDL/SDL_config.h |
70 install-lib: | 83 install-lib: |
71 $(SHELL) $(auxdir)/mkinstalldirs $(libdir) | 84 $(SHELL) $(auxdir)/mkinstalldirs $(libdir) |
72 $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET) | 85 $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET) |
86 $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(libdir)/$(SDLMAIN_TARGET) | |
73 install-data: | 87 install-data: |
74 $(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal | 88 $(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal |
75 $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4 | 89 $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4 |
76 install-man: | 90 install-man: |
77 $(SHELL) $(auxdir)/mkinstalldirs $(mandir)/man3 | 91 $(SHELL) $(auxdir)/mkinstalldirs $(mandir)/man3 |
89 rm -f $(includedir)/SDL/$$file; \ | 103 rm -f $(includedir)/SDL/$$file; \ |
90 done | 104 done |
91 rm -f $(includedir)/SDL/SDL_config.h | 105 rm -f $(includedir)/SDL/SDL_config.h |
92 uninstall-lib: | 106 uninstall-lib: |
93 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET) | 107 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET) |
108 rm -f $(libdir)/$(SDLMAIN_TARGET) | |
94 uninstall-data: | 109 uninstall-data: |
95 rm -f $(datadir)/aclocal/sdl.m4 | 110 rm -f $(datadir)/aclocal/sdl.m4 |
96 uninstall-man: | 111 uninstall-man: |
97 for src in $(srcdir)/docs/man3/*.3; do \ | 112 for src in $(srcdir)/docs/man3/*.3; do \ |
98 file=`echo $$src | sed -e 's|^.*/||'`; \ | 113 file=`echo $$src | sed -e 's|^.*/||'`; \ |
119 $(SHELL) $(auxdir)/mkinstalldirs $(distdir) | 134 $(SHELL) $(auxdir)/mkinstalldirs $(distdir) |
120 tar cf - $(DIST) | (cd $(distdir); tar xf -) | 135 tar cf - $(DIST) | (cd $(distdir); tar xf -) |
121 rm -rf `find $(distdir) -name CVS` | 136 rm -rf `find $(distdir) -name CVS` |
122 rm -f `find $(distdir) -name '.cvsignore'` | 137 rm -f `find $(distdir) -name '.cvsignore'` |
123 rm -f `find $(distdir) -name '.#*'` | 138 rm -f `find $(distdir) -name '.#*'` |
139 rmdir `find $(distdir) -type d -empty` | |
124 tar cvf - $(distdir) | gzip --best >$(distfile) | 140 tar cvf - $(distdir) | gzip --best >$(distfile) |
125 rm -rf $(distdir) | 141 rm -rf $(distdir) |
126 | 142 |
127 rpm: $(distfile) | 143 rpm: $(distfile) |
128 rpmbuild -ta $? | 144 rpmbuild -ta $? |