more efficient detection of C++ modules, fixed bug in C++ pch support, always clean...
[reactos.git] / reactos / tools / Makefile
1 RMKDIR_BASE = tools
2
3 RMKDIR_TARGET = \
4 $(ROS_INTERMEDIATE)$(RMKDIR_BASE)$(SEP)rmkdir$(EXEPOSTFIX)
5
6 RMKDIR_SOURCES = \
7 $(RMKDIR_BASE)$(SEP)rmkdir.c
8
9 RMKDIR_OBJECTS = \
10 $(RMKDIR_SOURCES:.c=.o)
11
12 RMKDIR_HOST_CFLAGS = -g -Werror -Wall
13
14 RMKDIR_HOST_LFLAGS = -g
15
16 $(RMKDIR_TARGET): $(RMKDIR_OBJECTS)
17 $(ECHO_LD)
18 ${host_gcc} $(RMKDIR_OBJECTS) $(RMKDIR_HOST_LFLAGS) -o $(RMKDIR_TARGET)
19
20 $(RMKDIR_OBJECTS): %.o : %.c
21 $(ECHO_CC)
22 ${host_gcc} $(RMKDIR_HOST_CFLAGS) -c $< -o $@
23
24 .PHONY: rmkdir_clean
25 rmkdir_clean:
26 -@$(rm) $(RMKDIR_TARGET) $(RMKDIR_OBJECTS) 2>$(NUL)
27 clean: rmkdir_clean
28
29
30 RSYM_BASE = tools
31
32 RSYM_TARGET = \
33 $(ROS_INTERMEDIATE)$(RSYM_BASE)$(SEP)rsym$(EXEPOSTFIX)
34
35 RSYM_SOURCES = \
36 $(RSYM_BASE)$(SEP)rsym.c
37
38 RSYM_OBJECTS = \
39 $(RSYM_SOURCES:.c=.o)
40
41 RSYM_HOST_CFLAGS = -g -Werror -Wall
42
43 RSYM_HOST_LFLAGS = -g
44
45 $(RSYM_TARGET): $(RSYM_OBJECTS)
46 $(ECHO_LD)
47 ${host_gcc} $(RSYM_OBJECTS) $(RSYM_HOST_LFLAGS) -o $(RSYM_TARGET)
48
49 $(RSYM_OBJECTS): %.o : %.c
50 $(ECHO_CC)
51 ${host_gcc} $(RSYM_HOST_CFLAGS) -c $< -o $@
52
53 .PHONY: rsym_clean
54 rsym_clean:
55 -@$(rm) $(RSYM_TARGET) $(RSYM_OBJECTS) 2>$(NUL)
56 clean: rsym_clean
57
58 include tools/buildno/makefile
59 include tools/cdmake/makefile
60 include tools/nci/makefile
61 include tools/rbuild/makefile
62 include tools/unicode/makefile
63 include tools/wmc/makefile
64 include tools/wpp/makefile
65 include tools/wrc/makefile