c59592c3f5b594a22c95b425717074083e90d463
[reactos.git] / reactos / tools / tools.mak
1 # We have to put rmkdir in $(INTERMEDIATE) and not $(INTERMEDIATE)tools
2 # since GNU make will always remake directory targets and we can't do the
3 # .created file trick for rmkdir due to circular dependencies
4
5 RMKDIR_BASE = tools
6
7 RMKDIR_TARGET = \
8 $(INTERMEDIATE)rmkdir$(EXEPOSTFIX)
9
10 RMKDIR_SOURCES = \
11 $(RMKDIR_BASE)$(SEP)rmkdir.c
12
13 RMKDIR_OBJECTS = \
14 $(INTERMEDIATE)rmkdir.o
15
16 RMKDIR_HOST_CFLAGS = -g -Werror -Wall
17
18 RMKDIR_HOST_LFLAGS = -g
19
20 $(RMKDIR_TARGET): $(RMKDIR_OBJECTS)
21 $(ECHO_LD)
22 ${host_gcc} $(RMKDIR_OBJECTS) $(RMKDIR_HOST_LFLAGS) -o $(RMKDIR_TARGET)
23
24 $(INTERMEDIATE)rmkdir.o: $(RMKDIR_BASE)$(SEP)rmkdir.c
25 $(ECHO_CC)
26 ${host_gcc} $(RMKDIR_HOST_CFLAGS) -c $(RMKDIR_BASE)$(SEP)rmkdir.c -o $(INTERMEDIATE)rmkdir.o
27
28 .PHONY: rmkdir_clean
29 rmkdir_clean:
30 -@$(rm) $(RMKDIR_TARGET) $(RMKDIR_OBJECTS) 2>$(NUL)
31 clean: rmkdir_clean
32
33
34 RSYM_BASE = tools
35
36 RSYM_TARGET = \
37 $(INTERMEDIATE)$(RSYM_BASE)$(SEP)rsym$(EXEPOSTFIX)
38
39 RSYM_SOURCES = \
40 $(RSYM_BASE)$(SEP)rsym.c
41
42 RSYM_OBJECTS = \
43 $(RSYM_SOURCES:.c=.o)
44
45 RSYM_HOST_CFLAGS = -g -Werror -Wall
46
47 RSYM_HOST_LFLAGS = -g
48
49 $(RSYM_TARGET): $(RSYM_OBJECTS)
50 $(ECHO_LD)
51 ${host_gcc} $(RSYM_OBJECTS) $(RSYM_HOST_LFLAGS) -o $(RSYM_TARGET)
52
53 $(RSYM_OBJECTS): %.o : %.c
54 $(ECHO_CC)
55 ${host_gcc} $(RSYM_HOST_CFLAGS) -c $< -o $@
56
57 .PHONY: rsym_clean
58 rsym_clean:
59 -@$(rm) $(RSYM_TARGET) $(RSYM_OBJECTS) 2>$(NUL)
60 clean: rsym_clean
61
62 include tools/buildno/buildno.mak
63 include tools/cdmake/cdmake.mak
64 include tools/nci/nci.mak
65 include tools/rbuild/rbuild.mak
66 include tools/unicode/unicode.mak
67 include tools/winebuild/winebuild.mak
68 include tools/wmc/wmc.mak
69 include tools/wpp/wpp.mak
70 include tools/wrc/wrc.mak