8d28d8d87a48fb4d53d88cea79696606e32b96b9
[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 ${host_gcc} $(RMKDIR_OBJECTS) $(RMKDIR_HOST_LFLAGS) -o $(RMKDIR_TARGET)
18
19 $(RMKDIR_OBJECTS): %.o : %.c
20 ${host_gcc} $(RMKDIR_HOST_CFLAGS) -c $< -o $@
21
22 .PHONY: rmkdir_clean
23 rmkdir_clean:
24 -@$(rm) $(RMKDIR_TARGET) $(RMKDIR_OBJECTS) 2>$(NUL)
25 clean: rmkdir_clean
26
27
28 RSYM_BASE = tools
29
30 RSYM_TARGET = \
31 $(ROS_INTERMEDIATE)$(RSYM_BASE)$(SEP)rsym$(EXEPOSTFIX)
32
33 RSYM_SOURCES = \
34 $(RSYM_BASE)$(SEP)rsym.c
35
36 RSYM_OBJECTS = \
37 $(RSYM_SOURCES:.c=.o)
38
39 RSYM_HOST_CFLAGS = -g -Werror -Wall
40
41 RSYM_HOST_LFLAGS = -g
42
43 $(RSYM_TARGET): $(RSYM_OBJECTS)
44 ${host_gcc} $(RSYM_OBJECTS) $(RSYM_HOST_LFLAGS) -o $(RSYM_TARGET)
45
46 $(RSYM_OBJECTS): %.o : %.c
47 ${host_gcc} $(RSYM_HOST_CFLAGS) -c $< -o $@
48
49 .PHONY: rsym_clean
50 rsym_clean:
51 -@$(rm) $(RSYM_TARGET) $(RSYM_OBJECTS) 2>$(NUL)
52 clean: rsym_clean
53
54 include tools/buildno/Makefile
55 include tools/cdmake/makefile
56 include tools/nci/makefile
57 include tools/rbuild/makefile
58 include tools/unicode/Makefile
59 include tools/wmc/makefile
60 include tools/wpp/Makefile
61 include tools/wrc/makefile