Merge 12735:15568 from xmlbuildsystem branch
[reactos.git] / posix / Makefile
1 # $Id: Makefile,v 1.7 2003/01/05 18:29:41 robd Exp $
2 #
3 # ReactOS POSIX+ Personality
4 #
5
6 PATH_TO_TOP = ../reactos
7
8 include $(PATH_TO_TOP)/rules.mak
9
10
11 POSIX_OTHER = server #lib
12
13 POSIX_TOOLS = mksystab
14
15 POSIX_LIBS = psxdll psxx
16
17 POSIX_APPS = baresh posixw32
18
19 POSIX_MODULES = $(POSIX_OTHER) $(POSIX_TOOLS) $(POSIX_LIBS) $(POSIX_APPS)
20
21 all: implib $(POSIX_MODULES)
22
23 implib: $(POSIX_MODULES:%=%_implib)
24
25 clean: $(POSIX_MODULES:%=%_clean)
26
27 install: $(POSIX_MODULES:%=%_install)
28
29 #dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
30 # $(POSIX_MODULES:%=%_dist)
31
32 .PHONY: all implib clean
33 #.PHONY: all implib install dist
34
35
36 #
37 # Other POSIX+ Modules
38 #
39 $(POSIX_OTHER): %:
40 make -f Makefile -C $(POSIX_PATH)/$*
41
42 $(POSIX_OTHER:%=%_implib): %_implib:
43 make -f Makefile -C $(POSIX_PATH)/$* implib
44
45 $(POSIX_OTHER:%=%_clean): %_clean:
46 make -f Makefile -C $(POSIX_PATH)/$* clean
47
48 $(POSIX_OTHER:%=%_dist): %_dist:
49 make -f Makefile -C $(POSIX_PATH)/$* dist
50
51 $(POSIX_OTHER:%=%_install): %_install:
52 make -f Makefile -C $(POSIX_PATH)/$* install
53
54 .PHONY: $(POSIX_OTHER) $(POSIX_OTHER:%=%_implib) $(POSIX_OTHER:%=%_clean) $(POSIX_OTHER:%=%_install) $(POSIX_OTHER:%=%_dist)
55
56
57 #
58 # POSIX+ Tools
59 #
60 $(POSIX_TOOLS): %:
61 make -f Makefile -C $(POSIX_PATH)/tools/$*
62
63 $(POSIX_TOOLS:%=%_implib): %_implib:
64 make -f Makefile -C $(POSIX_PATH)/tools/$* implib
65
66 $(POSIX_TOOLS:%=%_clean): %_clean:
67 make -f Makefile -C $(POSIX_PATH)/tools/$* clean
68
69 $(POSIX_TOOLS:%=%_dist): %_dist:
70 make -f Makefile -C $(POSIX_PATH)/tools/$* dist
71
72 $(POSIX_TOOLS:%=%_install): %_install:
73 make -f Makefile -C $(POSIX_PATH)/tools/$* install
74
75 .PHONY: $(POSIX_LIBS) $(POSIX_LIBS:%=%_implib) $(POSIX_LIBS:%=%_clean) $(POSIX_LIBS:%=%_install) $(POSIX_LIBS:%=%_dist)
76
77
78 #
79 # POSIX+ DLLs
80 #
81 $(POSIX_LIBS): %:
82 make -f Makefile -C $(POSIX_PATH)/lib/$*
83
84 $(POSIX_LIBS:%=%_implib): %_implib:
85 make -f Makefile -C $(POSIX_PATH)/lib/$* implib
86
87 $(POSIX_LIBS:%=%_clean): %_clean:
88 make -f Makefile -C $(POSIX_PATH)/lib/$* clean
89
90 $(POSIX_LIBS:%=%_dist): %_dist:
91 make -f Makefile -C $(POSIX_PATH)/lib/$* dist
92
93 $(POSIX_LIBS:%=%_install): %_install:
94 make -f Makefile -C $(POSIX_PATH)/lib/$* install
95
96 .PHONY: $(POSIX_LIBS) $(POSIX_LIBS:%=%_implib) $(POSIX_LIBS:%=%_clean) $(POSIX_LIBS:%=%_install) $(POSIX_LIBS:%=%_dist)
97
98
99 #
100 # POSIX+ Programs
101 #
102 $(POSIX_APPS): %:
103 make -f Makefile -C $(POSIX_PATH)/apps/$*
104
105 $(POSIX_APPS:%=%_implib): %_implib:
106 make -f Makefile -C $(POSIX_PATH)/apps/$* implib
107
108 $(POSIX_APPS:%=%_clean): %_clean:
109 make -f Makefile -C $(POSIX_PATH)/apps/$* clean
110
111 $(POSIX_APPS:%=%_dist): %_dist:
112 make -f Makefile -C $(POSIX_PATH)/apps/$* dist
113
114 $(POSIX_APPS:%=%_install): %_install:
115 make -f Makefile -C $(POSIX_PATH)/apps/$* install
116
117 .PHONY: $(POSIX_APPS) $(POSIX_APPS:%=%_implib) $(POSIX_APPS:%=%_clean) $(POSIX_APPS:%=%_install) $(POSIX_APPS:%=%_dist)
118
119
120 etags:
121 find . -name "*.[ch]" -print | etags --language=c -
122
123 # EOF
124
125
126
127 #CFLAGS=-Iinclude
128
129 #all: lib/crt0w32.o
130 # make -C tools
131 # make -C lib
132 # make -C server
133 # make -C lib/psxdll
134 # make -C lib/psxx
135 # make -C apps/baresh
136 # make -C apps/posixw32
137
138 #lib/crt0w32.o: lib/crt0w32.c
139
140 #implib:
141
142 #clean:
143 # make -C lib clean
144 # make -C tools clean
145 # make -C server clean
146 # make -C lib/psxdll clean
147 # make -C lib/psxx clean
148 # make -C apps/baresh clean
149 # make -C apps/posixw32 clean
150 # - $(RM) lib/crt0w32.o
151
152 #include $(PATH_TO_TOP)/rules.mak
153
154 # EOF