Mercurial > hg > openttd
annotate Makefile.msvc @ 13716:f262cbfc0af1 draft
(svn r18241) -Codechange: make the rail depot 'buttons' centered in the window
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 22 Nov 2009 19:31:52 +0000 |
parents | d47724c1c01f |
children | d1eb025f40de |
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 |
d47724c1c01f
(svn r17454) -Codechange: some alignment in Makefile*.in
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
30 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
|
31 |
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
|
32 all: |
9960
87df6d45dfb7
(svn r14115) -Codechange: add make bundle_exe which makes a windows installer and unify the files that go into the bundles (zip/gz/bz2 etc) and installer.
rubidium <rubidium@openttd.org>
parents:
9919
diff
changeset
|
33 $(Q)cp objs/$(TARGET)/Release/$(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
|
34 |
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
|
35 include Makefile.bundle.in |