boredom, figured i'd commit the change ;)
[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 #net$(SEP)arp
11 #net$(SEP)ipconfig
12 #net$(SEP)netstat
13 #net$(SEP)niclist
14 #net$(SEP)telnet
15 #net$(SEP)whois
16 APPS = calc \
17 cmdutils \
18 cmdutils$(SEP)mode \
19 dflat32 \
20 hcalc \
21 mc \
22 notevil \
23 sysutils \
24 sysutils$(SEP)ctm \
25 net$(SEP)finger \
26 net$(SEP)ncftp \
27 net$(SEP)ping \
28 regedit \
29 regedt32 \
30 welcome \
31 winfile
32
33 # Removed due to dependance on C++ compiler
34 #
35 # taskmgr \
36 # sysutils$(SEP)regexpl \
37 #
38 # Removed because it doesn't build correctly
39 #
40 # sysutils$(SEP)tlist \
41 #
42
43 all: $(APPS)
44 .PHONY: all
45
46 implib:
47 .PHONY: implib
48
49 clean: $(APPS:%=%_clean)
50 .PHONY: clean
51
52 install: $(APPS:%=%_install)
53 .PHONY: install
54
55 floppy: make_floppy_dirs $(APPS:%=%_floppy)
56
57 dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
58 .PHONY: dist
59
60
61 #
62 # Applications
63 #
64 $(APPS): %:
65 make -C $*
66
67 $(APPS:%=%_clean): %_clean:
68 make -C $* clean
69
70 $(APPS:%=%_floppy): %_floppy:
71 make -C $* floppy
72
73 $(APPS:%=%_dist): %_dist:
74 make -C $* dist
75
76 $(APPS:%=%_install): %_install:
77 make -C $* install
78
79 .PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) $(APPS:%=%_install)
80
81
82 #
83 # Make an install floppy
84 #
85
86 #install: all
87 # ./install.sh /mnt/hda1
88
89 make_floppy_dirs:
90 ifeq ($(DOSCLI),yes)
91 mkdir $(FLOPPY_DIR)\apps
92 else
93 mkdir $(FLOPPY_DIR)/apps
94 endif
95
96 .PHONY: make_floppy_dirs
97
98 #
99 # Make a distribution saveset
100 #
101
102 clean_dist_dir:
103 ifeq ($(DOSCLI),yes)
104 # $(RM) $(DIST_DIR)\apps\*.*
105 # $(RMDIR) $(DIST_DIR)\apps
106 # $(RMDIR) $(DIST_DIR)
107 else
108 $(RM) -r $(DIST_DIR)
109 endif
110
111 make_dist_dirs:
112 ifeq ($(DOSCLI),yes)
113 mkdir $(DIST_DIR)
114 mkdir $(DIST_DIR)\apps
115 else
116 mkdir $(DIST_DIR)
117 mkdir $(DIST_DIR)/apps
118 endif
119
120 #dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
121 # $(WINE_MODULES:%=%_dist)
122
123 .PHONY: clean_dist_dir make_dist_dirs
124
125 # EOF