Mercurial > pub > dyncall > dyncall
annotate buildsys/nmake/prolog.nmake @ 663:127b569978cc default tip
- another tweak handling clang trying to be too smart (see last commit)
author | Tassilo Philipp |
---|---|
date | Sun, 24 Mar 2024 13:52:44 +0100 |
parents | ed19b429a152 |
children |
rev | line source |
---|---|
0 | 1 #////////////////////////////////////////////////////////////////////////////// |
2 # | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
3 # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>, |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
4 # 2007,2009,2022 Tassilo Philipp <tphilipp@potion-studios.com> |
0 | 5 # |
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 | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 #////////////////////////////////////////////////////////////////////////////// | |
19 | |
20 #/////////////////////////////////////////////////// | |
21 # | |
22 # nmake rules | |
23 # prolog.nmake | |
24 # | |
25 #/////////////////////////////////////////////////// | |
26 | |
27 | |
28 .SILENT: | |
29 | |
30 # Default "build all" target. | |
31 all: configure build | |
32 | |
33 | |
34 # Check if library has been 'configured' properly. If not, tell the user and abort. | |
35 !IF !DEFINED(CONFIG_OS) || !DEFINED(CONFIG_ARCH) | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
36 configure: $(TOP)\Makefile.config |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
37 $(TOP)\Makefile.config: |
0 | 38 echo "Library not configured properly! Run configure.bat from the library's root directory first!" |
39 !ELSE | |
40 configure: | |
41 !ENDIF | |
42 | |
43 | |
44 # Include config rules. | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
45 !IF EXISTS($(TOP)\Makefile.config) |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
46 ! INCLUDE $(TOP)\Makefile.config |
0 | 47 !ENDIF |
48 | |
49 | |
50 # set BUILD_* from CONFIG_* variables | |
51 !IF !DEFINED(BUILD_HOST) | |
52 BUILD_HOST = $(CONFIG_HOST) | |
53 !ENDIF | |
54 !IF !DEFINED(BUILD_OS) | |
55 BUILD_OS = $(CONFIG_OS) | |
56 !ENDIF | |
57 !IF !DEFINED(BUILD_ARCH) | |
58 BUILD_ARCH = $(CONFIG_ARCH) | |
59 !ENDIF | |
60 !IF !DEFINED(BUILD_TOOL) | |
61 BUILD_TOOL = $(CONFIG_TOOL) | |
62 !ENDIF | |
63 !IF !DEFINED(BUILD_ASM) | |
64 BUILD_ASM = $(CONFIG_ASM) | |
65 !ENDIF | |
66 | |
67 !IF "$(BUILD_TOOL)" != "" | |
68 ! INCLUDE tool_$(BUILD_TOOL).nmake | |
69 !ENDIF |