Really fix the build, but make bootcd does not work yet.
[reactos.git] / reactos / tools / cabman / cabman.mak
1 CABMAN_BASE = $(TOOLS_BASE_)cabman
2 CABMAN_BASE_ = $(CABMAN_BASE)$(SEP)
3 CABMAN_INT = $(INTERMEDIATE_)$(CABMAN_BASE)
4 CABMAN_INT_ = $(CABMAN_INT)$(SEP)
5 CABMAN_OUT = $(OUTPUT_)$(CABMAN_BASE)
6 CABMAN_OUT_ = $(CABMAN_OUT)$(SEP)
7
8 $(CABMAN_INT): | $(TOOLS_INT)
9 $(ECHO_MKDIR)
10 ${mkdir} $@
11
12 ifneq ($(INTERMEDIATE),$(OUTPUT))
13 $(CABMAN_OUT): | $(TOOLS_OUT)
14 $(ECHO_MKDIR)
15 ${mkdir} $@
16 endif
17
18 CABMAN_TARGET = \
19 $(EXEPREFIX)$(CABMAN_OUT_)cabman$(EXEPOSTFIX)
20
21 CABMAN_SOURCES = $(addprefix $(CABMAN_BASE_), \
22 cabinet.cxx \
23 dfp.cxx \
24 main.cxx \
25 mszip.cxx \
26 raw.cxx \
27 )
28
29 CABMAN_OBJECTS = \
30 $(addprefix $(INTERMEDIATE_), $(CABMAN_SOURCES:.cxx=.o))
31
32 CABMAN_HOST_CXXFLAGS = -Iinclude/reactos -Ilib/3rdparty/zlib $(TOOLS_CXXFLAGS)
33
34 CABMAN_HOST_LIBS = $(ZLIB_HOST_TARGET)
35
36 CABMAN_HOST_LFLAGS = $(TOOLS_LFLAGS) $(CABMAN_HOST_LIBS)
37
38 .PHONY: cabman
39 cabman: $(CABMAN_TARGET)
40
41 $(CABMAN_TARGET): $(CABMAN_OBJECTS) $(CABMAN_HOST_LIBS) | $(CABMAN_OUT)
42 $(ECHO_LD)
43 ${host_gpp} $(CABMAN_OBJECTS) $(CABMAN_HOST_LFLAGS) -o $@
44
45 $(CABMAN_INT_)cabinet.o: $(CABMAN_BASE_)cabinet.cxx | $(CABMAN_INT)
46 $(ECHO_CC)
47 ${host_gpp} $(CABMAN_HOST_CXXFLAGS) -c $< -o $@
48
49 $(CABMAN_INT_)dfp.o: $(CABMAN_BASE_)dfp.cxx | $(CABMAN_INT)
50 $(ECHO_CC)
51 ${host_gpp} $(CABMAN_HOST_CXXFLAGS) -c $< -o $@
52
53 $(CABMAN_INT_)main.o: $(CABMAN_BASE_)main.cxx | $(CABMAN_INT)
54 $(ECHO_CC)
55 ${host_gpp} $(CABMAN_HOST_CXXFLAGS) -c $< -o $@
56
57 $(CABMAN_INT_)mszip.o: $(CABMAN_BASE_)mszip.cxx | $(CABMAN_INT)
58 $(ECHO_CC)
59 ${host_gpp} $(CABMAN_HOST_CXXFLAGS) -c $< -o $@
60
61 $(CABMAN_INT_)raw.o: $(CABMAN_BASE_)raw.cxx | $(CABMAN_INT)
62 $(ECHO_CC)
63 ${host_gpp} $(CABMAN_HOST_CXXFLAGS) -c $< -o $@
64
65 .PHONY: cabman_clean
66 cabman_clean:
67 -@$(rm) $(CABMAN_TARGET) $(CABMAN_OBJECTS) 2>$(NUL)
68 clean: cabman_clean