1 | # $Id: Makefile,v 1.3 2002-06-19 02:29:51 bird Exp $
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Main testsuite make script.
|
---|
5 | #
|
---|
6 | # (The testsuite is driven by make script since they are the best
|
---|
7 | # job control tool we have available.)
|
---|
8 | #
|
---|
9 |
|
---|
10 | #
|
---|
11 | # Short howto:
|
---|
12 | # ------------
|
---|
13 | #
|
---|
14 | # - The scripts implements the 'testcase' rule.
|
---|
15 | # - TARGET_MODE = TESTCASE
|
---|
16 | # - Include $(PATH_MAKE)\testsuite.tools.mk.
|
---|
17 | # - Any stuff generated on the fly should be put in PATH_TARGET and
|
---|
18 | # removed by the clean rule. (Also remove *.log!)
|
---|
19 | # - Try to make one .mak file per program.
|
---|
20 | # - Any program binaries should be put in testsuite/bin, if legally possible,
|
---|
21 | # in the testsuite-bin branch. (This branching to save bandwidth and time.)
|
---|
22 | # - If the tool isn't checked in, you *must* test for presense and warn about
|
---|
23 | # that. Should *not* fail in such situation.
|
---|
24 | # - Output should whenever possibly be generated on the fly in for doing
|
---|
25 | # compares. Ie. Use inline files in the makescript.
|
---|
26 | # - Currently you need to have the Odin release to be tested installed and
|
---|
27 | # in the PATH. (This will be changed!)
|
---|
28 | #
|
---|
29 |
|
---|
30 | # Include the setup.mak
|
---|
31 | PATH_ROOT = ..
|
---|
32 | !include $(PATH_ROOT)\$(BUILD_SETUP_MAK)
|
---|
33 |
|
---|
34 | # Target Config
|
---|
35 | TARGET_MODE = EMPTY
|
---|
36 |
|
---|
37 | # Odin install script / TODO
|
---|
38 | #PREMAKEFILES = odin32inst.mak
|
---|
39 |
|
---|
40 | # Subdirs to process.
|
---|
41 | SUBDIRS = \
|
---|
42 | cui \
|
---|
43 |
|
---|
44 | # Include the process rulez.
|
---|
45 | !include $(MAKE_INCLUDE_PROCESS)
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # This rule checksout the binaries which is residing in the
|
---|
50 | # testsuite-bin branch
|
---|
51 | #
|
---|
52 | checkout-bin:
|
---|
53 | !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"
|
---|
54 | cvs update -r testsuite-bin -d bin
|
---|
55 | !else
|
---|
56 | ! ifndef BUILD_VERBOSE
|
---|
57 | @ \
|
---|
58 | ! endif
|
---|
59 | $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@
|
---|
60 | !endif
|
---|
61 |
|
---|