annotate Makefile.msvc @ 20129:c7853270c635 draft

(svn r25073) -Doc: Improve Currencies enum description
author planetmaker <planetmaker@openttd.org>
date Sat, 09 Mar 2013 16:21:47 +0000
parents a5a8fa479f8c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12778
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
1 # $Id$
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
2
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
3 # This file is part of OpenTTD.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
4 # 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.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
5 # 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.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
6 # 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/>.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 12349
diff changeset
7
9919
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
8 #
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
9 # Makefile for creating bundles of MSVC's binaries in the same way as we make
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
10 # the zip bundles for ALL other OSes.
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
11 #
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
12 # Usage: make -f Makefile.msvc PLATFORM=[Win32|x64] BUNDLE_NAME=openttd-<version>-win[32|64]
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
13 # or make -f Makefile.msvc PLATFORM=[Win32|x64] BUNDLE_NAME=OTTD-win[32|64]-nightly-<revision>
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
14 #
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
15
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
16 # Check if we want to show what we are doing
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
17 ifdef VERBOSE
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
18 Q =
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
19 else
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
20 Q = @
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
21 endif
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
22
12961
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
23 AWK = "awk"
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
24 ROOT_DIR := $(shell pwd)
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
25 BIN_DIR = "$(ROOT_DIR)/bin"
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
26 SRC_DIR = "$(ROOT_DIR)/src"
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
27 BUNDLE_DIR = "$(ROOT_DIR)/bundle"
9919
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
28 BUNDLES_DIR = "$(ROOT_DIR)/bundles"
12961
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
29 TTD = openttd.exe
17791
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
30 PDB = openttd.pdb
17796
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
31 MODE = Release
12961
d47724c1c01f (svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents: 12778
diff changeset
32 TARGET := $(shell echo $(PLATFORM) | sed "s@win64@x64@;s@win32@Win32@")
9919
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
33
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
34 all:
17796
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
35 $(Q)cp objs/$(TARGET)/$(MODE)/$(TTD) $(BIN_DIR)/$(TTD)
9919
1e401eca4b13 (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium <rubidium@openttd.org>
parents:
diff changeset
36
10057
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents: 9960
diff changeset
37 include Makefile.bundle.in
17791
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
38
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
39 bundle_pdb:
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
40 @echo '[BUNDLE] Creating $(BUNDLE_NAME).pdb.xz'
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
41 $(Q)mkdir -p "$(BUNDLES_DIR)"
d1eb025f40de (svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
rubidium <rubidium@openttd.org>
parents: 12961
diff changeset
42 $(Q)cp objs/$(TARGET)/Release/$(PDB) $(BUNDLES_DIR)/$(BUNDLE_NAME).pdb
17794
7718bb59cb56 (svn r22579) -Fix (r22576): copy-paste error :(
rubidium <rubidium@openttd.org>
parents: 17791
diff changeset
43 $(Q)xz -9 $(BUNDLES_DIR)/$(BUNDLE_NAME).pdb
17796
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
44
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
45 regression: all
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
46 $(Q)cp bin/$(TTD) bin/openttd
a5a8fa479f8c (svn r22581) -Add: 'make regression' support to Makefile.msvc
rubidium <rubidium@openttd.org>
parents: 17794
diff changeset
47 $(Q)cd bin && sh ai/regression/run.sh