Deleted Added
full compact
Makefile (17234) Makefile (17308)
1#
1#
2# $Id: Makefile,v 1.89 1996/07/01 06:13:31 jkh Exp $
2# $Id: Makefile,v 1.90 1996/07/21 00:05:31 jraynard Exp $
3#
4# Make command line options:
5# -DCLOBBER will remove /usr/include
6# -DMAKE_LOCAL to add ./local to the SUBDIR list
7# -DMAKE_PORTS to add ./ports to the SUBDIR list
8# -DMAKE_EBONES to build eBones (KerberosIV)
9#
10# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
11# -DNOCLEAN do not clean at all
12# -DNOCRYPT will prevent building of crypt versions
13# -DNOLKM do not build loadable kernel modules
14# -DNOOBJDIR do not run ``${MAKE} obj''
15# -DNOPROFILE do not build profiled libraries
16# -DNOSECURE do not go into secure subdir
3#
4# Make command line options:
5# -DCLOBBER will remove /usr/include
6# -DMAKE_LOCAL to add ./local to the SUBDIR list
7# -DMAKE_PORTS to add ./ports to the SUBDIR list
8# -DMAKE_EBONES to build eBones (KerberosIV)
9#
10# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
11# -DNOCLEAN do not clean at all
12# -DNOCRYPT will prevent building of crypt versions
13# -DNOLKM do not build loadable kernel modules
14# -DNOOBJDIR do not run ``${MAKE} obj''
15# -DNOPROFILE do not build profiled libraries
16# -DNOSECURE do not go into secure subdir
17# -DNOGAMES do not go into games subdir
17
18
19#
20# The intended user-driven targets are:
21# world - rebuild *everything*, including glue to help do upgrades.
22# reinstall - use an existing (eg: NFS mounted) build to do an update.
23# update - convenient way to update your source tree (eg: sup/cvs)
24# most - build user commands, no libraries or include files
25# installmost - install user commands, no libraries or include files
26# all - run through SUBDIR and build everything. This is an implicit
27# rule, not particularly useful for everybody. Use 'world'.
28
29
18# Put initial settings here.
19SUBDIR=
20
21# We must do include and lib first so that the perl *.ph generation
22# works correctly as it uses the header files installed by this.
23.if exists(include)
24SUBDIR+= include
25.endif
26.if exists(lib)
27SUBDIR+= lib
28.endif
29
30.if exists(bin)
31SUBDIR+= bin
32.endif
30# Put initial settings here.
31SUBDIR=
32
33# We must do include and lib first so that the perl *.ph generation
34# works correctly as it uses the header files installed by this.
35.if exists(include)
36SUBDIR+= include
37.endif
38.if exists(lib)
39SUBDIR+= lib
40.endif
41
42.if exists(bin)
43SUBDIR+= bin
44.endif
33#.if exists(contrib)
34#SUBDIR+= contrib
35#.endif
36.if exists(games)
45.if exists(games) && !defined(NOGAMES)
37SUBDIR+= games
38.endif
39.if exists(gnu)
40SUBDIR+= gnu
41.endif
42.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
43SUBDIR+= eBones
44.endif

--- 31 unchanged lines hidden (view full) ---

76# rebuilt before you do them.
77.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
78SUBDIR+= local
79.endif
80.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
81SUBDIR+= ports
82.endif
83
46SUBDIR+= games
47.endif
48.if exists(gnu)
49SUBDIR+= gnu
50.endif
51.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
52SUBDIR+= eBones
53.endif

--- 31 unchanged lines hidden (view full) ---

