2 CFLAG_CRTDLL
:=-D_DLL
-D__USE_CRTIMP
4 CXXFLAG_WERROR
:=-Werror
5 CXXFLAG_CRTDLL
:=-D_DLL
-D__USE_CRTIMP
7 CPPFLAG_WERROR
:=-Werror
8 CPPFLAG_UNICODE
:=-DUNICODE
-D_UNICODE
10 # FIXME: disabled until RosBE stops sucking
11 # BUILTIN_CPPFLAGS+= -nostdinc
12 BUILTIN_CFLAGS
+= -fno-optimize-sibling-calls
13 BUILTIN_CXXFLAGS
+= -fno-optimize-sibling-calls
15 #(module, source, dependencies, cflags, output)
18 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
20 $${gcc} -xc
-MF
$$@
$(4) -M
-MP
-MT
$$@
$$<
24 #(module, source, dependencies, cflags, output)
25 define RBUILD_CXX_DEPENDS
27 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
29 $${gpp} -MF
$$@
$(4) -M
-MP
-MT
$$@
$$<
34 RBUILD_PIPE_CPP
=$${gcc} $(2) -xc
-E
$(1)
35 RBUILD_PIPE_CXX_CPP
=$${gpp} $(2) -E
$(1)
37 #(module, source, dependencies, cflags, output)
40 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
42 ${call RBUILD_PIPE_CPP
,$$<,$(4)} > $$@
46 #(module, source, dependencies, cflags, output)
49 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
51 ${call RBUILD_PIPE_CXX_CPP
,$$<,$(4)} > $$@
55 #(module, source, dependencies, cflags, output)
58 $(2): $${$(1)_precondition
}
60 ifeq ($(ROS_BUILDDEPS
),full
)
62 ${call RBUILD_DEPENDS
,$(1),$(2),,${call RBUILD_cflags
,$(1),$(4)},$(5).d
}
65 $(5): $(2) $(5).d
$(3) |
${call RBUILD_dir
,$(5)}
67 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -c
$$<
71 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
73 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -c
$$<
79 #(module, source, dependencies, cflags, output)
82 $(2): $${$(1)_precondition
}
84 ifeq ($(ROS_BUILDDEPS
),full
)
86 ${call RBUILD_CXX_DEPENDS
,$(1),$(2),,${call RBUILD_cxxflags
,$(1),$(4)},$(5).d
}
89 $(5): $(2) $(5).d
$(3) |
${call RBUILD_dir
,$(5)}
91 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -c
$$<
95 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
97 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -c
$$<
103 #(module, source, dependencies, cflags)
104 RBUILD_CC_RULE
=${call RBUILD_CC
,$(1),$(2),$(3),$(4),${call RBUILD_intermediate_path_unique
,$(1),$(2)}.o
}
105 RBUILD_CXX_RULE
=${call RBUILD_CXX
,$(1),$(2),$(3),$(4),${call RBUILD_intermediate_path_unique
,$(1),$(2)}.o
}
107 #(module, source, dependencies, cflags)
108 define RBUILD_CC_PCH_RULE
110 $(2): $${$(1)_precondition
}
112 ifeq ($$(ROS_BUILDDEPS
),full
)
114 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
: $(2) |
${call RBUILD_intermediate_dir
,$(2)}
116 $${gcc} -MF
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
-M
-MP
-MT
$$@
$$<
118 -include $$(intermediate_dir
)$$(SEP
).gch_
$$(module_name
)$$(SEP
)$(notdir $(2)).gch.d
120 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
$(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
122 $${gcc} -MF
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
-M
-MP
-MT
$$@
$$<
126 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) $(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
128 $${gcc} -MF
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
-M
-MP
-MT
$$@
$$<
134 #(module, source, dependencies, cflags)
135 define RBUILD_CXX_PCH_RULE
137 $(2): $${$(1)_precondition
}
139 ifeq ($$(ROS_BUILDDEPS
),full
)
141 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
: $(2) |
${call RBUILD_intermediate_dir
,$(2)}
143 $${gpp} -MF
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
-M
-MP
-MT
$$@
$$<
145 -include $$(intermediate_dir
)$$(SEP
).gch_
$$(module_name
)$$(SEP
)$(notdir $(2)).gch.d
147 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
$(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
149 $${gpp} -MF
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
-M
-MP
-MT
$$@
$$<
153 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) $(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
155 $${gpp} -MF
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
-M
-MP
-MT
$$@
$$<