blob: 9edab8fa45716b25d61e12f6f6dfcceb76c7a2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
--- Makefile.dist.orig Fri Nov 8 00:10:08 2002
+++ Makefile.dist Tue Apr 29 00:07:43 2003
@@ -3,13 +3,13 @@
# Copyright (c) 1996-2002 Internet Software Consortium.
# Use is subject to license terms which appear in the file named
# ISC-LICENSE that should have accompanied this file when you
-# received it. If a file named ISC-LICENSE did not accompany this
+# received it. If a file named ISC-LICENSE did not accompany this
# file, or you are not sure the one you have is correct, you may
# obtain an applicable copy of the license at:
#
-# http://www.isc.org/isc-license-1.0.html.
+# http://www.isc.org/isc-license-1.0.html.
#
-# This file is part of the ISC DHCP distribution. The documentation
+# This file is part of the ISC DHCP distribution. The documentation
# associated with this file is listed in the file DOCUMENTATION,
# included in the top-level directory of this release.
#
@@ -17,47 +17,200 @@
# http://www.isc.org for more information.
#
-SUBDIRS= common $(MINIRES) dst omapip server client relay dhcpctl
+COMMON_SUBDIRS= common
+DEVEL_SUBDIRS= $(MINIRES) dst omapip dhcpctl
+SERVER_SUBDIRS= omshell server
+RELAY_SUBDIRS= relay
+CLIENT_SUBDIRS= client
+
+DEVEL_BUILD_SUBDIRS= ${COMMON_SUBDIRS} ${DEVEL_SUBDIRS}
+SERVER_BUILD_SUBDIRS= ${SERVER_SUBDIRS}
+RELAY_BUILD_SUBDIRS= ${RELAY_SUBDIRS}
+CLIENT_BUILD_SUBDIRS= ${CLIENT_SUBDIRS}
+
+DEVEL_INSTALL_SUBDIRS= ${COMMON_SUBDIRS} ${DEVEL_SUBDIRS}
+SERVER_INSTALL_SUBDIRS= ${COMMON_SUBDIRS} ${SERVER_SUBDIRS}
+RELAY_INSTALL_SUBDIRS= ${RELAY_SUBDIRS}
+CLIENT_INSTALL_SUBDIRS= ${COMMON_SUBDIRS} ${CLIENT_SUBDIRS}
-all:
- @for dir in ${SUBDIRS}; do \
+all: all.server all.relay all.client
+
+all.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
+ echo "Making all in $$dir"; \
+ (cd $$dir; $(MAKE) all) || exit 1; \
+ done
+
+all.server: all.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
+ echo "Making all in $$dir"; \
+ (cd $$dir; $(MAKE) all) || exit 1; \
+ done
+
+all.relay: all.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
+ echo "Making all in $$dir"; \
+ (cd $$dir; $(MAKE) all) || exit 1; \
+ done
+
+all.client: all.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
echo "Making all in $$dir"; \
(cd $$dir; $(MAKE) all) || exit 1; \
- done
+ done
+
+install: install.devel install.server install.relay install.client
+
+install.devel:
+ @for dir in ${DEVEL_INSTALL_SUBDIRS}; do \
+ echo "Installing in $$dir"; \
+ (cd $$dir; $(MAKE) install) || exit 1; \
+ done
-install:
- @for dir in ${SUBDIRS}; do \
+install.server:
+ @for dir in ${SERVER_INSTALL_SUBDIRS}; do \
echo "Installing in $$dir"; \
(cd $$dir; $(MAKE) install) || exit 1; \
- done
+ done
-depend:
- @for dir in ${SUBDIRS}; do \
+install.relay:
+ @for dir in ${RELAY_INSTALL_SUBDIRS}; do \
+ echo "Installing in $$dir"; \
+ (cd $$dir; $(MAKE) install) || exit 1; \
+ done
+
+install.client:
+ @for dir in ${CLIENT_INSTALL_SUBDIRS}; do \
+ echo "Installing in $$dir"; \
+ (cd $$dir; $(MAKE) install) || exit 1; \
+ done
+
+depend: depend.server depend.relay depend.client
+
+depend.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
+ echo "Making dependencies in $$dir"; \
+ (cd $$dir; $(MAKE) depend) || exit 1; \
+ done
+
+depend.server: depend.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
+ echo "Making dependencies in $$dir"; \
+ (cd $$dir; $(MAKE) depend) || exit 1; \
+ done
+
+depend.relay: depend.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
echo "Making dependencies in $$dir"; \
(cd $$dir; $(MAKE) depend) || exit 1; \
- done
+ done
+
+depend.client: depend.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
+ echo "Making dependencies in $$dir"; \
+ (cd $$dir; $(MAKE) depend) || exit 1; \
+ done
+
+clean: clean.server clean.relay clean.client
+
+clean.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
+ echo "Cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) clean) || exit 1; \
+ done
+
+clean.server: clean.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
+ echo "Cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) clean) || exit 1; \
+ done
+
+clean.relay: clean.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
+ echo "Cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) clean) || exit 1; \
+ done
-clean:
- @for dir in ${SUBDIRS}; do \
+clean.client: clean.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
echo "Cleaning in $$dir"; \
(cd $$dir; $(MAKE) clean) || exit 1; \
- done
+ done
+
+realclean: realclean.server realclean.relay realclean.client
+
+realclean.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
+ echo "Really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) realclean) || exit 1; \
+ done
-realclean:
- @for dir in ${SUBDIRS}; do \
+realclean.server: realclean.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
echo "Really cleaning in $$dir"; \
(cd $$dir; $(MAKE) realclean) || exit 1; \
- done
+ done
-distclean:
- @for dir in ${SUBDIRS}; do \
+realclean.relay: realclean.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
+ echo "Really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) realclean) || exit 1; \
+ done
+
+realclean.client: realclean.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
+ echo "Really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) realclean) || exit 1; \
+ done
+
+distclean: distclean.server distclean.relay distclean.client
+
+distclean.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
echo "Really, really cleaning in $$dir"; \
(cd $$dir; $(MAKE) distclean) || exit 1; \
- done
- @rm -f Makefile
+ done
+
+distclean.server: distclean.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
+ echo "Really, really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) distclean) || exit 1; \
+ done
+
+distclean.relay: distclean.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
+ echo "Really, really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) distclean) || exit 1; \
+ done
+
+distclean.client: distclean.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
+ echo "Really, really cleaning in $$dir"; \
+ (cd $$dir; $(MAKE) distclean) || exit 1; \
+ done
+
+links: links.server links.relay links.client
+
+links.devel:
+ @for dir in ${DEVEL_BUILD_SUBDIRS}; do \
+ echo "Making links in $$dir"; \
+ (cd $$dir; $(MAKE) links) || exit 1; \
+ done
+
+links.server: links.devel
+ @for dir in ${SERVER_BUILD_SUBDIRS}; do \
+ echo "Making links in $$dir"; \
+ (cd $$dir; $(MAKE) links) || exit 1; \
+ done
+
+links.relay: links.devel
+ @for dir in ${RELAY_BUILD_SUBDIRS}; do \
+ echo "Making links in $$dir"; \
+ (cd $$dir; $(MAKE) links) || exit 1; \
+ done
-links:
- @for dir in ${SUBDIRS}; do \
+links.client: links.devel
+ @for dir in ${CLIENT_BUILD_SUBDIRS}; do \
echo "Making links in $$dir"; \
(cd $$dir; $(MAKE) links) || exit 1; \
- done
+ done
|