author | matthijs |
Sat, 28 Jan 2006 10:16:15 +0000 | |
changeset 2901 | c9a1a969b017 |
parent 2835 | c7fb346f209c |
child 3042 | 227101cb98ca |
permissions | -rw-r--r-- |
0 | 1 |
# This file generates Makefile.config |
2 |
# Create default config from autodetected values |
|
3 |
# Magic at work, note that you can't use commas in arguments for this |
|
4 |
CONFIG_LINE=@$(SHELL) -c 'echo $(1)' >> $(MAKE_CONFIG) 2> /dev/null |
|
5 |
||
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
6 |
$(MAKE_CONFIG): |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
7 |
|
0 | 8 |
touch $(MAKE_CONFIG) |
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
9 |
|
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
10 |
$(call CONFIG_LINE,\# OpenTTD config file for makefile) |
0 | 11 |
$(call CONFIG_LINE,\# Set your options here - 1 for use and empty for disable) |
12 |
$(call CONFIG_LINE,) |
|
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
13 |
|
0 | 14 |
$(call CONFIG_LINE,\# User setup flags) |
15 |
$(call CONFIG_LINE,\# Translator: adds TODO to any untranslated strings) |
|
16 |
$(call CONFIG_LINE,\# MIDI: sets path to midi player) |
|
17 |
$(call CONFIG_LINE,\# MIDI_ARG: sets an argument which is used when calling the midi player. Default off) |
|
180
47ee14fe2b35
(svn r181) Makefile: enabled ability to supress output of missing strings in lng files
bjarni
parents:
0
diff
changeset
|
18 |
$(call CONFIG_LINE,\# SUPRESS_LANG_ERRORS: supresses output about missing and mismatched strings) |
804
3288a1c6d133
(svn r1274) Makefile: networking is not longer experimental
bjarni
parents:
561
diff
changeset
|
19 |
$(call CONFIG_LINE,\# WITH_NETWORK: makes OpenTTD able to play multiplayer using TCP and UDP) |
3288a1c6d133
(svn r1274) Makefile: networking is not longer experimental
bjarni
parents:
561
diff
changeset
|
20 |
$(call CONFIG_LINE,\# DEDICATED: compiles a dedicated server. This one can only host using a CLI, but do not need SDL) |
2672
35122f8a44ab
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
bjarni
parents:
2197
diff
changeset
|
21 |
$(call CONFIG_LINE,\# MAX_NUM_AUTOSAVES: sets the max number of autosaves the game keeps before overwriting old ones) |
0 | 22 |
$(call CONFIG_LINE,STATIC:=$(STATIC)) |
23 |
$(call CONFIG_LINE,TRANSLATOR:=$(TRANSLATOR)) |
|
24 |
$(call CONFIG_LINE,DEBUG:=$(DEBUG)) |
|
25 |
$(call CONFIG_LINE,PROFILE:=$(PROFILE)) |
|
26 |
$(call CONFIG_LINE,MIDI:=$(MIDI)) |
|
27 |
$(call CONFIG_LINE,MIDI_ARG:=$(MIDI_ARG)) |
|
180
47ee14fe2b35
(svn r181) Makefile: enabled ability to supress output of missing strings in lng files
bjarni
parents:
0
diff
changeset
|
28 |
$(call CONFIG_LINE,SUPRESS_LANG_ERRORS:=$(SUPRESS_LANG_ERRORS)) |
2197 | 29 |
$(call CONFIG_LINE,WITH_DIRECTMUSIC:=$(WITH_DIRECTMUSIC)) |
804
3288a1c6d133
(svn r1274) Makefile: networking is not longer experimental
bjarni
parents:
561
diff
changeset
|
30 |
$(call CONFIG_LINE,WITH_NETWORK:=$(WITH_NETWORK)) |
3288a1c6d133
(svn r1274) Makefile: networking is not longer experimental
bjarni
parents:
561
diff
changeset
|
31 |
$(call CONFIG_LINE,DEDICATED:=$(DEDICATED)) |
2672
35122f8a44ab
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
bjarni
parents:
2197
diff
changeset
|
32 |
$(call CONFIG_LINE,MAX_NUM_AUTOSAVES:=$(MAX_NUM_AUTOSAVES)) |
0 | 33 |
$(call CONFIG_LINE,) |
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
34 |
|
348
3345a78d37e4
(svn r531) Makefile: made asserts enabled by default
bjarni
parents:
347
diff
changeset
|
35 |
$(call CONFIG_LINE,\# Disable asserts. Leave them on for easier bug finding) |
3345a78d37e4
(svn r531) Makefile: made asserts enabled by default
bjarni
parents:
347
diff
changeset
|
36 |
$(call CONFIG_LINE,DISABLE_ASSERTS:=$(DISABLE_ASSERTS)) |
347
8b6874b7ed27
(svn r530) Makefile: added ability to switch asserts on and off
bjarni
parents:
285
diff
changeset
|
37 |
$(call CONFIG_LINE,) |
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
38 |
|
285 | 39 |
$(call CONFIG_LINE,\# See Makefile for details on these paths) |
40 |
$(call CONFIG_LINE,\# Folders should not end with /) |
|
41 |
$(call CONFIG_LINE,INSTALL:=$(INSTALL)) |
|
42 |
$(call CONFIG_LINE,PREFIX:=$(PREFIX)) |
|
0 | 43 |
$(call CONFIG_LINE,BINARY_DIR:=$(BINARY_DIR)) |
285 | 44 |
$(call CONFIG_LINE,DATA_DIR:=$(DATA_DIR)) |
2901
c9a1a969b017
(svn r3456) - Feature: [Makefile] Icons can now be installed in a seperate directory.
matthijs
parents:
2835
diff
changeset
|
45 |
$(call CONFIG_LINE,ICON_DIR:=$(ICON_DIR)) |
0 | 46 |
$(call CONFIG_LINE,USE_HOMEDIR:=$(USE_HOMEDIR)) |
47 |
$(call CONFIG_LINE,PERSONAL_DIR:=$(PERSONAL_DIR)) |
|
561
9a0c469a251c
(svn r970) Added 2nd data path for all non-windows OSes
bjarni
parents:
549
diff
changeset
|
48 |
$(call CONFIG_LINE,SECOND_DATA_PATH:=$(SECOND_DATA_PATH)) |
9a0c469a251c
(svn r970) Added 2nd data path for all non-windows OSes
bjarni
parents:
549
diff
changeset
|
49 |
$(call CONFIG_LINE,CUSTOM_LANG_PATH:=$(CUSTOM_LANG_PATH)) |
0 | 50 |
$(call CONFIG_LINE,) |
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
51 |
|
0 | 52 |
$(call CONFIG_LINE,\# Flag to skip test for OS when building static) |
53 |
$(call CONFIG_LINE,\# OpenTTD have only been succesfully tested with static builds on MorphOS and MacOSX) |
|
54 |
$(call CONFIG_LINE,\# If you want to try anyway on other OSes, set this flag) |
|
55 |
$(call CONFIG_LINE,\# Inform us if you have success) |
|
56 |
$(call CONFIG_LINE,SKIP_STATIC_CHECK:=$(SKIP_STATIC_CHECK)) |
|
57 |
$(call CONFIG_LINE,) |
|
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
58 |
$(call CONFIG_LINE,) |
0 | 59 |
|
60 |
$(call CONFIG_LINE,\# Everything below this line is autogenerated) |
|
61 |
$(call CONFIG_LINE,\#) |
|
62 |
$(call CONFIG_LINE,\# If you need to change anything below, you should run "make upgradeconf") |
|
63 |
$(call CONFIG_LINE,\# If that does not fix the problem, you should make a bug report.) |
|
64 |
$(call CONFIG_LINE,\# It would really help if you could tell how to autodetect the missing setting) |
|
65 |
$(call CONFIG_LINE,\# That info could be where the missing lib is placed) |
|
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
66 |
$(call CONFIG_LINE,) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
67 |
|
0 | 68 |
$(call CONFIG_LINE,\# Libs) |
69 |
$(call CONFIG_LINE,WITH_ZLIB:=$(WITH_ZLIB)) |
|
70 |
$(call CONFIG_LINE,WITH_SDL:=$(WITH_SDL)) |
|
71 |
$(call CONFIG_LINE,WITH_PNG:=$(WITH_PNG)) |
|
72 |
$(call CONFIG_LINE,STATIC_ZLIB_PATH:=$(STATIC_ZLIB_PATH)) |
|
2736
3d6487cbbb69
(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)
bjarni
parents:
2731
diff
changeset
|
73 |
$(call CONFIG_LINE,WITH_COCOA:=$(WITH_COCOA)) |
0 | 74 |
$(call CONFIG_LINE,) |
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
75 |
|
0 | 76 |
$(call CONFIG_LINE,\# OS flags) |
77 |
$(call CONFIG_LINE,WIN32:=$(WIN32)) |
|
78 |
$(call CONFIG_LINE,UNIX:=$(UNIX)) |
|
79 |
$(call CONFIG_LINE,OSX:=$(OSX)) |
|
80 |
$(call CONFIG_LINE,FREEBSD:=$(FREEBSD)) |
|
81 |
$(call CONFIG_LINE,MORPHOS:=$(MORPHOS)) |
|
421
3dd9b5a439af
(svn r619) Add the necessary bits to make building under BeOS using GNU Make work
tron
parents:
348
diff
changeset
|
82 |
$(call CONFIG_LINE,BEOS:=$(BEOS)) |
446
7a92ca9738e2
(svn r655) Add the necessary bits to make building on SunOS/Solaris work
tron
parents:
421
diff
changeset
|
83 |
$(call CONFIG_LINE,SUNOS:=$(SUNOS)) |
0 | 84 |
$(call CONFIG_LINE,CYGWIN:=$(CYGWIN)) |
85 |
$(call CONFIG_LINE,MINGW:=$(MINGW)) |
|
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
86 |
$(call CONFIG_LINE,) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
87 |
|
2713
9c42385e4f41
(svn r3258) -Feature: [OSX] added support for universal binaries
bjarni
parents:
2688
diff
changeset
|
88 |
$(call CONFIG_LINE,\# Universal binary setup) |
2728
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
89 |
$(call CONFIG_LINE,\# use these settings for building universal binaries. Most systems should work with the default settings) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
90 |
$(call CONFIG_LINE,SDL_PPC_CONFIG:=$(SDL_PPC_CONFIG)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
91 |
$(call CONFIG_LINE,SDL_x86_CONFIG:=$(SDL_x86_CONFIG)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
92 |
|
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
93 |
$(call CONFIG_LINE,\# if you got a fat libpng you should not need to change this. It is recommended to get a fat libpng lib) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
94 |
$(call CONFIG_LINE,LIBPNG_PPC_CONFIG:=$(LIBPNG_PPC_CONFIG)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
95 |
$(call CONFIG_LINE,LIBPNG_x86_CONFIG:=$(LIBPNG_x86_CONFIG)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
96 |
|
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
97 |
$(call CONFIG_LINE,\# autodetected SDL lib path, but it is not detected in a reliable way, so verify it. It needs to be the x86 lib) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
98 |
$(call CONFIG_LINE,x86_SDL_LIB:=$(x86_SDL_LIB)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
99 |
|
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
100 |
$(call CONFIG_LINE,\# default values should be good enough for the rest of the universal binary flags, but check them anyway) |
2722
d2ab10ffc5e7
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
bjarni
parents:
2717
diff
changeset
|
101 |
$(call CONFIG_LINE,SKIP_LIB_TEST:=$(SKIP_LIB_TEST)) |
d2ab10ffc5e7
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
bjarni
parents:
2717
diff
changeset
|
102 |
$(call CONFIG_LINE,PPC_CC:=$(PPC_CC)) |
2728
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
103 |
$(call CONFIG_LINE,CFLAGS_PPC:=$(CFLAGS_PPC)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
104 |
$(call CONFIG_LINE,LDFLAGS_PPC:=$(LDFLAGS_PPC)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
105 |
|
2722
d2ab10ffc5e7
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
bjarni
parents:
2717
diff
changeset
|
106 |
$(call CONFIG_LINE,x86_CC:=$(x86_CC)) |
2728
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
107 |
$(call CONFIG_LINE,CFLAGS_x86:=$(CFLAGS_x86)) |
8f50c839cd17
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni
parents:
2722
diff
changeset
|
108 |
$(call CONFIG_LINE,LDFLAGS_x86:=$(LDFLAGS_x86)) |
2722
d2ab10ffc5e7
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
bjarni
parents:
2717
diff
changeset
|
109 |
$(call CONFIG_LINE,) |
2713
9c42385e4f41
(svn r3258) -Feature: [OSX] added support for universal binaries
bjarni
parents:
2688
diff
changeset
|
110 |
|
1692
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
111 |
$(call CONFIG_LINE,\# For cross-compiling) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
112 |
$(call CONFIG_LINE,CC_TARGET:=$(CC_TARGET)) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
113 |
$(call CONFIG_LINE,CC_HOST:=$(CC_HOST)) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
114 |
$(call CONFIG_LINE,CFLAGS_HOST:=$(CFLAGS_HOST)) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
115 |
$(call CONFIG_LINE,WINDRES:=$(WINDRES)) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
116 |
$(call CONFIG_LINE,ENDIAN_FORCE:=$(ENDIAN_FORCE)) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
117 |
$(call CONFIG_LINE,) |
0b52df38cabc
(svn r2196) -Change: updated the Makefile, now it works for crossplatform compiling
TrueLight
parents:
804
diff
changeset
|
118 |
|
0 | 119 |
$(call CONFIG_LINE,\# misc) |
120 |
$(call CONFIG_LINE,SDL-CONFIG:=$(SDL-CONFIG)) |
|
1955
793bb2e9f1d3
(svn r2461) -Feature [Makefile] libpng-config can now be called something else in Makefile.config
bjarni
parents:
1692
diff
changeset
|
121 |
$(call CONFIG_LINE,LIBPNG-CONFIG:=$(LIBPNG-CONFIG)) |
421
3dd9b5a439af
(svn r619) Add the necessary bits to make building under BeOS using GNU Make work
tron
parents:
348
diff
changeset
|
122 |
$(call CONFIG_LINE,BEOS_NET_SERVER:=$(BEOS_NET_SERVER)) |
0 | 123 |
$(call CONFIG_LINE,CONFIG_INCLUDED:=yes) |
124 |
$(call CONFIG_LINE,PATH_SET:=$(PATH_SET)) |
|
180
47ee14fe2b35
(svn r181) Makefile: enabled ability to supress output of missing strings in lng files
bjarni
parents:
0
diff
changeset
|
125 |
$(call CONFIG_LINE,CONFIG_VERSION:=$(MAKEFILE_VERSION)) |