Changed internal/config.h -> roscfg.h in a number of files.
[reactos.git] / reactos / tools / Makefile
1 PATH_TO_TOP = ..
2
3 TOOLS = \
4 buildno$(EXE_POSTFIX) \
5 depends$(EXE_POSTFIX) \
6 rcopy$(EXE_POSTFIX) \
7 rdel$(EXE_POSTFIX) \
8 rmkdir$(EXE_POSTFIX) \
9 rrmdir$(EXE_POSTFIX)
10
11 CLEAN_FILES = $(TOOLS)
12
13 all: $(TOOLS)
14
15 buildno$(EXE_POSTFIX): buildno.c ../include/reactos/version.h
16 $(HOST_CC) $(CFLAGS) -o buildno$(EXE_POSTFIX) buildno.c
17 $(EXE_PREFIX)buildno$(EXE_POSTFIX)
18
19 depends$(EXE_POSTFIX): depends.c
20 $(HOST_CC) $(CFLAGS) -o depends$(EXE_POSTFIX) depends.c
21
22 ifeq ($(HOST),mingw32-linux)
23 rcopy$(EXE_POSTFIX): rcopy.c
24 $(HOST_CC) $(CFLAGS) -DUNIX_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
25 endif
26 ifeq ($(HOST),mingw32-windows)
27 rcopy$(EXE_POSTFIX): rcopy.c
28 $(HOST_CC) $(CFLAGS) -DDOS_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
29 endif
30
31 rdel$(EXE_POSTFIX): rdel.c
32 $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
33
34 ifeq ($(HOST),mingw32-linux)
35 rmkdir$(EXE_POSTFIX): rmkdir.c
36 $(HOST_CC) $(CFLAGS) -DUNIX_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
37 endif
38 ifeq ($(HOST),mingw32-windows)
39 rmkdir$(EXE_POSTFIX): rmkdir.c
40 $(HOST_CC) $(CFLAGS) -DDOS_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
41 endif
42
43 ifeq ($(HOST),mingw32-linux)
44 rrmdir$(EXE_POSTFIX): rrmdir.c
45 $(HOST_CC) $(CFLAGS) -DUNIX_PATHS rrmdir.c -o rrmdir$(EXE_POSTFIX)
46 endif
47 ifeq ($(HOST),mingw32-windows)
48 rrmdir$(EXE_POSTFIX): rrmdir.c
49 $(HOST_CC) $(CFLAGS) -DDOS_PATHS rrmdir.c -o rrmdir$(EXE_POSTFIX)
50 endif
51
52 ifeq ($(HOST),mingw32-linux)
53 clean:
54 rm $(TOOLS)
55 rm mkconfig$(EXE_POSTFIX)
56 endif
57 ifeq ($(HOST),mingw32-windows)
58 clean:
59 del $(TOOLS)
60 del mkconfig$(EXE_POSTFIX)
61 endif
62
63 .PHONY: all clean
64
65 include $(PATH_TO_TOP)/rules.mak