zebasoftis <zebasoftis@gmail.com>
[reactos.git] / vms / makefile
1 # $Id$
2 #
3 # ReactOS VMS Personality
4 #
5
6 PATH_TO_TOP = ../reactos
7
8 include $(PATH_TO_TOP)/rules.mak
9
10 VMS_PATH = .
11
12 VMS_OTHER = server
13
14 VMS_TOOLS = mksystab
15
16 VMS_LIBS = vmsdll
17
18 VMS_APPS = # vmsw32
19
20 VMS_MODULES = $(VMS_OTHER) $(VMS_TOOLS) $(VMS_LIBS) $(VMS_APPS)
21
22 all: implib $(VMS_MODULES)
23
24 implib: $(VMS_MODULES:%=%_implib)
25
26 clean: $(VMS_MODULES:%=%_clean)
27
28 install: $(VMS_MODULES:%=%_install)
29
30 .PHONY: all implib clean
31
32
33 #
34 # Other VMS+ Modules
35 #
36 $(VMS_OTHER): %:
37 make -f Makefile -C $(VMS_PATH)/$*
38
39 $(VMS_OTHER:%=%_implib): %_implib:
40 make -f Makefile -C $(VMS_PATH)/$* implib
41
42 $(VMS_OTHER:%=%_clean): %_clean:
43 make -f Makefile -C $(VMS_PATH)/$* clean
44
45 $(VMS_OTHER:%=%_dist): %_dist:
46 make -f Makefile -C $(VMS_PATH)/$* dist
47
48 $(VMS_OTHER:%=%_install): %_install:
49 make -f Makefile -C $(VMS_PATH)/$* install
50
51 .PHONY: $(VMS_OTHER) $(VMS_OTHER:%=%_implib) $(VMS_OTHER:%=%_clean) $(VMS_OTHER:%=%_install) $(VMS_OTHER:%=%_dist)
52
53
54 #
55 # VMS+ Tools
56 #
57 $(VMS_TOOLS): %:
58 make -f Makefile -C $(VMS_PATH)/tools/$*
59
60 $(VMS_TOOLS:%=%_implib): %_implib:
61 make -f Makefile -C $(VMS_PATH)/tools/$* implib
62
63 $(VMS_TOOLS:%=%_clean): %_clean:
64 make -f Makefile -C $(VMS_PATH)/tools/$* clean
65
66 $(VMS_TOOLS:%=%_dist): %_dist:
67 make -f Makefile -C $(VMS_PATH)/tools/$* dist
68
69 $(VMS_TOOLS:%=%_install): %_install:
70 make -f Makefile -C $(VMS_PATH)/tools/$* install
71
72 .PHONY: $(VMS_LIBS) $(VMS_LIBS:%=%_implib) $(VMS_LIBS:%=%_clean) $(VMS_LIBS:%=%_install) $(VMS_LIBS:%=%_dist)
73
74
75 #
76 # VMS+ DLLs
77 #
78 $(VMS_LIBS): %:
79 make -f Makefile -C $(VMS_PATH)/lib/$*
80
81 $(VMS_LIBS:%=%_implib): %_implib:
82 make -f Makefile -C $(VMS_PATH)/lib/$* implib
83
84 $(VMS_LIBS:%=%_clean): %_clean:
85 make -f Makefile -C $(VMS_PATH)/lib/$* clean
86
87 $(VMS_LIBS:%=%_dist): %_dist:
88 make -f Makefile -C $(VMS_PATH)/lib/$* dist
89
90 $(VMS_LIBS:%=%_install): %_install:
91 make -f Makefile -C $(VMS_PATH)/lib/$* install
92
93 .PHONY: $(VMS_LIBS) $(VMS_LIBS:%=%_implib) $(VMS_LIBS:%=%_clean) $(VMS_LIBS:%=%_install) $(VMS_LIBS:%=%_dist)
94
95
96 #
97 # VMS+ Programs
98 #
99 $(VMS_APPS): %:
100 make -f Makefile -C $(VMS_PATH)/apps/$*
101
102 $(VMS_APPS:%=%_implib): %_implib:
103 make -f Makefile -C $(VMS_PATH)/apps/$* implib
104
105 $(VMS_APPS:%=%_clean): %_clean:
106 make -f Makefile -C $(VMS_PATH)/apps/$* clean
107
108 $(VMS_APPS:%=%_dist): %_dist:
109 make -f Makefile -C $(VMS_PATH)/apps/$* dist
110
111 $(VMS_APPS:%=%_install): %_install:
112 make -f Makefile -C $(VMS_PATH)/apps/$* install
113
114 .PHONY: $(VMS_APPS) $(VMS_APPS:%=%_implib) $(VMS_APPS:%=%_clean) $(VMS_APPS:%=%_install) $(VMS_APPS:%=%_dist)
115
116
117 etags:
118 find . -name "*.[ch]" -print | etags --language=c -
119
120 # EOF