85# rebuilt before you do them.
86.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
87SUBDIR+= local
88.endif
89.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
90SUBDIR+= ports
91.endif
92
84# Handle the -DNOOBJDIR and -DNOCLEANDIR
93# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR
85.if defined(NOOBJDIR)
86OBJDIR=
87.else
88OBJDIR= obj
89.endif
90
91.if defined(NOCLEAN)
92CLEANDIR=
94.if defined(NOOBJDIR)
95OBJDIR=
96.else
97OBJDIR= obj
98.endif
99
100.if defined(NOCLEAN)
101CLEANDIR=
93WORLD_CLEANDIST=obj
94.else
102.else
95WORLD_CLEANDIST=cleandist
96.if defined(NOCLEANDIR)
97CLEANDIR= clean
98.else
99CLEANDIR= cleandir
100.endif
101.endif
102
103.if defined(NOCLEANDIR)
104CLEANDIR= clean
105.else
106CLEANDIR= cleandir
107.endif
108.endif
109
110#
111# While building tools for bootstrapping, we dont need to waste time on
112# profiled libraries or man pages. This speeds things up somewhat.
113#
103MK_FLAGS= -DNOMAN -DNOPROFILE
104
114MK_FLAGS= -DNOMAN -DNOPROFILE
115
105.if !target(pre-world)
106pre-world:
107 @/usr/bin/true
116#
117# world
118#
119# Attempt to rebuild and reinstall *everything*, with reasonable chance of
120# success, regardless of how old your existing system is.
121#
122# >> Beware, it overwrites the local build environment! <<
123#
124world:
125.if target(pre-world)
126 @echo "--------------------------------------------------------------"
127 @echo " Making 'pre-world' target"
128 @echo "--------------------------------------------------------------"
129 cd ${.CURDIR} && ${MAKE} pre-world
130 @echo
108.endif
131.endif
109
110world: pre-world hierarchy mk $(WORLD_CLEANDIST) bootstrap include-tools includes lib-tools libraries build-tools
111 @echo "--------------------------------------------------------------"
132 @echo "--------------------------------------------------------------"
112 @echo " Rebuilding ${DESTDIR} The whole thing"
133 @echo " Making hierarchy"
113 @echo "--------------------------------------------------------------"
134 @echo "--------------------------------------------------------------"
135 cd ${.CURDIR} && ${MAKE} hierarchy
114 @echo
136 @echo
115 cd ${.CURDIR} && ${MAKE} depend all install
116 cd ${.CURDIR}/share/man && ${MAKE} makedb
137 @echo "--------------------------------------------------------------"
138 @echo " Rebuilding /usr/share/mk"
139 @echo "--------------------------------------------------------------"
140 cd ${.CURDIR} && ${MAKE} mk
141 @echo
142 @echo "--------------------------------------------------------------"
143 @echo " Cleaning up the source tree"
144 @echo "--------------------------------------------------------------"
145.if defined(NOCLEAN)
146 @echo "Not cleaning anything! I sure hope you know what you are doing!"
147.else
148.if defined(NOCLEANDIR)
149 cd ${.CURDIR} && ${MAKE} clean
150.else
151 cd ${.CURDIR} && ${MAKE} cleandir
152.endif
153.endif
154 @echo
155.if !defined(NOOBJ)
156 @echo "--------------------------------------------------------------"
157 @echo " Rebuilding the obj tree"
158 @echo "--------------------------------------------------------------"
159 cd ${.CURDIR} && ${MAKE} obj
160.endif
161 @echo
162 @echo "--------------------------------------------------------------"
163 @echo " Rebuilding bootstrap tools"
164 @echo "--------------------------------------------------------------"
165 cd ${.CURDIR} && ${MAKE} bootstrap
166 @echo
167 @echo "--------------------------------------------------------------"
168 @echo " Rebuilding tools necessary to build the include files"
169 @echo "--------------------------------------------------------------"
170 cd ${.CURDIR} && ${MAKE} include-tools
171 @echo
172 @echo "--------------------------------------------------------------"
173 @echo " Rebuilding /usr/include"
174 @echo "--------------------------------------------------------------"
175 cd ${.CURDIR} && ${MAKE} includes
176 @echo
177 @echo "--------------------------------------------------------------"
178 @echo " Rebuilding tools needed to build the libraries"
179 @echo "--------------------------------------------------------------"
180 cd ${.CURDIR} && ${MAKE} lib-tools
181 @echo
182 @echo "--------------------------------------------------------------"
183 @echo " Rebuilding /usr/lib"
184 @echo "--------------------------------------------------------------"
185 cd ${.CURDIR} && ${MAKE} libraries
186 @echo
187 @echo "--------------------------------------------------------------"
188 @echo " Rebuilding C compiler, make, symorder, sgmlfmt and zic(8)"
189 @echo "--------------------------------------------------------------"
190 cd ${.CURDIR} && ${MAKE} build-tools
191 @echo
192 @echo "--------------------------------------------------------------"
193 @echo " Rebuilding.. The whole thing"
194 @echo "--------------------------------------------------------------"
195 cd ${.CURDIR} && ${MAKE} depend && ${MAKE} all install
196 cd ${.CURDIR}/share/man && ${MAKE} makedb
117.if target(post-world)
197.if target(post-world)
198 @echo
199 @echo "--------------------------------------------------------------"
200 @echo " Making 'post-world' target"
201 @echo "--------------------------------------------------------------"
118 cd ${.CURDIR} && ${MAKE} post-world
119.endif
202 cd ${.CURDIR} && ${MAKE} post-world
203.endif
204 @echo
205 @echo "--------------------------------------------------------------"
120 @echo "make world completed on `date`"
121
206 @echo "make world completed on `date`"
207
122bootstrap:
123 cd ${.CURDIR}/usr.bin/make && ${MAKE} ${MK_FLAGS} all install
124 cd ${.CURDIR}/usr.bin/xlint && ${MAKE} ${MK_FLAGS} lint1 lint2 xlint
125 cd ${.CURDIR}/usr.bin/xlint/lint1 && ${MAKE} ${MK_FLAGS} install
126 cd ${.CURDIR}/usr.bin/xlint/lint2 && ${MAKE} ${MK_FLAGS} install
127 cd ${.CURDIR}/usr.bin/xlint/xlint && ${MAKE} ${MK_FLAGS} install
128 cd ${.CURDIR}/usr.bin/lex && ${MAKE} ${MK_FLAGS} bootstrap && \
129 ${MAKE} ${MK_FLAGS} all install
130
131reinstall: hierarchy mk includes
208#
209# reinstall
210#
211# If you have a build server, you can NFS mount the source and obj directories
212# and do a 'make reinstall' on the *client* to install new binaries from the
213# most recent server build.
214#
215reinstall:
132 @echo "--------------------------------------------------------------"
216 @echo "--------------------------------------------------------------"
133 @echo " Reinstall ${DESTDIR} The whole thing"
217 @echo " Making hierarchy"
134 @echo "--------------------------------------------------------------"
218 @echo "--------------------------------------------------------------"
219 cd ${.CURDIR} && ${MAKE} hierarchy
135 @echo
220 @echo
136 cd ${.CURDIR} && ${MAKE} install
137 cd ${.CURDIR}/share/man && ${MAKE} makedb
138
139hierarchy:
140 @echo "--------------------------------------------------------------"
221 @echo "--------------------------------------------------------------"
141 @echo " Making hierarchy"
222 @echo " Rebuilding /usr/share/mk"
142 @echo "--------------------------------------------------------------"
223 @echo "--------------------------------------------------------------"
143 cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
224 cd ${.CURDIR} && ${MAKE} mk
225 @echo
226 @echo "--------------------------------------------------------------"
227 @echo " Rebuilding /usr/include"
228 @echo "--------------------------------------------------------------"
229 cd ${.CURDIR} && ${MAKE} includes
230 @echo
231 @echo "--------------------------------------------------------------"
232 @echo " Reinstalling.. The whole thing"
233 @echo "--------------------------------------------------------------"
234 @echo
235 cd ${.CURDIR} && ${MAKE} install
236 cd ${.CURDIR}/share/man && ${MAKE} makedb
144
237
238
239#
240# update
241#
242# Update the source tree, by running sup and/or running cvs to update to the
243# latest copy.
244#
145update:
146.if defined(SUP_UPDATE)
147 @echo "--------------------------------------------------------------"
148 @echo "Running sup"
149 @echo "--------------------------------------------------------------"
150 @sup -v ${SUPFILE}
151.if defined(SUPFILE1)
152 @sup -v ${SUPFILE1}

