forgot to save workspace before commiting. removed directory from include path that...
[reactos.git] / rosapps / Makefile
1 #
2 # Global makefile for the ROSAPPS package
3 #
4
5 include rules.mak
6
7 #
8 # Available applications
9 #
10
11 APPS = calc \
12 cmdutils \
13 cmdutils$(SEP)mode \
14 cmdutils$(SEP)touch \
15 demos$(SEP)maze \
16 devutils$(SEP)genguid \
17 devutils$(SEP)zoomin \
18 dflat32 \
19 games$(SEP)winemine \
20 hcalc \
21 mc \
22 notepad \
23 notevil \
24 sysutils \
25 sysutils$(SEP)ctm \
26 sysutils$(SEP)kill \
27 sysutils$(SEP)tcat \
28 sysutils$(SEP)tlist \
29 net$(SEP)ping \
30 net$(SEP)finger \
31 net$(SEP)telnet \
32 net$(SEP)niclist \
33 net$(SEP)whois \
34 net$(SEP)arp \
35 net$(SEP)ncftp \
36 net$(SEP)netstat \
37 net$(SEP)ipconfig \
38 regedt32 \
39 regsvr32 \
40 welcome \
41 winfile
42
43 # Removed due to dependance on C++ compiler
44 #
45 # taskmgr \
46 # sysutils$(SEP)regexpl \
47 #
48 # Removed because it doesn't build correctly
49 #
50 #
51
52 all: $(APPS)
53 .PHONY: all
54
55 implib:
56 .PHONY: implib
57
58 clean: $(APPS:%=%_clean)
59 .PHONY: clean
60
61 install: $(APPS:%=%_install)
62 .PHONY: install
63
64 floppy: make_floppy_dirs $(APPS:%=%_floppy)
65
66 dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
67 .PHONY: dist
68
69
70 #
71 # Applications
72 #
73 $(APPS): %:
74 $(MAKE) -C $*
75
76 $(APPS:%=%_clean): %_clean:
77 $(MAKE) -C $* clean
78
79 $(APPS:%=%_floppy): %_floppy:
80 $(MAKE) -C $* floppy
81
82 $(APPS:%=%_dist): %_dist:
83 $(MAKE) -C $* dist
84
85 $(APPS:%=%_install): %_install:
86 $(MAKE) -C $* install
87
88 .PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) $(APPS:%=%_install)
89
90
91 #
92 # Make an install floppy
93 #
94
95 #install: all
96 # ./install.sh /mnt/hda1
97
98 make_floppy_dirs:
99 ifeq ($(DOSCLI),yes)
100 mkdir $(FLOPPY_DIR)\apps
101 else
102 mkdir $(FLOPPY_DIR)/apps
103 endif
104
105 .PHONY: make_floppy_dirs
106
107 #
108 # Make a distribution saveset
109 #
110
111 clean_dist_dir:
112 ifeq ($(DOSCLI),yes)
113 # $(RM) $(DIST_DIR)\apps\*.*
114 # $(RMDIR) $(DIST_DIR)\apps
115 # $(RMDIR) $(DIST_DIR)
116 else
117 $(RM) -r $(DIST_DIR)
118 endif
119
120 make_dist_dirs:
121 ifeq ($(DOSCLI),yes)
122 mkdir $(DIST_DIR)
123 mkdir $(DIST_DIR)\apps
124 else
125 mkdir $(DIST_DIR)
126 mkdir $(DIST_DIR)/apps
127 endif
128
129 #dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
130 # $(WINE_MODULES:%=%_dist)
131
132 .PHONY: clean_dist_dir make_dist_dirs
133
134 # EOF