comparison buildsys/nmake/prolog.nmake @ 632:ed19b429a152

- added explicit arm64 target, and clang tool options to Windows' configure.bat - configure.{bat,rc} now writing Makefile.config, for consistency/compatibility (e.g. configure.bat can now be used to set up env flags for a non-nmake toolchain) - simplified/decluttered Windows and Plan9 configure scripts (removal of unused/stale options, ...) - removed stale test/makepkg.sh helper
author Tassilo Philipp
date Sat, 19 Nov 2022 15:45:41 +0100
parents 3e629dc19168
children
comparison
equal deleted inserted replaced
631:e5ad8cf0aa72 632:ed19b429a152
1 #////////////////////////////////////////////////////////////////////////////// 1 #//////////////////////////////////////////////////////////////////////////////
2 # 2 #
3 # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>, 3 # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
4 # Tassilo Philipp <tphilipp@potion-studios.com> 4 # 2007,2009,2022 Tassilo Philipp <tphilipp@potion-studios.com>
5 # 5 #
6 # Permission to use, copy, modify, and distribute this software for any 6 # Permission to use, copy, modify, and distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above 7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies. 8 # copyright notice and this permission notice appear in all copies.
9 # 9 #
31 all: configure build 31 all: configure build
32 32
33 33
34 # Check if library has been 'configured' properly. If not, tell the user and abort. 34 # Check if library has been 'configured' properly. If not, tell the user and abort.
35 !IF !DEFINED(CONFIG_OS) || !DEFINED(CONFIG_ARCH) 35 !IF !DEFINED(CONFIG_OS) || !DEFINED(CONFIG_ARCH)
36 configure: $(TOP)\ConfigVars 36 configure: $(TOP)\Makefile.config
37 $(TOP)\ConfigVars: 37 $(TOP)\Makefile.config:
38 echo "Library not configured properly! Run configure.bat from the library's root directory first!" 38 echo "Library not configured properly! Run configure.bat from the library's root directory first!"
39 !ELSE 39 !ELSE
40 configure: 40 configure:
41 !ENDIF 41 !ENDIF
42 42
43 43
44 # Include config rules. 44 # Include config rules.
45 !IF EXISTS($(TOP)\ConfigVars) 45 !IF EXISTS($(TOP)\Makefile.config)
46 ! INCLUDE $(TOP)\ConfigVars 46 ! INCLUDE $(TOP)\Makefile.config
47 !ENDIF 47 !ENDIF
48 48
49 # Include site rules.
50 !IF EXISTS($(TOP)\SiteVars)
51 ! INCLUDE $(TOP)\SiteVars
52 !ENDIF
53 49
54 # set BUILD_* from CONFIG_* variables 50 # set BUILD_* from CONFIG_* variables
55 !IF !DEFINED(BUILD_HOST) 51 !IF !DEFINED(BUILD_HOST)
56 BUILD_HOST = $(CONFIG_HOST) 52 BUILD_HOST = $(CONFIG_HOST)
57 !ENDIF 53 !ENDIF
65 BUILD_TOOL = $(CONFIG_TOOL) 61 BUILD_TOOL = $(CONFIG_TOOL)
66 !ENDIF 62 !ENDIF
67 !IF !DEFINED(BUILD_ASM) 63 !IF !DEFINED(BUILD_ASM)
68 BUILD_ASM = $(CONFIG_ASM) 64 BUILD_ASM = $(CONFIG_ASM)
69 !ENDIF 65 !ENDIF
70 !IF !DEFINED(BUILD_CONFIG)
71 BUILD_CONFIG = $(CONFIG_CONFIG)
72 !ENDIF
73 66
74 !IF "$(BUILD_TOOL)" != "" 67 !IF "$(BUILD_TOOL)" != ""
75 ! INCLUDE tool_$(BUILD_TOOL).nmake 68 ! INCLUDE tool_$(BUILD_TOOL).nmake
76 !ENDIF 69 !ENDIF