* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / gendib / gendib.mak
1 GENDIB_BASE = $(TOOLS_BASE_)gendib
2 GENDIB_BASE_ = $(GENDIB_BASE)$(SEP)
3 GENDIB_INT = $(INTERMEDIATE_)$(GENDIB_BASE)
4 GENDIB_INT_ = $(GENDIB_INT)$(SEP)
5 GENDIB_OUT = $(OUTPUT_)$(GENDIB_BASE)
6 GENDIB_OUT_ = $(GENDIB_OUT)$(SEP)
7
8 $(GENDIB_INT): | $(TOOLS_INT)
9 $(ECHO_MKDIR)
10 ${mkdir} $@
11
12 ifneq ($(INTERMEDIATE),$(OUTPUT))
13 $(GENDIB_OUT): | $(TOOLS_OUT)
14 $(ECHO_MKDIR)
15 ${mkdir} $@
16 endif
17
18 GENDIB_TARGET = \
19 $(GENDIB_OUT_)gendib$(EXEPOSTFIX)
20
21 GENDIB_SOURCES = \
22 $(GENDIB_BASE_)gendib.c
23
24 GENDIB_OBJECTS = \
25 $(addprefix $(INTERMEDIATE_), $(GENDIB_SOURCES:.c=.o))
26
27 GENDIB_HOST_CFLAGS = $(TOOLS_CFLAGS)
28
29 GENDIB_HOST_LFLAGS = $(TOOLS_LFLAGS)
30
31 $(GENDIB_TARGET): $(GENDIB_OBJECTS) | $(GENDIB_OUT)
32 $(ECHO_HOSTLD)
33 ${host_gcc} $(GENDIB_OBJECTS) $(GENDIB_HOST_LFLAGS) -o $@
34
35 $(GENDIB_INT_)gendib.o: $(GENDIB_BASE_)gendib.c | $(GENDIB_INT)
36 $(ECHO_HOSTCC)
37 ${host_gcc} $(GENDIB_HOST_CFLAGS) -c $< -o $@
38
39 .PHONY: gendib
40 gendib: $(GENDIB_TARGET)
41
42 .PHONY: gendib_clean
43 gendib_clean:
44 -@$(rm) $(GENDIB_TARGET) $(GENDIB_OBJECTS) 2>$(NUL)
45 clean: gendib_clean
46
47 GENDIB_DIB_DIR = $(INTERMEDIATE_)subsystems$(SEP)win32$(SEP)win32k$(SEP)dib
48
49 GENDIB_DIB_FILES = \
50 $(GENDIB_DIB_DIR)$(SEP)dib32gen.c \
51 $(GENDIB_DIB_DIR)$(SEP)dib16gen.c \
52 $(GENDIB_DIB_DIR)$(SEP)dib8gen.c
53
54 $(GENDIB_DIB_FILES): $(GENDIB_TARGET)
55 ${mkdir} $(GENDIB_DIB_DIR) 2>$(NUL)
56 $(ECHO_GENDIB)
57 $(Q)$(GENDIB_TARGET) $(GENDIB_DIB_DIR)