FS#5881 - Allow separate compilation (objdir != srcdir)
Attached to Project:
OpenTTD
Opened by Dylan Simon (dylex) - Tuesday, 28 January 2014, 02:26 GMT
Opened by Dylan Simon (dylex) - Tuesday, 28 January 2014, 02:26 GMT
|
DetailsThe configure/build system as it stands mostly allows separate compliation, when you run configure from a different directory, but fails in subtle ways. In particular, cpu-type detection and bundling fail. This small patch fixes the various issues. It also removes some related excess quoting that ended up un-quoting paths instead of quoting them (""/path/"").
Obviously it is up to you whether you actually want to support this, but if you don't, it would be nice if it did a check during configure and complained if $PWD != $ROOT_DIR. |
This task depends upon
+ $(Q)cp "$(ROOT_DIR)/bin/baseset/"*.grf "$(BASESET_DIR)/"
+ $(Q)cp "$(ROOT_DIR)/bin/baseset/"*.obg "$(BASESET_DIR)/"
+ $(Q)cp "$(ROOT_DIR)/bin/baseset/"*.obs "$(BASESET_DIR)/"
+ $(Q)cp "$(ROOT_DIR)/bin/baseset/"*.obm "$(BASESET_DIR)/"
Depending on whether GRFcodec is installed or not, they are build from (real) sources or taken as it from the repository.