author | darkvater |
Thu, 23 Dec 2004 11:31:06 +0000 | |
changeset 776 | 5b14f0b1e6d3 |
parent 561 | 9a0c469a251c |
child 804 | 3288a1c6d133 |
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 |
||
6 |
$(MAKE_CONFIG): |
|
7 |
||
8 |
touch $(MAKE_CONFIG) |
|
9 |
||
10 |
$(call CONFIG_LINE,\# OpenTTD config file for makefile) |
|
11 |
$(call CONFIG_LINE,\# Set your options here - 1 for use and empty for disable) |
|
12 |
$(call CONFIG_LINE,) |
|
13 |
||
14 |
$(call CONFIG_LINE,\# User setup flags) |
|
15 |
$(call CONFIG_LINE,\# Translator: adds TODO to any untranslated strings) |
|
16 |
$(call CONFIG_LINE,\# Display_Warnings: when off it hides some warnings while compiling) |
|
17 |
$(call CONFIG_LINE,\# MIDI: sets path to midi player) |
|
18 |
$(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
|
19 |
$(call CONFIG_LINE,\# SUPRESS_LANG_ERRORS: supresses output about missing and mismatched strings) |
0 | 20 |
$(call CONFIG_LINE,STATIC:=$(STATIC)) |
21 |
$(call CONFIG_LINE,TRANSLATOR:=$(TRANSLATOR)) |
|
22 |
$(call CONFIG_LINE,DISPLAY_WARNINGS:=$(DISPLAY_WARNINGS)) |
|
23 |
$(call CONFIG_LINE,DEBUG:=$(DEBUG)) |
|
24 |
$(call CONFIG_LINE,PROFILE:=$(PROFILE)) |
|
25 |
$(call CONFIG_LINE,MIDI:=$(MIDI)) |
|
26 |
$(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
|
27 |
$(call CONFIG_LINE,SUPRESS_LANG_ERRORS:=$(SUPRESS_LANG_ERRORS)) |
0 | 28 |
$(call CONFIG_LINE,) |
29 |
||
348
3345a78d37e4
(svn r531) Makefile: made asserts enabled by default
bjarni
parents:
347
diff
changeset
|
30 |
$(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
|
31 |
$(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
|
32 |
$(call CONFIG_LINE,) |
8b6874b7ed27
(svn r530) Makefile: added ability to switch asserts on and off
bjarni
parents:
285
diff
changeset
|
33 |
|
285 | 34 |
$(call CONFIG_LINE,\# See Makefile for details on these paths) |
35 |
$(call CONFIG_LINE,\# Folders should not end with /) |
|
36 |
$(call CONFIG_LINE,INSTALL:=$(INSTALL)) |
|
37 |
$(call CONFIG_LINE,PREFIX:=$(PREFIX)) |
|
0 | 38 |
$(call CONFIG_LINE,BINARY_DIR:=$(BINARY_DIR)) |
285 | 39 |
$(call CONFIG_LINE,DATA_DIR:=$(DATA_DIR)) |
0 | 40 |
$(call CONFIG_LINE,USE_HOMEDIR:=$(USE_HOMEDIR)) |
41 |
$(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
|
42 |
$(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
|
43 |
$(call CONFIG_LINE,CUSTOM_LANG_PATH:=$(CUSTOM_LANG_PATH)) |
0 | 44 |
$(call CONFIG_LINE,) |
45 |
||
46 |
$(call CONFIG_LINE,\# Experimental) |
|
47 |
$(call CONFIG_LINE,WITH_NETWORK:=$(WITH_NETWORK)) |
|
48 |
$(call CONFIG_LINE,WITH_DIRECTMUSIC:=$(WITH_DIRECTMUSIC)) |
|
549
e48b65755929
(svn r949) Makefile: added DEDICATED flag to allow complilation of dedicated servers without linking to SDL. Request by Jezral
bjarni
parents:
446
diff
changeset
|
49 |
$(call CONFIG_LINE,DEDICATED:=$(DEDICATED)) |
0 | 50 |
$(call CONFIG_LINE,) |
51 |
$(call CONFIG_LINE,) |
|
52 |
||
53 |
$(call CONFIG_LINE,\# Flag to skip test for OS when building static) |
|
54 |
$(call CONFIG_LINE,\# OpenTTD have only been succesfully tested with static builds on MorphOS and MacOSX) |
|
55 |
$(call CONFIG_LINE,\# If you want to try anyway on other OSes, set this flag) |
|
56 |
$(call CONFIG_LINE,\# Inform us if you have success) |
|
57 |
$(call CONFIG_LINE,SKIP_STATIC_CHECK:=$(SKIP_STATIC_CHECK)) |
|
58 |
$(call CONFIG_LINE,) |
|
59 |
$(call CONFIG_LINE,) |
|
60 |
||
61 |
$(call CONFIG_LINE,\# Everything below this line is autogenerated) |
|
62 |
$(call CONFIG_LINE,\#) |
|
63 |
$(call CONFIG_LINE,\# If you need to change anything below, you should run "make upgradeconf") |
|
64 |
$(call CONFIG_LINE,\# If that does not fix the problem, you should make a bug report.) |
|
65 |
$(call CONFIG_LINE,\# It would really help if you could tell how to autodetect the missing setting) |
|
66 |
$(call CONFIG_LINE,\# That info could be where the missing lib is placed) |
|
67 |
$(call CONFIG_LINE,) |
|
68 |
||
69 |
$(call CONFIG_LINE,\# Libs) |
|
70 |
$(call CONFIG_LINE,WITH_ZLIB:=$(WITH_ZLIB)) |
|
71 |
$(call CONFIG_LINE,WITH_SDL:=$(WITH_SDL)) |
|
72 |
$(call CONFIG_LINE,WITH_PNG:=$(WITH_PNG)) |
|
73 |
$(call CONFIG_LINE,STATIC_ZLIB_PATH:=$(STATIC_ZLIB_PATH)) |
|
74 |
$(call CONFIG_LINE,) |
|
75 |
||
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)) |
|
86 |
$(call CONFIG_LINE,) |
|
87 |
||
88 |
$(call CONFIG_LINE,\# misc) |
|
89 |
$(call CONFIG_LINE,SDL-CONFIG:=$(SDL-CONFIG)) |
|
421
3dd9b5a439af
(svn r619) Add the necessary bits to make building under BeOS using GNU Make work
tron
parents:
348
diff
changeset
|
90 |
$(call CONFIG_LINE,BEOS_NET_SERVER:=$(BEOS_NET_SERVER)) |
0 | 91 |
$(call CONFIG_LINE,CONFIG_INCLUDED:=yes) |
92 |
$(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
|
93 |
$(call CONFIG_LINE,CONFIG_VERSION:=$(MAKEFILE_VERSION)) |