Makefile.in 7.2 KB

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