Makefile.in 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # Makefile to build and install the SDL library
  2. top_builddir = .
  3. srcdir = @srcdir@
  4. objects = build
  5. prefix = @prefix@
  6. exec_prefix = @exec_prefix@
  7. bindir = @bindir@
  8. libdir = @libdir@
  9. includedir = @includedir@
  10. datarootdir = @datarootdir@
  11. datadir = @datadir@
  12. auxdir = @ac_aux_dir@
  13. distpath = $(srcdir)/..
  14. distdir = SDL2-@SDL_VERSION@
  15. distfile = $(distdir).tar.gz
  16. @SET_MAKE@
  17. SHELL = @SHELL@
  18. CC = @CC@
  19. INCLUDE = @INCLUDE@
  20. CFLAGS = @BUILD_CFLAGS@
  21. EXTRA_CFLAGS = @EXTRA_CFLAGS@
  22. LDFLAGS = @BUILD_LDFLAGS@
  23. EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
  24. LIBTOOL = @LIBTOOL@
  25. INSTALL = @INSTALL@
  26. AR = @AR@
  27. RANLIB = @RANLIB@
  28. WINDRES = @WINDRES@
  29. TARGET = libSDL2.la
  30. OBJECTS = @OBJECTS@
  31. VERSION_OBJECTS = @VERSION_OBJECTS@
  32. SDLMAIN_TARGET = libSDL2main.a
  33. SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
  34. SDLTEST_TARGET = libSDL2_test.a
  35. SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
  36. SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC Xcode Xcode-iOS
  37. GEN_DIST = SDL2.spec
  38. HDRS = \
  39. SDL.h \
  40. SDL_assert.h \
  41. SDL_atomic.h \
  42. SDL_audio.h \
  43. SDL_bits.h \
  44. SDL_blendmode.h \
  45. SDL_clipboard.h \
  46. SDL_cpuinfo.h \
  47. SDL_endian.h \
  48. SDL_error.h \
  49. SDL_events.h \
  50. SDL_filesystem.h \
  51. SDL_gamecontroller.h \
  52. SDL_gesture.h \
  53. SDL_haptic.h \
  54. SDL_hints.h \
  55. SDL_joystick.h \
  56. SDL_keyboard.h \
  57. SDL_keycode.h \
  58. SDL_loadso.h \
  59. SDL_log.h \
  60. SDL_main.h \
  61. SDL_messagebox.h \
  62. SDL_mouse.h \
  63. SDL_mutex.h \
  64. SDL_name.h \
  65. SDL_opengl.h \
  66. SDL_opengles.h \
  67. SDL_opengles2.h \
  68. SDL_pixels.h \
  69. SDL_platform.h \
  70. SDL_power.h \
  71. SDL_quit.h \
  72. SDL_rect.h \
  73. SDL_render.h \
  74. SDL_rwops.h \
  75. SDL_scancode.h \
  76. SDL_shape.h \
  77. SDL_stdinc.h \
  78. SDL_surface.h \
  79. SDL_system.h \
  80. SDL_syswm.h \
  81. SDL_thread.h \
  82. SDL_timer.h \
  83. SDL_touch.h \
  84. SDL_types.h \
  85. SDL_version.h \
  86. SDL_video.h \
  87. begin_code.h \
  88. close_code.h
  89. SDLTEST_HDRS = $(shell ls $(srcdir)/include | fgrep SDL_test)
  90. LT_AGE = @LT_AGE@
  91. LT_CURRENT = @LT_CURRENT@
  92. LT_RELEASE = @LT_RELEASE@
  93. LT_REVISION = @LT_REVISION@
  94. LT_LDFLAGS = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  95. all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
  96. $(srcdir)/configure: $(srcdir)/configure.in
  97. @echo "Warning, configure.in is out of date"
  98. #(cd $(srcdir) && sh autogen.sh && sh configure)
  99. @sleep 3
  100. Makefile: $(srcdir)/Makefile.in
  101. $(SHELL) config.status $@
  102. Makefile.in:;
  103. $(objects):
  104. $(SHELL) $(auxdir)/mkinstalldirs $@
  105. update-revision:
  106. $(SHELL) $(auxdir)/updaterev.sh
  107. .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 $(OBJECTS:.lo=.d)
  108. $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
  109. $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
  110. $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
  111. $(AR) cru $@ $(SDLMAIN_OBJECTS)
  112. $(RANLIB) $@
  113. $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
  114. $(AR) cru $@ $(SDLTEST_OBJECTS)
  115. $(RANLIB) $@
  116. install: all install-bin install-hdrs install-lib install-data
  117. install-bin:
  118. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
  119. $(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
  120. install-hdrs: update-revision
  121. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
  122. for file in $(HDRS) $(SDLTEST_HDRS); do \
  123. $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
  124. done
  125. $(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
  126. if test -f include/SDL_revision.h; then \
  127. $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
  128. else \
  129. $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
  130. fi
  131. install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
  132. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
  133. $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
  134. $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  135. $(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  136. $(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  137. $(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  138. install-data:
  139. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
  140. $(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
  141. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
  142. $(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
  143. uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
  144. uninstall-bin:
  145. rm -f $(DESTDIR)$(bindir)/sdl2-config
  146. uninstall-hdrs:
  147. for file in $(HDRS) $(SDLTEST_HDRS); do \
  148. rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
  149. done
  150. rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
  151. rm -f $(DESTDIR)$(includedir)/SDL2/SDL_revision.h
  152. -rmdir $(DESTDIR)$(includedir)/SDL2
  153. uninstall-lib:
  154. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
  155. rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  156. rm -f $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  157. uninstall-data:
  158. rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
  159. rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
  160. clean:
  161. rm -rf $(objects)
  162. if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
  163. distclean: clean
  164. rm -f Makefile Makefile.rules sdl2-config
  165. rm -f config.status config.cache config.log libtool
  166. rm -rf $(srcdir)/autom4te*
  167. find $(srcdir) \( \
  168. -name '*~' -o \
  169. -name '*.bak' -o \
  170. -name '*.old' -o \
  171. -name '*.rej' -o \
  172. -name '*.orig' -o \
  173. -name '.#*' \) \
  174. -exec rm -f {} \;
  175. if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
  176. dist $(distfile):
  177. $(SHELL) $(auxdir)/mkinstalldirs $(distdir)
  178. (cd $(srcdir); tar cf - $(SRC_DIST)) | (cd $(distdir); tar xf -)
  179. tar cf - $(GEN_DIST) | (cd $(distdir); tar xf -)
  180. find $(distdir) \( \
  181. -name '*~' -o \
  182. -name '*.bak' -o \
  183. -name '*.old' -o \
  184. -name '*.rej' -o \
  185. -name '*.orig' -o \
  186. -name '.#*' \) \
  187. -exec rm -f {} \;
  188. if test -f $(distdir)/test/Makefile; then (cd $(distdir)/test && make distclean); fi
  189. (cd $(distdir); build-scripts/updaterev.sh)
  190. tar cvf - $(distdir) | gzip --best >$(distfile)
  191. rm -rf $(distdir)
  192. rpm: $(distfile)
  193. rpmbuild -ta $?