equal
deleted
inserted
replaced
101 # MINGW: build with MingW compiler, link with MingW libraries |
101 # MINGW: build with MingW compiler, link with MingW libraries |
102 # |
102 # |
103 # Experimental (does not work properly): |
103 # Experimental (does not work properly): |
104 # WITH_NETWORK: enable networking |
104 # WITH_NETWORK: enable networking |
105 # WITH_DIRECTMUSIC: enable DirectMusic MIDI support |
105 # WITH_DIRECTMUSIC: enable DirectMusic MIDI support |
|
106 # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers |
106 |
107 |
107 |
108 |
108 ############################################################################## |
109 ############################################################################## |
109 # |
110 # |
110 # Configuration |
111 # Configuration |
111 # |
112 # |
112 |
113 |
113 # Makefile version tag |
114 # Makefile version tag |
114 # it checks if the version tag in makefile.config is the same and force update outdated config files |
115 # it checks if the version tag in makefile.config is the same and force update outdated config files |
115 MAKEFILE_VERSION:=3 |
116 MAKEFILE_VERSION:=4 |
116 |
117 |
117 # CONFIG_WRITER have to be found even for manual configuration |
118 # CONFIG_WRITER have to be found even for manual configuration |
118 CONFIG_WRITER=makefiledir/Makefile.config_writer |
119 CONFIG_WRITER=makefiledir/Makefile.config_writer |
119 |
120 |
120 ifndef MANUAL_CONFIG |
121 ifndef MANUAL_CONFIG |
205 |
206 |
206 |
207 |
207 # Force SDL on UNIX platforms |
208 # Force SDL on UNIX platforms |
208 ifndef WITH_SDL |
209 ifndef WITH_SDL |
209 ifdef UNIX |
210 ifdef UNIX |
210 $(error You need to have SDL installed in order to run OpenTTD on UNIX.) |
211 ifndef DEDICATED |
211 endif |
212 $(error You need to have SDL installed in order to run OpenTTD on UNIX. Use DEDICATED if you want to compile a CLI based server) |
|
213 endif |
|
214 endif |
|
215 endif |
|
216 |
|
217 # For some reason it will not link with libpng if SDL is disabled |
|
218 # this automatically disables libpng if no SDL is found |
|
219 ifndef WITH_SDL |
|
220 WITH_PNG:= |
212 endif |
221 endif |
213 |
222 |
214 |
223 |
215 |
224 |
216 ############################################################################## |
225 ############################################################################## |