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
13 #(module, source, dependencies, cflags, output)
16 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
18 $${gcc} -xc
-MF
$$@
$(4) -M
-MP
-MT
$$@
$$<
22 #(module, source, dependencies, cflags, output)
23 define RBUILD_CXX_DEPENDS
25 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
27 $${gpp} -MF
$$@
$(4) -M
-MP
-MT
$$@
$$<
32 RBUILD_PIPE_CPP
=$${gcc} $(2) -xc
-E
$(1)
33 RBUILD_PIPE_CXX_CPP
=$${gpp} $(2) -E
$(1)
35 #(module, source, dependencies, cflags, output)
38 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
40 ${call RBUILD_PIPE_CPP
,$$<,$(4)} > $$@
44 #(module, source, dependencies, cflags, output)
47 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
49 ${call RBUILD_PIPE_CXX_CPP
,$$<,$(4)} > $$@
53 #(module, source, dependencies, cflags, output)
56 $(2): $${$(1)_precondition
}
58 ifeq ($(ROS_BUILDDEPS
),full
)
60 ${call RBUILD_DEPENDS
,$(1),$(2),,${call RBUILD_cflags
,$(1),$(4)},$(5).d
}
63 $(5): $(2) $(5).d
$(3) |
${call RBUILD_dir
,$(5)}
65 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -c
$$<
69 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
71 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -c
$$<
77 #(module, source, dependencies, cflags, output)
80 $(2): $${$(1)_precondition
}
82 ifeq ($(ROS_BUILDDEPS
),full
)
84 ${call RBUILD_CXX_DEPENDS
,$(1),$(2),,${call RBUILD_cxxflags
,$(1),$(4)},$(5).d
}
87 $(5): $(2) $(5).d
$(3) |
${call RBUILD_dir
,$(5)}
89 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -c
$$<
93 $(5): $(2) $(3) |
${call RBUILD_dir
,$(5)}
95 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -c
$$<
101 #(module, source, dependencies, cflags)
102 RBUILD_CC_RULE
=${call RBUILD_CC
,$(1),$(2),$(3),$(4),${call RBUILD_intermediate_path_unique
,$(1),$(2)}.o
}
103 RBUILD_CXX_RULE
=${call RBUILD_CXX
,$(1),$(2),$(3),$(4),${call RBUILD_intermediate_path_unique
,$(1),$(2)}.o
}
105 #(module, source, dependencies, cflags)
106 define RBUILD_CC_PCH_RULE
108 $(2): $${$(1)_precondition
}
110 ifeq ($$(ROS_BUILDDEPS
),full
)
112 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
: $(2) |
${call RBUILD_intermediate_dir
,$(2)}
114 $${gcc} -MF
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
-M
-MP
-MT
$$@
$$<
116 -include $$(intermediate_dir
)$$(SEP
).gch_
$$(module_name
)$$(SEP
)$(notdir $(2)).gch.d
118 ${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)
120 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
$$<
124 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) $(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
126 $${gcc} -o
$$@
${call RBUILD_cflags
,$(1),$(4)} -x c-header
$$<
132 #(module, source, dependencies, cflags)
133 define RBUILD_CXX_PCH_RULE
135 $(2): $${$(1)_precondition
}
137 ifeq ($$(ROS_BUILDDEPS
),full
)
139 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch.d
: $(2) |
${call RBUILD_intermediate_dir
,$(2)}
141 $${gpp} -MF
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
-M
-MP
-MT
$$@
$$<
143 -include $$(intermediate_dir
)$$(SEP
).gch_
$$(module_name
)$$(SEP
)$(notdir $(2)).gch.d
145 ${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)
147 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
$$<
151 ${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)$$(SEP
)$(notdir $(2)).gch
: $(2) $(3) |
${call RBUILD_intermediate_dir
,$(2)}$$(SEP
).gch_
$(1)
153 $${gpp} -o
$$@
${call RBUILD_cxxflags
,$(1),$(4)} -x c
++-header
$$<