* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / bin2c.mak
1 BIN2C_BASE = $(TOOLS_BASE)
2 BIN2C_BASE_ = $(BIN2C_BASE)$(SEP)
3
4 BIN2C_INT = $(INTERMEDIATE_)$(BIN2C_BASE)
5 BIN2C_INT_ = $(BIN2C_INT)$(SEP)
6 BIN2C_OUT = $(OUTPUT_)$(BIN2C_BASE)
7 BIN2C_OUT_ = $(BIN2C_OUT)$(SEP)
8
9 BIN2C_TARGET = \
10 $(BIN2C_OUT_)bin2c$(EXEPOSTFIX)
11
12 BIN2C_SOURCES = \
13 $(BIN2C_BASE_)bin2c.c
14
15 BIN2C_OBJECTS = \
16 $(addprefix $(INTERMEDIATE_), $(BIN2C_SOURCES:.c=.o))
17
18 BIN2C_HOST_CFLAGS = $(TOOLS_CFLAGS)
19
20 BIN2C_HOST_LFLAGS = $(TOOLS_LFLAGS)
21
22 .PHONY: bin2c
23 bin2c: $(BIN2C_TARGET)
24
25 $(BIN2C_TARGET): $(BIN2C_OBJECTS) | $(BIN2C_OUT)
26 $(ECHO_HOSTLD)
27 ${host_gcc} $(BIN2C_OBJECTS) $(BIN2C_HOST_LFLAGS) -o $@
28
29 $(BIN2C_INT_)bin2c.o: $(BIN2C_BASE_)bin2c.c | $(BIN2C_INT)
30 $(ECHO_HOSTCC)
31 ${host_gcc} $(BIN2C_HOST_CFLAGS) -c $< -o $@
32
33 .PHONY: bin2c_clean
34 bin2c_clean:
35 -@$(rm) $(BIN2C_TARGET) $(BIN2C_OBJECTS) 2>$(NUL)
36 clean: bin2c_clean