* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / pefixup.mak
1 PEFIXUP_BASE = $(TOOLS_BASE)
2 PEFIXUP_BASE_ = $(PEFIXUP_BASE)$(SEP)
3
4 PEFIXUP_INT = $(INTERMEDIATE_)$(PEFIXUP_BASE)
5 PEFIXUP_INT_ = $(PEFIXUP_INT)$(SEP)
6 PEFIXUP_OUT = $(OUTPUT_)$(PEFIXUP_BASE)
7 PEFIXUP_OUT_ = $(PEFIXUP_OUT)$(SEP)
8
9 PEFIXUP_TARGET = \
10 $(PEFIXUP_OUT_)pefixup$(EXEPOSTFIX)
11
12 PEFIXUP_SOURCES = \
13 $(PEFIXUP_BASE_)pefixup.c
14
15 PEFIXUP_OBJECTS = \
16 $(addprefix $(INTERMEDIATE_), $(PEFIXUP_SOURCES:.c=.o))
17
18 PEFIXUP_HOST_CFLAGS = $(TOOLS_CFLAGS)
19
20 PEFIXUP_HOST_LFLAGS = $(TOOLS_LFLAGS)
21
22 .PHONY: pefixup
23 pefixup: $(PEFIXUP_TARGET)
24
25 $(PEFIXUP_TARGET): $(PEFIXUP_OBJECTS) | $(PEFIXUP_OUT)
26 $(ECHO_HOSTLD)
27 ${host_gcc} $(PEFIXUP_OBJECTS) $(PEFIXUP_HOST_LFLAGS) -o $@
28
29 $(PEFIXUP_INT_)pefixup.o: $(PEFIXUP_BASE_)pefixup.c | $(PEFIXUP_INT)
30 $(ECHO_HOSTCC)
31 ${host_gcc} $(PEFIXUP_HOST_CFLAGS) -c $< -o $@
32
33 .PHONY: pefixup_clean
34 pefixup_clean:
35 -@$(rm) $(PEFIXUP_TARGET) $(PEFIXUP_OBJECTS) 2>$(NUL)
36 clean: pefixup_clean