Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/src/test/Makefile
Parent Directory
|
Revision Log
Revision 1786 -
(show annotations)
(download)
Sat Aug 15 13:27:18 2015 UTC (9 years, 7 months ago) by amb
File size: 1826 byte(s)
Sat Aug 15 13:27:18 2015 UTC (9 years, 7 months ago) by amb
File size: 1826 byte(s)
Compile the executables all in one go rather than running make for each one.
1 | # Test cases Makefile |
2 | # |
3 | # Part of the Routino routing software. |
4 | # |
5 | # This file Copyright 2011-2015 Andrew M. Bishop |
6 | # |
7 | # This program is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU Affero General Public License as published by |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. |
11 | # |
12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU Affero General Public License for more details. |
16 | # |
17 | # You should have received a copy of the GNU Affero General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | # |
20 | |
21 | # All configuration is in the top-level Makefile.conf |
22 | |
23 | include ../../Makefile.conf |
24 | |
25 | # executables |
26 | |
27 | ROUTINO_EXE=planetsplitter$(.EXE) planetsplitter-slim$(.EXE) \ |
28 | router$(.EXE) router-slim$(.EXE) \ |
29 | router+lib$(.EXE) router+lib-slim$(.EXE) \ |
30 | filedumper$(.EXE) filedumper-slim$(.EXE) |
31 | |
32 | EXE=is-fast-math$(.EXE) |
33 | |
34 | # Compilation targets |
35 | |
36 | O=$(notdir $(wildcard *.osm)) |
37 | S=$(foreach f,$(O),$(addsuffix .sh,$(basename $f))) |
38 | |
39 | ######## |
40 | |
41 | all : |
42 | |
43 | ######## |
44 | |
45 | test : test-exe $(EXE) |
46 | @./run-tests.sh $(S) |
47 | |
48 | ######## |
49 | |
50 | test-exe : |
51 | cd .. && $(MAKE) $(ROUTINO_EXE) |
52 | |
53 | is-fast-math$(.EXE) : is-fast-math.o |
54 | $(LD) $< -o $@ $(LDFLAGS) |
55 | |
56 | is-fast-math.o : is-fast-math.c |
57 | $(CC) -c $(CFLAGS) $< -o $@ |
58 | |
59 | ######## |
60 | |
61 | install: |
62 | |
63 | ######## |
64 | |
65 | clean: |
66 | rm -rf fat |
67 | rm -rf slim |
68 | rm -rf fat+lib |
69 | rm -rf slim+lib |
70 | rm -rf fat-pruned |
71 | rm -rf slim-pruned |
72 | rm -f *.log |
73 | rm -f *~ |
74 | rm -f *.o |
75 | rm -f $(EXE) |
76 | rm -f core |
77 | rm -f *.gcda *.gcno *.gcov gmon.out |
78 | |
79 | ######## |
80 | |
81 | distclean: clean |
82 | |
83 | ######## |
84 | |
85 | .PHONY:: all test install clean distclean |
86 | |
87 | .PHONY:: test-exe |