--- 4 unchanged lines hidden (view full) ---

157.endif
158.if defined(CVS_UPDATE)
159 @echo "--------------------------------------------------------------"
160 @echo "Updating /usr/src from cvs repository" ${CVSROOT}
161 @echo "--------------------------------------------------------------"
162 cd ${.CURDIR} && cvs -q update -P -d
163.endif
164
245update:
246.if defined(SUP_UPDATE)
247 @echo "--------------------------------------------------------------"
248 @echo "Running sup"
249 @echo "--------------------------------------------------------------"
250 @sup -v ${SUPFILE}
251.if defined(SUPFILE1)
252 @sup -v ${SUPFILE1}

--- 4 unchanged lines hidden (view full) ---

257.endif
258.if defined(CVS_UPDATE)
259 @echo "--------------------------------------------------------------"
260 @echo "Updating /usr/src from cvs repository" ${CVSROOT}
261 @echo "--------------------------------------------------------------"
262 cd ${.CURDIR} && cvs -q update -P -d
263.endif
264
165cleandist:
166.if !defined(NOCLEANDIR)
265
266#
267# most
268#
269# Build most of the user binaries on the existing system libs and includes.
270#
271most:
167 @echo "--------------------------------------------------------------"
272 @echo "--------------------------------------------------------------"
168 @echo " Cleaning up the source tree, and rebuilding the obj tree"
273 @echo " Building programs only"
169 @echo "--------------------------------------------------------------"
274 @echo "--------------------------------------------------------------"
170 cd ${.CURDIR} && ${MAKE} cleandir
171 cd ${.CURDIR} && ${MAKE} obj
172.endif
275 cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all
276 cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all
277 cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all
278 cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all
279 cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
280 cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all
281 cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all
282 cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
283#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
284# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most
285#.endif
286#.if !defined(NOSECURE) && !defined(NOCRYPT)
287# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most
288#.endif
173
289
290#
291# installmost
292#
293# Install the binaries built by the 'most' target. This does not include
294# libraries or include files.
295#
174installmost:
175 @echo "--------------------------------------------------------------"
176 @echo " Installing programs only"
177 @echo "--------------------------------------------------------------"
178 cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install
179 cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install
180 cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install
181 cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install
182 cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
183 cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install
184 cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install
185 cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
186#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
187# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost
188#.endif
189#.if !defined(NOSECURE) && !defined(NOCRYPT)
190# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost
191#.endif
192
296installmost:
297 @echo "--------------------------------------------------------------"
298 @echo " Installing programs only"
299 @echo "--------------------------------------------------------------"
300 cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install
301 cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install
302 cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install
303 cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install
304 cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
305 cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install
306 cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install
307 cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
308#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
309# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost
310#.endif
311#.if !defined(NOSECURE) && !defined(NOCRYPT)
312# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost
313#.endif
314
193most:
194 @echo "--------------------------------------------------------------"
195 @echo " Building programs only"
196 @echo "--------------------------------------------------------------"
197 cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all
198 cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all
199 cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all
200 cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all
201 cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
202 cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all
203 cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all
204 cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
205#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
206# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most
207#.endif
208#.if !defined(NOSECURE) && !defined(NOCRYPT)
209# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most
210#.endif
315#
316# ------------------------------------------------------------------------
317#
318# From here onwards are utility targets used by the 'make world' and
319# related targets. If your 'world' breaks, you may like to try to fix
320# the problem and manually run the following targets to attempt to
321# complete the build. Beware, this is *not* guaranteed to work, you
322# need to have a pretty good grip on the current state of the system
323# to attempt to manually finish it. If in doubt, 'make world' again.
324#
211
325
326#
327# heirarchy - ensure that all the needed directories are present
328#
329hierarchy:
330 cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
331
332#
333# mk - update the /usr/share/mk makefiles.
334#
212mk:
335mk:
213 @echo "--------------------------------------------------------------"
214 @echo " Rebuilding ${DESTDIR}/usr/share/mk"
215 @echo "--------------------------------------------------------------"
216 cd ${.CURDIR}/share/mk && ${MAKE} install
217
336 cd ${.CURDIR}/share/mk && ${MAKE} install
337
338#
339# bootstrap - [re]build tools needed to run the actual build, this includes
340# tools needed by 'make depend', as some tools are needed to generate source
341# for the dependency information to be gathered from.
342#
343bootstrap:
344 cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
345 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
346 cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
347 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
348 cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
349 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
350
351#
352# include-tools - generally the same as 'bootstrap', except that it's for
353# things that are specifically needed to generate include files.
354#
355# XXX should be merged with bootstrap, it's not worth keeeping them seperate
356#
357include-tools:
358 cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \
359 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
360
361#
362# includes - possibly generate and install the include files.
363#
218includes:
364includes:
219 @echo "--------------------------------------------------------------"
220 @echo " Rebuilding ${DESTDIR}/usr/include"
221 @echo "--------------------------------------------------------------"
222 @echo
223.if defined(CLOBBER)
224 rm -rf ${DESTDIR}/usr/include/*
225 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
226 -p ${DESTDIR}/usr/include
227.endif
228 cd ${.CURDIR}/include && ${MAKE} install
365.if defined(CLOBBER)
366 rm -rf ${DESTDIR}/usr/include/*
367 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
368 -p ${DESTDIR}/usr/include
369.endif
370 cd ${.CURDIR}/include && ${MAKE} install
229 cd ${.CURDIR}/gnu/include && ${MAKE} install
371 cd ${.CURDIR}/gnu/include && ${MAKE} install
230 cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
231 cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
232 cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
233 cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
234.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
235 cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall
236 cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall
237 cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall
238.endif
239 cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
240 cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
241 cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
242 cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
243 cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
372 cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
373 cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
374 cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
375 cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
376.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
377 cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall
378 cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall
379 cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall
380.endif
381 cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
382 cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
383 cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
384 cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
385 cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
244 cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
245 cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
386 cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
387 cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
246.if !defined(WANT_CSRG_LIBM)
247 cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
248.endif
249 cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
250 cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
251 cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
388.if !defined(WANT_CSRG_LIBM)
389 cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
390.endif
391 cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
392 cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
393 cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
252 cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall
253 cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
394 cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall
395 cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
254 cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
255 cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
396 cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
397 cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
256 cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
257 cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
398 cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
399 cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
258
400
401#
402# lib-tools - build tools to compile and install the libraries.
403#
259lib-tools:
404lib-tools:
260 @echo "--------------------------------------------------------------"
261 @echo " Rebuilding tools needed to build the libraries"
262 @echo "--------------------------------------------------------------"
263 @echo
264 cd ${.CURDIR}/usr.bin/xinstall && \
265 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
266 cd ${.CURDIR}/gnu/usr.bin/ld && \
267 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
268 cd ${.CURDIR}/usr.bin/ar && \
269 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
270 cd ${.CURDIR}/usr.bin/ranlib && \
271 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
272 cd ${.CURDIR}/usr.bin/nm && \
273 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
274 cd ${.CURDIR}/usr.bin/lex/lib && \
275 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
276 cd ${.CURDIR}/usr.bin/compile_et && \
277 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR} && \
405 cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \
406 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
407 cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \
408 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
409 cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \
410 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
411 cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \
412 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
413 cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
414 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
415 cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \
416 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \
278 rm -f /usr/sbin/compile_et
417 rm -f /usr/sbin/compile_et
279 cd ${.CURDIR}/usr.bin/mk_cmds && \
280 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
418 cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \
419 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
281
420
421#
422# libraries - build and install the libraries
423#
282libraries:
424libraries:
283 @echo "--------------------------------------------------------------"
284 @echo " Rebuilding ${DESTDIR}/usr/lib"
285 @echo "--------------------------------------------------------------"
286 @echo
287.if exists(lib/libcompat)
425.if exists(lib/libcompat)
288 cd ${.CURDIR}/lib/libcompat && \
289 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
426 cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
427 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
290.endif
291.if exists(lib/libncurses)
428.endif
429.if exists(lib/libncurses)
292 cd ${.CURDIR}/lib/libncurses && \
293 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
430 cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
431 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
294.endif
295.if exists(lib/libtermcap)
432.endif
433.if exists(lib/libtermcap)
296 cd ${.CURDIR}/lib/libtermcap && \
297 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
434 cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
435 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
298.endif
436.endif
437.if exists(lib)
438 cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \
439 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
440.endif
299.if exists(gnu)
441.if exists(gnu)
300 cd ${.CURDIR}/gnu/lib && \
301 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
302 cd ${.CURDIR}/gnu/usr.bin/cc/libgcc && \
303 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
442 cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
443 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
444 cd ${.CURDIR}/gnu/usr.bin/cc/libgcc && ${MAKE} depend && \
445 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
304.endif
305.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
446.endif
447.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
306 cd ${.CURDIR}/secure/lib && \
307 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
448 cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
449 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
308.endif
309.if exists(lib)
450.endif
451.if exists(lib)
310 cd ${.CURDIR}/lib/csu/i386 && \
311 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
312 cd ${.CURDIR}/lib && \
313 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
452 cd ${.CURDIR}/lib && ${MAKE} depend && \
453 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
314.endif
315.if exists(usr.bin/lex/lib)
454.endif
455.if exists(usr.bin/lex/lib)
316 cd ${.CURDIR}/usr.bin/lex/lib && \
317 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
456 cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
457 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
318.endif
319.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
458.endif
459.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
320 cd ${.CURDIR}/eBones/lib && \
321 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
460 cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \
461 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
322.endif
323.if exists(usr.sbin/pcvt/keycap)
462.endif
463.if exists(usr.sbin/pcvt/keycap)
324 cd ${.CURDIR}/usr.sbin/pcvt/keycap && \
325 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
464 cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
465 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
326.endif
327
466.endif
467
328include-tools:
329 @echo "--------------------------------------------------------------"
330 @echo " Rebuild tools necessary to build the include files"
331 @echo "--------------------------------------------------------------"
332 @echo
333 cd ${.CURDIR}/usr.bin/xinstall && \
334 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
335 cd ${.CURDIR}/usr.bin/rpcgen && \
336 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
337
468#
469# build-tools - build and install any other tools needed to complete the
470# compile and install.
471#
338build-tools:
472build-tools:
339 @echo "--------------------------------------------------------------"
340 @echo " Rebuilding ${DESTDIR} C compiler, make, symorder, sgmlfmt and zic(8)"
341 @echo "--------------------------------------------------------------"
342 @echo
343 cd ${.CURDIR}/gnu/usr.bin/cc && \
344 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
345 cd ${.CURDIR}/usr.bin/make && \
346 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
347 cd ${.CURDIR}/usr.bin/symorder && \
348 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
349 cd ${.CURDIR}/usr.bin/sgmlfmt && \
350 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
351 cd ${.CURDIR}/share/sgml && \
352 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
353 cd ${.CURDIR}/usr.sbin/zic && \
354 ${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
473 cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \
474 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
475 cd ${.CURDIR}/usr.bin/symorder && ${MAKE} depend && \
476 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
477 cd ${.CURDIR}/usr.bin/sgmlfmt && ${MAKE} depend && \
478 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
479 cd ${.CURDIR}/share/sgml && ${MAKE} depend && \
480 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
481 cd ${.CURDIR}/usr.sbin/zic && ${MAKE} depend && \
482 ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
355
356.include <bsd.subdir.mk>
483
484.include <bsd.subdir.mk>