* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / tools.mak
1 TOOLS_BASE = tools
2 TOOLS_BASE_ = $(TOOLS_BASE)$(SEP)
3 TOOLS_INT = $(INTERMEDIATE_)$(TOOLS_BASE)
4 TOOLS_INT_ = $(TOOLS_INT)$(SEP)
5 TOOLS_OUT = $(OUTPUT_)$(TOOLS_BASE)
6 TOOLS_OUT_ = $(TOOLS_OUT)$(SEP)
7
8 TOOLS_CFLAGS = -Wall -Wpointer-arith -Wno-strict-aliasing -D__REACTOS__ $(HOST_CFLAGS)
9 TOOLS_CPPFLAGS = -Wall -Wpointer-arith -D__REACTOS__ $(HOST_CPPFLAGS)
10 TOOLS_LFLAGS = $(HOST_LFLAGS)
11
12 $(TOOLS_INT): | $(INTERMEDIATE)
13 $(ECHO_MKDIR)
14 ${mkdir} $@
15
16 ifneq ($(INTERMEDIATE),$(OUTPUT))
17 $(TOOLS_OUT): | $(OUTPUT)
18 $(ECHO_MKDIR)
19 ${mkdir} $@
20 endif
21
22 XML_SSPRINTF_SOURCES = $(addprefix $(TOOLS_BASE_), \
23 ssprintf.cpp \
24 xml.cpp \
25 )
26
27 XML_SSPRINTF_HEADERS = $(addprefix $(TOOLS_BASE_), \
28 ssprintf.h \
29 xml.h \
30 )
31
32 XML_SSPRINTF_OBJECTS = \
33 $(addprefix $(INTERMEDIATE_), $(XML_SSPRINTF_SOURCES:.cpp=.o))
34
35 $(TOOLS_INT_)ssprintf.o: $(TOOLS_BASE_)ssprintf.cpp $(XML_SSPRINTF_HEADERS) | $(TOOLS_INT)
36 $(ECHO_HOSTCC)
37 ${host_gpp} $(TOOLS_CPPFLAGS) -c $< -o $@
38
39 $(TOOLS_INT_)xml.o: $(TOOLS_BASE_)xml.cpp $(XML_SSPRINTF_HEADERS) | $(TOOLS_INT)
40 $(ECHO_HOSTCC)
41 ${host_gpp} $(TOOLS_CPPFLAGS) -c $< -o $@
42
43 include tools/bin2c.mak
44 include tools/buildno/buildno.mak
45 include tools/gendib/gendib.mak
46 include tools/log2lines/log2lines.mak
47 include tools/pipetools/pipetools.mak
48 ifeq ($(ARCH),powerpc)
49 include tools/ofw_interface/ofw_interface.mak
50 endif
51 include tools/pefixup.mak
52 include tools/rsym/raddr2line.mak
53 include tools/rbuild/rbuild.mak
54 include tools/rsym/rsym.mak