Mercurial > pub > dyncall > dyncall
comparison buildsys/nmake/prolog.nmake @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children | ed19b429a152 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 #////////////////////////////////////////////////////////////////////////////// | |
2 # | |
3 # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>, | |
4 # Tassilo Philipp <tphilipp@potion-studios.com> | |
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) | |
36 configure: $(TOP)\ConfigVars | |
37 $(TOP)\ConfigVars: | |
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. | |
45 !IF EXISTS($(TOP)\ConfigVars) | |
46 ! INCLUDE $(TOP)\ConfigVars | |
47 !ENDIF | |
48 | |
49 # Include site rules. | |
50 !IF EXISTS($(TOP)\SiteVars) | |
51 ! INCLUDE $(TOP)\SiteVars | |
52 !ENDIF | |
53 | |
54 # set BUILD_* from CONFIG_* variables | |
55 !IF !DEFINED(BUILD_HOST) | |
56 BUILD_HOST = $(CONFIG_HOST) | |
57 !ENDIF | |
58 !IF !DEFINED(BUILD_OS) | |
59 BUILD_OS = $(CONFIG_OS) | |
60 !ENDIF | |
61 !IF !DEFINED(BUILD_ARCH) | |
62 BUILD_ARCH = $(CONFIG_ARCH) | |
63 !ENDIF | |
64 !IF !DEFINED(BUILD_TOOL) | |
65 BUILD_TOOL = $(CONFIG_TOOL) | |
66 !ENDIF | |
67 !IF !DEFINED(BUILD_ASM) | |
68 BUILD_ASM = $(CONFIG_ASM) | |
69 !ENDIF | |
70 !IF !DEFINED(BUILD_CONFIG) | |
71 BUILD_CONFIG = $(CONFIG_CONFIG) | |
72 !ENDIF | |
73 | |
74 !IF "$(BUILD_TOOL)" != "" | |
75 ! INCLUDE tool_$(BUILD_TOOL).nmake | |
76 !ENDIF |