Makefile.in 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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_gamecontroller.h \
  51. SDL_gesture.h \
  52. SDL_haptic.h \
  53. SDL_hints.h \
  54. SDL_joystick.h \
  55. SDL_keyboard.h \
  56. SDL_keycode.h \
  57. SDL_loadso.h \
  58. SDL_log.h \
  59. SDL_main.h \
  60. SDL_messagebox.h \
  61. SDL_mouse.h \
  62. SDL_mutex.h \
  63. SDL_name.h \
  64. SDL_opengl.h \
  65. SDL_opengles.h \
  66. SDL_opengles2.h \
  67. SDL_pixels.h \
  68. SDL_platform.h \
  69. SDL_power.h \
  70. SDL_quit.h \
  71. SDL_rect.h \
  72. SDL_render.h \
  73. SDL_rwops.h \
  74. SDL_scancode.h \
  75. SDL_shape.h \
  76. SDL_stdinc.h \
  77. SDL_surface.h \
  78. SDL_system.h \
  79. SDL_syswm.h \
  80. SDL_thread.h \
  81. SDL_timer.h \
  82. SDL_touch.h \
  83. SDL_types.h \
  84. SDL_version.h \
  85. SDL_video.h \
  86. begin_code.h \
  87. close_code.h
  88. SDLTEST_HDRS = $(shell ls $(srcdir)/include | fgrep SDL_test)
  89. LT_AGE = @LT_AGE@
  90. LT_CURRENT = @LT_CURRENT@
  91. LT_RELEASE = @LT_RELEASE@
  92. LT_REVISION = @LT_REVISION@
  93. LT_LDFLAGS = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  94. all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
  95. $(srcdir)/configure: $(srcdir)/configure.in
  96. @echo "Warning, configure.in is out of date"
  97. #(cd $(srcdir) && sh autogen.sh && sh configure)
  98. @sleep 3
  99. Makefile: $(srcdir)/Makefile.in
  100. $(SHELL) config.status $@
  101. Makefile.in:;
  102. $(objects):
  103. $(SHELL) $(auxdir)/mkinstalldirs $@
  104. update-revision:
  105. $(SHELL) $(auxdir)/updaterev.sh
  106. .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)
  107. $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
  108. $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
  109. $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
  110. $(AR) cru $@ $(SDLMAIN_OBJECTS)
  111. $(RANLIB) $@
  112. $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
  113. $(AR) cru $@ $(SDLTEST_OBJECTS)
  114. $(RANLIB) $@
  115. install: all install-bin install-hdrs install-lib install-data
  116. install-bin:
  117. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
  118. $(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
  119. install-hdrs: update-revision
  120. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
  121. for file in $(HDRS) $(SDLTEST_HDRS); do \
  122. $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
  123. done
  124. $(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
  125. if test -f include/SDL_revision.h; then \
  126. $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
  127. else \
  128. $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
  129. fi
  130. install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
  131. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
  132. $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
  133. $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  134. $(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  135. $(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  136. $(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  137. install-data:
  138. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
  139. $(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
  140. $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
  141. $(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
  142. uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
  143. uninstall-bin:
  144. rm -f $(DESTDIR)$(bindir)/sdl2-config
  145. uninstall-hdrs:
  146. for file in $(HDRS) $(SDLTEST_HDRS); do \
  147. rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
  148. done
  149. rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
  150. rm -f $(DESTDIR)$(includedir)/SDL2/SDL_revision.h
  151. -rmdir $(DESTDIR)$(includedir)/SDL2
  152. uninstall-lib:
  153. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
  154. rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
  155. rm -f $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
  156. uninstall-data:
  157. rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
  158. rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
  159. clean:
  160. rm -rf $(objects)
  161. if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
  162. distclean: clean
  163. rm -f Makefile Makefile.rules sdl2-config
  164. rm -f config.status config.cache config.log libtool
  165. rm -rf $(srcdir)/autom4te*
  166. find $(srcdir) \( \
  167. -name '*~' -o \
  168. -name '*.bak' -o \
  169. -name '*.old' -o \
  170. -name '*.rej' -o \
  171. -name '*.orig' -o \
  172. -name '.#*' \) \
  173. -exec rm -f {} \;
  174. if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
  175. dist $(distfile):
  176. $(SHELL) $(auxdir)/mkinstalldirs $(distdir)
  177. (cd $(srcdir); tar cf - $(SRC_DIST)) | (cd $(distdir); tar xf -)
  178. tar cf - $(GEN_DIST) | (cd $(distdir); tar xf -)
  179. find $(distdir) \( \
  180. -name '*~' -o \
  181. -name '*.bak' -o \
  182. -name '*.old' -o \
  183. -name '*.rej' -o \
  184. -name '*.orig' -o \
  185. -name '.#*' \) \
  186. -exec rm -f {} \;
  187. if test -f $(distdir)/test/Makefile; then (cd $(distdir)/test && make distclean); fi
  188. (cd $(distdir); build-scripts/updaterev.sh)
  189. tar cvf - $(distdir) | gzip --best >$(distfile)
  190. rm -rf $(distdir)
  191. rpm: $(distfile)
  192. rpmbuild -ta $?