23581e73cf72f2e782de8b3719f16bb3c747fc07
[reactos.git] / reactos / tools / tools.mak
1 RMKDIR_BASE = tools
2
3 RMKDIR_TARGET = \
4 $(INTERMEDIATE)rmkdir$(EXEPOSTFIX)
5
6 RMKDIR_SOURCES = \
7 $(RMKDIR_BASE)$(SEP)rmkdir.c
8
9 RMKDIR_OBJECTS = \
10 $(INTERMEDIATE)rmkdir.o
11
12 RMKDIR_HOST_CFLAGS = -g -Werror -Wall
13
14 RMKDIR_HOST_LFLAGS = -g
15
16 $(RMKDIR_TARGET): $(INTERMEDIATE_NO_SLASH) $(RMKDIR_OBJECTS)
17 $(ECHO_LD)
18 ${host_gcc} $(RMKDIR_OBJECTS) $(RMKDIR_HOST_LFLAGS) -o $(RMKDIR_TARGET)
19
20 $(INTERMEDIATE)rmkdir.o: $(INTERMEDIATE_NO_SLASH) $(RMKDIR_BASE)$(SEP)rmkdir.c
21 $(ECHO_CC)
22 ${host_gcc} $(RMKDIR_HOST_CFLAGS) -c $(RMKDIR_BASE)$(SEP)rmkdir.c -o $(INTERMEDIATE)rmkdir.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 $(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/bin2res/bin2res.mak
59 include tools/buildno/buildno.mak
60 include tools/cabman/cabman.mak
61 include tools/cdmake/cdmake.mak
62 include tools/nci/nci.mak
63 include tools/rbuild/rbuild.mak
64 include tools/unicode/unicode.mak
65 include tools/winebuild/winebuild.mak
66 include tools/wmc/wmc.mak
67 include tools/wpp/wpp.mak
68 include tools/wrc/wrc.mak
69 include lib/zlib/zlib.mak