1 | # (C) Copyright Jens Maurer 2003. |
---|
2 | # Distributed under the Boost Software License, Version 1.0. |
---|
3 | # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | |
---|
5 | # The following #// line will be used by the regression test table generation |
---|
6 | # program as the column heading for HTML tables. Must not include version number. |
---|
7 | #//<a href="http://www.edg.com/">EDG<br>C++</a> |
---|
8 | |
---|
9 | # variables used to configure eccp-tools.jam |
---|
10 | # |
---|
11 | # ECCP - name of eccp executable |
---|
12 | |
---|
13 | ECCP ?= eccp ; |
---|
14 | |
---|
15 | flags edg C++FLAGS <exception-handling>off : --no_exceptions ; |
---|
16 | flags edg C++FLAGS <exception-handling>on : --exceptions ; |
---|
17 | |
---|
18 | flags edg CFLAGS <inlining>off : --no_inlining ; |
---|
19 | flags edg CFLAGS <inlining>on <inlining>full : --inlining ; |
---|
20 | |
---|
21 | flags edg CFLAGS <optimization>off : -O0 ; |
---|
22 | flags edg CFLAGS <optimization>speed : -O3 ; |
---|
23 | flags edg CFLAGS <optimization>size : -Os ; |
---|
24 | |
---|
25 | flags edg CFLAGS <shared-linkable>true : --pic ; |
---|
26 | flags edg CFLAGS <debug-symbols>on : -g ; |
---|
27 | flags edg LINKFLAGS <debug-symbols>on : -g ; |
---|
28 | flags edg CFLAGS <profiling>on : -pg ; |
---|
29 | flags edg LINKFLAGS <profiling>on : -pg ; |
---|
30 | |
---|
31 | flags edg CFLAGS <cflags> ; |
---|
32 | flags edg C++FLAGS <cxxflags> ; |
---|
33 | flags edg DEFINES <define> ; |
---|
34 | flags edg UNDEFS <undef> ; |
---|
35 | flags edg HDRS <include> ; |
---|
36 | flags edg SYSHDRS <sysinclude> ; |
---|
37 | flags edg LINKFLAGS <linkflags> ; |
---|
38 | flags edg ARFLAGS <arflags> ; |
---|
39 | |
---|
40 | flags edg LIBPATH <library-path> ; |
---|
41 | flags edg NEEDLIBS <library-file> ; |
---|
42 | flags edg FINDLIBS <find-library> ; |
---|
43 | |
---|
44 | #### Link #### |
---|
45 | |
---|
46 | rule Link-action |
---|
47 | { |
---|
48 | edg-Link-action $(<) : $(>) ; |
---|
49 | } |
---|
50 | |
---|
51 | actions edg-Link-action bind NEEDLIBS |
---|
52 | { |
---|
53 | $(ECCP) $(LINKFLAGS) -tused -o "$(<[1])" "$(>)" "$(NEEDLIBS)" "$(FINDLIBS:S=.so)" |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | #### Cc ##### |
---|
58 | |
---|
59 | rule Cc-action |
---|
60 | { |
---|
61 | edg-Cc-action $(<) : $(>) ; |
---|
62 | } |
---|
63 | |
---|
64 | actions edg-Cc-action |
---|
65 | { |
---|
66 | $(ECCP) -c --c99 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)" |
---|
67 | } |
---|
68 | |
---|
69 | #### C++ #### |
---|
70 | rule C++-action |
---|
71 | { |
---|
72 | edg-C++-action $(<) : $(>) ; |
---|
73 | } |
---|
74 | |
---|
75 | actions edg-C++-action |
---|
76 | { |
---|
77 | $(ECCP) -tused -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)" |
---|
78 | } |
---|
79 | |
---|
80 | #### Archive #### |
---|
81 | |
---|
82 | rule Archive-action |
---|
83 | { |
---|
84 | edg-Archive-action $(<) : $(>) ; |
---|
85 | } |
---|
86 | |
---|
87 | actions updated together piecemeal edg-Archive-action |
---|
88 | { |
---|
89 | ar rc $(<) $(>) |
---|
90 | } |
---|
91 | |
---|