Advertisement
Guest User

Untitled

a guest
Feb 24th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. # Auto-generated file from 'Makefile.in' -- DO NOT EDIT
  2. # $Id: Makefile.in 24569 2012-10-03 09:12:51Z planetmaker $
  3.  
  4. # This file is part of OpenTTD.
  5. # OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
  6. # OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  7. # See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
  8.  
  9. # Check if we want to show what we are doing
  10. ifdef VERBOSE
  11. Q =
  12. else
  13. Q = @
  14. endif
  15.  
  16. include Makefile.am
  17.  
  18. CONFIG_CACHE_PWD = config.cache.pwd
  19. CONFIG_CACHE_SOURCE_LIST = config.cache.source.list
  20. BIN_DIR = C:/MinGW/msys/1.0/home/Administrator/Openttd/bin
  21. ICON_THEME_DIR = /usr/local/
  22. MAN_DIR = /usr/local/
  23. MENU_DIR =
  24. SRC_DIR = C:/MinGW/msys/1.0/home/Administrator/Openttd/src
  25. ROOT_DIR = C:/MinGW/msys/1.0/home/Administrator/Openttd
  26. BUNDLE_DIR = "$(ROOT_DIR)/bundle"
  27. BUNDLES_DIR = "$(ROOT_DIR)/bundles"
  28. INSTALL_DIR = /
  29. INSTALL_BINARY_DIR = "$(INSTALL_DIR)/"/usr/local/games
  30. INSTALL_MAN_DIR = "$(INSTALL_DIR)/$(MAN_DIR)"
  31. INSTALL_MENU_DIR = "$(INSTALL_DIR)/$(MENU_DIR)"
  32. INSTALL_ICON_DIR = "$(INSTALL_DIR)/"/usr/local/share/pixmaps
  33. INSTALL_ICON_THEME_DIR = "$(INSTALL_DIR)/$(ICON_THEME_DIR)"
  34. INSTALL_DATA_DIR = "$(INSTALL_DIR)/"/usr/local/share/games/openttd
  35. INSTALL_DOC_DIR = "$(INSTALL_DIR)/"/usr/local/share/games/openttd/docs
  36. SOURCE_LIST = C:/MinGW/msys/1.0/home/Administrator/Openttd/source.list
  37. CONFIGURE_FILES = C:/MinGW/msys/1.0/home/Administrator/Openttd/configure C:/MinGW/msys/1.0/home/Administrator/Openttd/config.lib C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.in C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.grf.in C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.lang.in C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.src.in C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.bundle.in C:/MinGW/msys/1.0/home/Administrator/Openttd/Makefile.setting.in
  38. BINARY_NAME = openttd
  39. STRIP =
  40. TTD = openttd.exe
  41. TTDS = $(SRC_DIRS:%=%/$(TTD))
  42. OS = MINGW
  43. OSXAPP =
  44. LIPO =
  45. AWK = awk
  46. SORT = sort -u
  47. DISTCC =
  48.  
  49. RES := $(shell if [ ! -f $(CONFIG_CACHE_PWD) ] || [ "`pwd`" != "`cat $(CONFIG_CACHE_PWD)`" ]; then echo "`pwd`" > $(CONFIG_CACHE_PWD); fi )
  50. RES := $(shell if [ ! -f $(CONFIG_CACHE_SOURCE_LIST) ] || [ -n "`cmp $(CONFIG_CACHE_SOURCE_LIST) $(SOURCE_LIST) 2>/dev/null`" ]; then cp $(SOURCE_LIST) $(CONFIG_CACHE_SOURCE_LIST); fi )
  51.  
  52. all: config.pwd config.cache
  53. ifdef DISTCC
  54. @if [ -z "`echo '$(MFLAGS)' | grep '\-j'`" ]; then echo; echo "WARNING: you enabled distcc support, but you don't seem to be using the -jN paramter"; echo; fi
  55. endif
  56. @for dir in $(DIRS); do \
  57. $(MAKE) -C $$dir all || exit 1; \
  58. done
  59. ifdef LIPO
  60. # Lipo is an OSX thing. If it is defined, it means we are building for universal,
  61. # and so we have have to combine the binaries into one big binary
  62.  
  63. # Remove the last binary made by the last compiled target
  64. $(Q)rm -f $(BIN_DIR)/$(TTD)
  65. # Make all the binaries into one
  66. $(Q)$(LIPO) -create -output $(BIN_DIR)/$(TTD) $(TTDS)
  67. endif
  68.  
  69. help:
  70. @echo "Available make commands:"
  71. @echo ""
  72. @echo "Compilation:"
  73. @echo " all compile the executable and the lang files"
  74. @echo " lang compile the lang files only"
  75. @echo "Clean up:"
  76. @echo " clean remove the files generated during compilation"
  77. @echo " mrproper remove the files generated during configuration and compilation"
  78. @echo "Run after compilation:"
  79. @echo " run execute openttd after the compilation"
  80. @echo " run-gdb execute openttd in debug mode after the compilation"
  81. @echo " run-prof execute openttd in profiling mode after the compilation"
  82. @echo "Installation:"
  83. @echo " install install the compiled files and the data-files after the compilation"
  84. @echo " bundle create the base for an installation bundle"
  85. @echo " bundle_zip create the zip installation bundle"
  86. @echo " bundle_gzip create the gzip installation bundle"
  87. @echo " bundle_bzip2 create the bzip2 installation bundle"
  88. @echo " bundle_lha create the lha installation bundle"
  89. @echo " bundle_dmg create the dmg installation bundle"
  90.  
  91. config.pwd: $(CONFIG_CACHE_PWD)
  92. $(MAKE) reconfigure
  93.  
  94. config.cache: $(CONFIG_CACHE_SOURCE_LIST) $(CONFIGURE_FILES)
  95. $(MAKE) reconfigure
  96.  
  97. reconfigure:
  98. ifeq ($(shell if test -f config.cache; then echo 1; fi), 1)
  99. @echo "----------------"
  100. @echo "The system detected that source.list or any configure file is altered."
  101. @echo " Going to reconfigure with last known settings..."
  102. @echo "----------------"
  103. # Make sure we don't lock config.cache
  104. @$(shell cat config.cache | sed 's@\\ @\\\\ @g') || exit 1
  105. @echo "----------------"
  106. @echo "Reconfig done. Please re-execute make."
  107. @echo "----------------"
  108. else
  109. @echo "----------------"
  110. @echo "Have not found a configuration, please run configure first."
  111. @echo "----------------"
  112. @exit 1
  113. endif
  114.  
  115. clean:
  116. @for dir in $(DIRS); do \
  117. $(MAKE) -C $$dir clean; \
  118. done
  119. $(Q)rm -rf $(BUNDLE_TARGET)
  120.  
  121. lang:
  122. @for dir in $(LANG_DIRS); do \
  123. $(MAKE) -C $$dir all; \
  124. done
  125.  
  126. mrproper:
  127. @for dir in $(DIRS); do \
  128. $(MAKE) -C $$dir mrproper; \
  129. done
  130. # Don't be tempted to merge these two for loops. Doing that breaks make
  131. # --dry-run, since make has this "feature" that it always runs commands
  132. # containing $(MAKE), even when --dry-run is passed. The objective is of
  133. # course to also get a dry-run of submakes, but make is not smart enough
  134. # to see that a for loop runs both a submake and an actual command.
  135. @for dir in $(DIRS); do \
  136. rm -f $$dir/Makefile; \
  137. done
  138. $(Q)rm -rf objs
  139. $(Q)rm -f Makefile Makefile.am Makefile.bundle
  140. $(Q)rm -f media/openttd.desktop media/openttd.desktop.install
  141. $(Q)rm -f $(CONFIG_CACHE_SOURCE_LIST) config.cache config.pwd config.log $(CONFIG_CACHE_PWD)
  142. # directories for bundle generation
  143. $(Q)rm -rf $(BUNDLE_DIR)
  144. $(Q)rm -rf $(BUNDLES_DIR)
  145. # output of profiling
  146. $(Q)rm -f $(BIN_DIR)/gmon.out
  147. # output of generating 'API' documentation
  148. $(Q)rm -f $(ROOT_DIR)/openttd.tag
  149. $(Q)rm -rf $(ROOT_DIR)/docs/source
  150. # output of generating AI API documentation
  151. $(Q)rm -f $(SRC_DIR)/ai/api/openttd.tag
  152. $(Q)rm -rf $(ROOT_DIR)/docs/aidocs
  153. # directories created by OpenTTD on regression testing
  154. $(Q)rm -rf $(BIN_DIR)/ai/regression/content_download $(BIN_DIR)/ai/regression/save $(BIN_DIR)/ai/regression/scenario
  155. distclean: mrproper
  156.  
  157. maintainer-clean: distclean
  158. $(Q)rm -f $(BIN_DIR)/baseset/openttd.grf
  159.  
  160. depend:
  161. @for dir in $(SRC_DIRS); do \
  162. $(MAKE) -C $$dir depend; \
  163. done
  164.  
  165. run: all
  166. $(Q)cd C:/MinGW/msys/1.0/home/Administrator/Openttd/bin && ./openttd.exe $(OPENTTD_ARGS)
  167.  
  168. run-gdb: all
  169. $(Q)cd C:/MinGW/msys/1.0/home/Administrator/Openttd/bin && gdb --ex run --args ./openttd.exe $(OPENTTD_ARGS)
  170.  
  171. run-prof: all
  172. $(Q)cd C:/MinGW/msys/1.0/home/Administrator/Openttd/bin && ./openttd.exe $(OPENTTD_ARGS) && gprof openttd.exe | less
  173.  
  174. regression: all
  175. $(Q)cd C:/MinGW/msys/1.0/home/Administrator/Openttd/bin && sh ai/regression/run.sh
  176. test: regression
  177.  
  178. %.o:
  179. @for dir in $(SRC_DIRS); do \
  180. $(MAKE) -C $$dir $(@:src/%=%); \
  181. done
  182.  
  183. %.lng:
  184. @for dir in $(LANG_DIRS); do \
  185. $(MAKE) -C $$dir $@; \
  186. done
  187.  
  188. .PHONY: test distclean mrproper clean
  189.  
  190. include Makefile.bundle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement