Makefile.msvc
author rubidium
Fri, 15 Aug 2008 11:58:15 +0000
changeset 9919 5122deb390ae
child 9960 10d375f1cdd7
permissions -rw-r--r--
(svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
9919
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     1
#
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     2
# Makefile for creating bundles of MSVC's binaries in the same way as we make
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     3
# the zip bundles for ALL other OSes.
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     4
#
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     5
# Usage: make -f Makefile.msvc PLATFORM=[Win32|x64] BUNDLE_NAME=openttd-<version>-win[32|64]
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     6
#   or   make -f Makefile.msvc PLATFORM=[Win32|x64] BUNDLE_NAME=OTTD-win[32|64]-nightly-<revision>
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     7
#
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     8
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
     9
# Check if we want to show what we are doing
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    10
ifdef VERBOSE
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    11
	Q =
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    12
else
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    13
	Q = @
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    14
endif
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    15
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    16
AWK = "awk"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    17
ROOT_DIR := $(shell pwd)
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    18
BIN_DIR = "$(ROOT_DIR)/bin"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    19
SRC_DIR = "$(ROOT_DIR)/src"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    20
BUNDLE_DIR = "$(ROOT_DIR)/bundle"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    21
BUNDLES_DIR = "$(ROOT_DIR)/bundles"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    22
TTD = "openttd.exe"
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    23
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    24
all:
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    25
	cp objs/$(PLATFORM)/Release/$(TTD) $(BIN_DIR)/$(TTD)
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    26
5122deb390ae (svn r14074) -Codechange: split the bundle generation out of the main makefile so it can be reused for making bundles from MSVC compiles.
rubidium
parents:
diff changeset
    27
include Makefile.bundle