* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / log2lines / log2lines.mak
1 RSYM_BASE = $(TOOLS_BASE)$(SEP)rsym
2 RSYM_BASE_ = $(RSYM_BASE)$(SEP)
3 LOG2LINES_BASE = $(TOOLS_BASE_)log2lines
4 LOG2LINES_BASE_ = $(LOG2LINES_BASE)$(SEP)
5
6 LOG2LINES_INT = $(INTERMEDIATE_)$(LOG2LINES_BASE)
7 LOG2LINES_INT_ = $(LOG2LINES_INT)$(SEP)
8 LOG2LINES_OUT = $(OUTPUT_)$(LOG2LINES_BASE)
9 LOG2LINES_OUT_ = $(LOG2LINES_OUT)$(SEP)
10
11 $(LOG2LINES_INT): | $(TOOLS_INT)
12 $(ECHO_MKDIR)
13 ${mkdir} $@
14
15 ifneq ($(INTERMEDIATE),$(OUTPUT))
16 $(LOG2LINES_OUT): | $(TOOLS_OUT)
17 $(ECHO_MKDIR)
18 ${mkdir} $@
19 endif
20
21 LOG2LINES_TARGET = \
22 $(LOG2LINES_OUT_)log2lines$(EXEPOSTFIX)
23
24 LOG2LINES_SOURCES = \
25 $(LOG2LINES_BASE_)list.c \
26 $(LOG2LINES_BASE_)util.c \
27 $(LOG2LINES_BASE_)options.c \
28 $(LOG2LINES_BASE_)help.c \
29 $(LOG2LINES_BASE_)cache.c \
30 $(LOG2LINES_BASE_)image.c \
31 $(LOG2LINES_BASE_)stat.c \
32 $(LOG2LINES_BASE_)revision.c \
33 $(LOG2LINES_BASE_)cmd.c \
34 $(LOG2LINES_BASE_)match.c \
35 $(LOG2LINES_BASE_)log2lines.c \
36 $(RSYM_BASE_)rsym_common.c
37
38 LOG2LINES_OBJECTS = \
39 $(addprefix $(INTERMEDIATE_), $(LOG2LINES_SOURCES:.c=.o))
40
41 LOG2LINES_HOST_CFLAGS = $(TOOLS_CFLAGS) -I $(RSYM_BASE)
42
43 LOG2LINES_HOST_LFLAGS = $(TOOLS_LFLAGS)
44
45 .PHONY: log2lines
46 log2lines: $(LOG2LINES_TARGET)
47
48 $(LOG2LINES_TARGET): $(LOG2LINES_OBJECTS) | $(LOG2LINES_OUT)
49 $(ECHO_HOSTLD)
50 ${host_gcc} $(LOG2LINES_OBJECTS) $(LOG2LINES_HOST_LFLAGS) -o $@
51
52 $(LOG2LINES_INT_)log2lines.o: $(LOG2LINES_BASE_)log2lines.c | $(LOG2LINES_INT)
53 $(ECHO_HOSTCC)
54 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
55
56 $(LOG2LINES_INT_)util.o: $(LOG2LINES_BASE_)util.c | $(LOG2LINES_INT)
57 $(ECHO_HOSTCC)
58 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
59
60 $(LOG2LINES_INT_)list.o: $(LOG2LINES_BASE_)list.c | $(LOG2LINES_INT)
61 $(ECHO_HOSTCC)
62 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
63
64 $(LOG2LINES_INT_)options.o: $(LOG2LINES_BASE_)options.c | $(LOG2LINES_INT)
65 $(ECHO_HOSTCC)
66 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
67
68 $(LOG2LINES_INT_)help.o: $(LOG2LINES_BASE_)help.c | $(LOG2LINES_INT)
69 $(ECHO_HOSTCC)
70 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
71
72 $(LOG2LINES_INT_)cache.o: $(LOG2LINES_BASE_)cache.c | $(LOG2LINES_INT)
73 $(ECHO_HOSTCC)
74 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
75
76 $(LOG2LINES_INT_)image.o: $(LOG2LINES_BASE_)image.c | $(LOG2LINES_INT)
77 $(ECHO_HOSTCC)
78 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
79
80 $(LOG2LINES_INT_)stat.o: $(LOG2LINES_BASE_)stat.c | $(LOG2LINES_INT)
81 $(ECHO_HOSTCC)
82 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
83
84 $(LOG2LINES_INT_)revision.o: $(LOG2LINES_BASE_)revision.c | $(LOG2LINES_INT)
85 $(ECHO_HOSTCC)
86 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
87
88 $(LOG2LINES_INT_)cmd.o: $(LOG2LINES_BASE_)cmd.c | $(LOG2LINES_INT)
89 $(ECHO_HOSTCC)
90 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
91
92 $(LOG2LINES_INT_)match.o: $(LOG2LINES_BASE_)match.c | $(LOG2LINES_INT)
93 $(ECHO_HOSTCC)
94 ${host_gcc} $(LOG2LINES_HOST_CFLAGS) -c $< -o $@
95
96 .PHONY: log2lines_clean
97 log2lines_clean:
98 -@$(rm) $(LOG2LINES_TARGET) $(LOG2LINES_OBJECTS) 2>$(NUL)
99 clean: log2lines_clean