Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 599 lines (535 sloc) 18.354 kb
dd966684 »
2012-08-15 Pull up the following revisions(s) (requested by martin in ticket #503):
1 # $NetBSD: Makefile,v 1.291.2.2 2012/08/15 17:36:46 sborrill Exp $
46937431 »
1999-04-01 Improve documentation.
2
69d1160b »
2002-12-21 * Add two new (experimental) targets:
3 #
46937431 »
1999-04-01 Improve documentation.
4 # This is the top-level makefile for building NetBSD. For an outline of
5 # how to build a snapshot or release, as well as other release engineering
4152b202 »
2003-07-26 netbsd.org->NetBSD.org
6 # information, see http://www.NetBSD.org/developers/releng/index.html
46937431 »
1999-04-01 Improve documentation.
7 #
8 # Not everything you can set or do is documented in this makefile. In
9 # particular, you should review the files in /usr/share/mk (especially
10 # bsd.README) for general information on building programs and writing
11 # Makefiles within this structure, and see the comments in src/etc/Makefile
12 # for further information on installation and release set options.
13 #
14 # Variables listed below can be set on the make command line (highest
15 # priority), in /etc/mk.conf (middle priority), or in the environment
16 # (lowest priority).
17 #
18 # Variables:
f7a8ac60 »
1999-11-30 Document MKOBJDIRS here, and sort the variable list in the comments
19 # DESTDIR is the target directory for installation of the compiled
20 # software. It defaults to /. Note that programs are built against
21 # libraries installed in DESTDIR.
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
22 # MKMAN, if `no', will prevent building of manual pages.
23 # MKOBJDIRS, if not `no', will build object directories at
f7a8ac60 »
1999-11-30 Document MKOBJDIRS here, and sort the variable list in the comments
24 # an appropriate point in a build.
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
25 # MKSHARE, if `no', will prevent building and installing
46937431 »
1999-04-01 Improve documentation.
26 # anything in /usr/share.
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
27 # MKUPDATE, if not `no', will avoid a `make cleandir' at the start of
6485a5c1 »
2002-06-20 Fix whitespace usage in comment.
28 # `make build', as well as having the effects listed in
29 # /usr/share/mk/bsd.README.
f40352f7 »
2001-06-10 clarify some variable documentation; from cagney
30 # NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
6485a5c1 »
2002-06-20 Fix whitespace usage in comment.
31 # of the `make build'.
f9790632 »
2000-08-05 Document the cool NOCLEANDIR/NOINCLUDES options that somebody added.
32 # NOINCLUDES will avoid the `make includes' usually done by `make build'.
46937431 »
1999-04-01 Improve documentation.
33 #
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
34 # See mk.conf(5) for more details.
35 #
36 #
46937431 »
1999-04-01 Improve documentation.
37 # Targets:
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
38 # build:
46265030 »
2003-01-03 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
39 # Builds a full release of NetBSD in DESTDIR, except for the
40 # /etc configuration files.
41 # If BUILD_DONE is set, this is an empty target.
42 # distribution:
43 # Builds a full release of NetBSD in DESTDIR, including the /etc
44 # configuration files.
45 # buildworld:
46 # As per `make distribution', except that it ensures that DESTDIR
47 # is not the root directory.
48 # installworld:
49 # Install the distribution from DESTDIR to INSTALLWORLDDIR (which
50 # defaults to the root directory). Ensures that INSTALLWORLDDIR
d202bb8a »
2012-01-24 s/is the not root/is not the root/ in a comment - from Snader_LB
51 # is not the root directory if cross compiling.
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
52 # release:
4903b14f »
2005-08-25 Modify "release" to invoke "make distribution" instead of "make build",
53 # Does a `make distribution', and then tars up the DESTDIR files
f4612ce2 »
2008-03-18 Consistently document RELEASEDIR/RELEASEMACHINEDIR.
54 # into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format.
46265030 »
2003-01-03 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
55 # (See etc/Makefile for more information on this.)
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
56 # regression-tests:
57 # Runs the regression tests in "regress" on this host.
b31e270e »
2003-05-10 Add "sourcesets" argument/target, which builds source sets into
58 # sets:
f4612ce2 »
2008-03-18 Consistently document RELEASEDIR/RELEASEMACHINEDIR.
59 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets
60 # from ${DESTDIR}
b31e270e »
2003-05-10 Add "sourcesets" argument/target, which builds source sets into
61 # sourcesets:
62 # Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
0934a2e5 »
2006-01-04 Add a new "syspkgs" target, which simply chains to the "syspkgs" target
63 # syspkgs:
f4612ce2 »
2008-03-18 Consistently document RELEASEDIR/RELEASEMACHINEDIR.
64 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs
65 # from ${DESTDIR}
468bd5d1 »
2006-01-28 * Add an "iso-image" target in the top level Makefile,
66 # iso-image:
935a4703 »
2007-08-30 Add an iso-image-source option which does the same thing as iso-image…
67 # Create CD-ROM image in RELEASEDIR/iso.
468bd5d1 »
2006-01-28 * Add an "iso-image" target in the top level Makefile,
68 # RELEASEDIR must already have been populated by `make release'
69 # or equivalent.
935a4703 »
2007-08-30 Add an iso-image-source option which does the same thing as iso-image…
70 # iso-image-source:
71 # Create CD-ROM image with source in RELEASEDIR/iso.
72 # RELEASEDIR must already have been populated by
73 # `make release sourcesets' or equivalent.
3cfc0c7d »
2012-01-22 Add "live-image" and "install-image" target support to build.sh.
74 # live-image:
75 # Create bootable live image for emulators or USB stick etc.
76 # in RELEASEDIR/liveimage.
77 # RELEASEDIR must already have been populated by `make release'
78 # or equivalent.
79 # install-image:
80 # Create bootable installation image for USB stick etc.
81 # in RELEASEDIR/installimage.
82 # RELEASEDIR must already have been populated by `make release'
83 # or equivalent.
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
84 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
85 # Targets invoked by `make build,' in order:
86 # cleandir: cleans the tree.
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
87 # do-top-obj: creates the top level object directory.
02eeff4a »
2008-10-22 Defer the "make obj" step until after tools are built and installed.
88 # do-tools-obj: creates object directories for the host toolchain.
85a68ff2 »
2001-11-12 Major overhaul of src/tools and host toolchain. Summary of changes:
89 # do-tools: builds host toolchain.
02eeff4a »
2008-10-22 Defer the "make obj" step until after tools are built and installed.
90 # obj: creates object directories.
a7041f04 »
2001-09-22 Put do-make-tools before creating distrib-dirs (as binstall has to be
91 # do-distrib-dirs: creates the distribution directories.
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
92 # includes: installs include files.
be4d05d5 »
2003-07-05 update "targets invoked by make build" to match reality ...
93 # do-tools-compat: builds the "libnbcompat" library; needed for some
94 # random host tool programs in the source tree.
5b1b90c7 »
2005-01-01 correct the comment describing the build order
95 # do-lib-csu: builds and installs prerequisites from lib/csu.
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
96 # do-libgcc: builds and installs prerequisites from
97 # gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and
98 # gnu/lib/libgcc${LIBGCC_EXT}.
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
99 # do-libpcc: builds and install prerequisites from
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
100 # external/bsd/pcc/crtstuff (if necessary) and
101 # external/bsd/pcc/libpcc.
7c3b4fc6 »
2002-09-14 Add a do-lib-libc target which is processed after do-lib-csu. This
102 # do-lib-libc: builds and installs prerequisites from lib/libc.
b9e597fe »
2001-10-24 Re-add intermediate dependall/install targets (do-lib-csu, do-lib,
103 # do-lib: builds and installs prerequisites from lib.
5a84614f »
2009-09-04 build & install librumpdev_netsmb and librumpfs_smbfs components
104 # do-sys-rump-dev-lib: builds and installs prerequisites from sys/rump/dev/lib
66ba06c7 »
2008-10-16 add do-sys-rump-net-lib
105 # do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib
e279276e »
2010-06-10 descend into sys/rump/kern
106 # do-sys-rump-kern-lib: builds and installs prereq. from sys/rump/kern/lib
66ba06c7 »
2008-10-16 add do-sys-rump-net-lib
107 # do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib
c5a33965 »
2008-12-30 Build kernel modules the same time as the rest of the system libraries.
108 # do-sys-modules: builds and installs kernel modules (used by rump binaries)
770f6820 »
2002-11-12 MKDYNAMICROOT for a.out
109 # do-ld.so: builds and installs prerequisites from libexec/ld.*_so.
9f8b4a20 »
2008-10-27 - enable 32-bit library builds on amd64 and sparc64
110 # do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu
111 # if ${MKCOMPAT} != "no".
112 # do-compat-libgcc: builds and installs prerequisites from
113 # compat/gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and
114 # compat/gnu/lib/libgcc${LIBGCC_EXT} if ${MKCOMPAT} != "no".
115 # do-compat-lib-libc: builds and installs prerequisites from compat/lib/libc
116 # if ${MKCOMPAT} != "no".
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
117 # do-build: builds and installs the entire system.
3fa61037 »
2008-11-09 - retire MKXORG from public use
118 # do-x11: builds and installs X11 if ${MKX11} != "no"; either
119 # X11R7 from src/external/mit/xorg if ${X11FLAVOUR} == "Xorg"
120 # or X11R6 from src/x11
949edd31 »
2009-11-30 Support "extsrc", externally added programs and libraries. Users can …
121 # do-extsrc: builds and installs extsrc if ${MKEXTSRC} != "no".
ed6f193c »
2003-12-05 fix some comments
122 # do-obsolete: installs the obsolete sets (for the postinstall-* targets).
69d1160b »
2002-12-21 * Add two new (experimental) targets:
123 #
448982f9 »
1996-04-13 pull in bsd.own.mk earlier, to get configuration variables.
124
79154dd7 »
2001-10-31 * Always descend into "tools" regardless of USETOOLS setting. Instead,
125 .if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == ""
126 .MAKEFLAGS: -m ${.CURDIR}/share/mk
127 .endif
128
69d1160b »
2002-12-21 * Add two new (experimental) targets:
129 #
9d29a4f2 »
2002-02-28 If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
130 # If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
131 # not be the top level objdir, because "make obj" can happen in the *middle*
132 # of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set
133 # _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
134 #
9d29a4f2 »
2002-02-28 If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
135 _SRC_TOP_OBJ_=
136
79154dd7 »
2001-10-31 * Always descend into "tools" regardless of USETOOLS setting. Instead,
137 .include <bsd.own.mk>
a445358c »
1993-03-22 change "Id" to "Header" in rcsid, and noted why etc was not in subdirs
138
69d1160b »
2002-12-21 * Add two new (experimental) targets:
139 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
140 # Sanity check: make sure that "make build" is not invoked simultaneously
141 # with a standard recursive target.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
142 #
c2e4e203 »
1998-07-24 Fix the rebuild of libgcc:
143
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
144 .if make(build) || make(release) || make(snapshot)
145 .for targ in ${TARGETS:Nobj:Ncleandir}
146 .if make(${targ}) && !target(.BEGIN)
147 .BEGIN:
148 @echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.'
149 @false
150 .endif
151 .endfor
046845e8 »
1998-12-22 Add a 'NBUILDJOBS' variable which control the number of jobs started in
152 .endif
153
69d1160b »
2002-12-21 * Add two new (experimental) targets:
154 #
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
155 # _SUBDIR is used to set SUBDIR, after removing directories that have
156 # BUILD_${dir}=no, or that have no ${dir}/Makefile.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
157 #
cecfd4e9 »
2009-06-07 add crypto/external to the build.
158 _SUBDIR= tools lib include gnu external crypto/external bin games
159 _SUBDIR+= libexec sbin usr.bin
9f8b4a20 »
2008-10-27 - enable 32-bit library builds on amd64 and sparc64
160 _SUBDIR+= usr.sbin share rescue sys etc tests compat .WAIT distrib regress
e2c23145 »
2000-02-01 make sure include and include/sys are populated before starting to
161
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
162 .for dir in ${_SUBDIR}
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
163 .if "${dir}" == ".WAIT" \
164 || (${BUILD_${dir}:Uyes} != "no" && exists(${dir}/Makefile))
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
165 SUBDIR+= ${dir}
634e8c11 »
1996-08-10 allow builds to work if directory games is missing. Closes pr misc/19…
166 .endif
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
167 .endfor
c330d79b »
1993-07-04 allow toplevel makefile to descend into sys
168
72a7b887 »
1993-07-07 Make regress only if directory exists. It can be optional.
169 .if exists(regress)
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
170 regression-tests: .PHONY .MAKE
7e08344e »
1993-05-22 oops, clean that up a bit
171 @echo Running regression tests...
8993a70c »
2004-04-13 Convert lines of the form
172 ${MAKEDIRTARGET} regress regress
bc33876a »
1994-06-14 if not installing man pages, don't remake whatis db
173 .endif
7413e101 »
1994-02-07 add some new targets to DTRT when installing/building
174
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
175 .if ${MKUNPRIVED} != "no"
62b38927 »
2002-06-26 Fix what rev. 1.176 broke, in particular, doing a priv'd build into
176 NOPOSTINSTALL= # defined
177 .endif
178
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
179 afterinstall: .PHONY .MAKE
a0e7536b »
2001-11-24 Add a new target (infodir-meta:) that synthesizes the share/info/dir
180 .if ${MKMAN} != "no"
8993a70c »
2004-04-13 Convert lines of the form
181 ${MAKEDIRTARGET} share/man makedb
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
182 .endif
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
183 .if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
8993a70c »
2004-04-13 Convert lines of the form
184 ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta
a0e7536b »
2001-11-24 Add a new target (infodir-meta:) that synthesizes the share/info/dir
185 .endif
62b38927 »
2002-06-26 Fix what rev. 1.176 broke, in particular, doing a priv'd build into
186 .if !defined(NOPOSTINSTALL)
8993a70c »
2004-04-13 Convert lines of the form
187 ${MAKEDIRTARGET} . postinstall-check
52b04508 »
2002-06-19 In afterinstall, only run postinstall check if DESTDIR == / (or equiv…
188 .endif
6c495ae8 »
2002-04-29 move postinstall from afterinstall to separate "postinstall-check" ta…
189
c39ab168 »
2005-04-17 use usr.sbin/postinstall/postinstall instead of etc/postinstall
190 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall
dd966684 »
2012-08-15 Pull up the following revisions(s) (requested by martin in ticket #503):
191 _POSTINSTALL_ENV= \
192 AWK=${TOOL_AWK:Q} \
193 DB=${TOOL_DB:Q} \
194 HOST_SH=${HOST_SH:Q} \
195 MAKE=${MAKE:Q} \
196 PWD_MKDB=${TOOL_PWD_MKDB:Q} \
197 STAT=${TOOL_STAT:Q}
c39ab168 »
2005-04-17 use usr.sbin/postinstall/postinstall instead of etc/postinstall
198
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
199 postinstall-check: .PHONY
ff9a5bac »
2002-04-27 run "./etc/postinstall check" in afterinstall:
200 @echo " === Post installation checks ==="
dd966684 »
2012-08-15 Pull up the following revisions(s) (requested by martin in ticket #503):
201 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi
ff9a5bac »
2002-04-27 run "./etc/postinstall check" in afterinstall:
202 @echo " ================================"
203
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
204 postinstall-fix: .NOTMAIN .PHONY
84bb4a22 »
2002-04-29 we might as well provide a handy "postinstall-fix" target whilst here
205 @echo " === Post installation fixes ==="
dd966684 »
2012-08-15 Pull up the following revisions(s) (requested by martin in ticket #503):
206 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix
67848806 »
2003-07-17 Add postinstall-fix-obsolete (to invoke "postinstall fix obsolete" -
207 @echo " ==============================="
208
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
209 postinstall-fix-obsolete: .NOTMAIN .PHONY
67848806 »
2003-07-17 Add postinstall-fix-obsolete (to invoke "postinstall fix obsolete" -
210 @echo " === Removing obsolete files ==="
dd966684 »
2012-08-15 Pull up the following revisions(s) (requested by martin in ticket #503):
211 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
67848806 »
2003-07-17 Add postinstall-fix-obsolete (to invoke "postinstall fix obsolete" -
212 @echo " ==============================="
84bb4a22 »
2002-04-29 we might as well provide a handy "postinstall-fix" target whilst here
213
a0e7536b »
2001-11-24 Add a new target (infodir-meta:) that synthesizes the share/info/dir
214
69d1160b »
2002-12-21 * Add two new (experimental) targets:
215 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
216 # Targets (in order!) called by "make build".
69d1160b »
2002-12-21 * Add two new (experimental) targets:
217 #
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
218 .if defined(HAVE_GCC)
9d9a8fa0 »
2011-06-20 remove all the code that supported HAVE_GCC=3. mostly from chuq.
219 .if ${HAVE_GCC} == "4"
cbf327de »
2006-06-02 remove support for building (with) GCC 2.95. also:
220 LIBGCC_EXT=4
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
221 BUILD_CC_LIB_BASEDIR= gnu/lib
222 BUILD_CC_LIB_BASETARGET= gnu-lib
9d9a8fa0 »
2011-06-20 remove all the code that supported HAVE_GCC=3. mostly from chuq.
223 .else
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
224 LIBGCC_EXT=
225 BUILD_CC_LIB_BASEDIR= external/gpl3/gcc/lib
226 BUILD_CC_LIB_BASETARGET= external-gpl3-gcc-lib
f99f07d7 »
2003-07-25 maybe build gnu/lib/libgcc3 instead of libgcc[2]
227 .endif
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
228 .endif
a3028a2d »
1999-02-11 If updating from a system which has a /usr/pkg/info/dir, move that to
229
ca06aeb7 »
2001-11-15 Warn when "make build" is started with USE_NEW_TOOLCHAIN on a platfor…
230 BUILDTARGETS+= check-tools
0f2c0bee »
2003-07-18 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was d…
231 .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
232 BUILDTARGETS+= cleandir
a7041f04 »
2001-09-22 Put do-make-tools before creating distrib-dirs (as binstall has to be
233 .endif
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
234 .if ${MKOBJDIRS} != "no"
235 BUILDTARGETS+= do-top-obj
236 .endif
237 .if ${USETOOLS} == "yes" # {
c2c3d6f0 »
2001-11-13 Reverse the order of "make cleandir" and "make obj" back to the way they
238 .if ${MKOBJDIRS} != "no"
02eeff4a »
2008-10-22 Defer the "make obj" step until after tools are built and installed.
239 BUILDTARGETS+= do-tools-obj
c2c3d6f0 »
2001-11-13 Reverse the order of "make cleandir" and "make obj" back to the way they
240 .endif
85a68ff2 »
2001-11-12 Major overhaul of src/tools and host toolchain. Summary of changes:
241 BUILDTARGETS+= do-tools
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
242 .endif # USETOOLS # }
02eeff4a »
2008-10-22 Defer the "make obj" step until after tools are built and installed.
243 .if ${MKOBJDIRS} != "no"
244 BUILDTARGETS+= obj
245 .endif
9a9e77c5 »
2009-04-23 Make clean_METALOG in distrib/sets early in the build, to ensure that
246 BUILDTARGETS+= clean_METALOG
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
247 .if !defined(NODISTRIBDIRS)
248 BUILDTARGETS+= do-distrib-dirs
a7041f04 »
2001-09-22 Put do-make-tools before creating distrib-dirs (as binstall has to be
249 .endif
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
250 .if !defined(NOINCLUDES)
251 BUILDTARGETS+= includes
a7041f04 »
2001-09-22 Put do-make-tools before creating distrib-dirs (as binstall has to be
252 .endif
b042d914 »
2003-04-04 Always build tools/compat, so that random host helper programs
253 BUILDTARGETS+= do-tools-compat
8988beb1 »
2004-02-15 Be more gcc like in the way we deal with libgcc so that sh3/hppa mill…
254 BUILDTARGETS+= do-lib-csu
f0e2d907 »
2003-06-26 build libgcc early, if at all
255 .if ${MKGCC} != "no"
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
256 BUILDTARGETS+= do-libgcc
f0e2d907 »
2003-06-26 build libgcc early, if at all
257 .endif
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
258 .if ${MKPCC} != "no"
259 BUILDTARGET+= do-libpcc
260 .endif
8988beb1 »
2004-02-15 Be more gcc like in the way we deal with libgcc so that sh3/hppa mill…
261 BUILDTARGETS+= do-lib-libc
c1daecd1 »
2010-12-03 Remove the do-external-lib and do-gnu-lib targets, along with
262 BUILDTARGETS+= do-lib
d86dca0d »
2011-06-15 build evbppc modules in 3 different flavours:
263 .if ${MKKMOD} != "no"
c5a33965 »
2008-12-30 Build kernel modules the same time as the rest of the system libraries.
264 BUILDTARGETS+= do-sys-modules
265 .endif
e279276e »
2010-06-10 descend into sys/rump/kern
266 BUILDTARGETS+= do-sys-rump-dev-lib do-sys-rump-fs-lib
267 BUILDTARGETS+= do-sys-rump-kern-lib do-sys-rump-net-lib
9f8b4a20 »
2008-10-27 - enable 32-bit library builds on amd64 and sparc64
268 .if ${MKCOMPAT} != "no"
269 BUILDTARGETS+= do-compat-lib-csu
270 BUILDTARGETS+= do-compat-libgcc
271 BUILDTARGETS+= do-compat-lib-libc
272 .endif
5767649a »
2004-01-04 only build do-lib-libdes if ${MKCRYPTO}!=no
273 BUILDTARGETS+= do-ld.so
274 BUILDTARGETS+= do-build
3fa61037 »
2008-11-09 - retire MKXORG from public use
275 .if ${MKX11} != "no"
19423fd0 »
2004-01-08 Implement do-x11, to run "make build" in ./x11/
276 BUILDTARGETS+= do-x11
277 .endif
949edd31 »
2009-11-30 Support "extsrc", externally added programs and libraries. Users can …
278 .if ${MKEXTSRC} != "no"
279 BUILDTARGETS+= do-extsrc
280 .endif
431157ae »
2003-02-22 all:
281 BUILDTARGETS+= do-obsolete
a7041f04 »
2001-09-22 Put do-make-tools before creating distrib-dirs (as binstall has to be
282
69d1160b »
2002-12-21 * Add two new (experimental) targets:
283 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
284 # Enforce proper ordering of some rules.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
285 #
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
286
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
287 .ORDER: ${BUILDTARGETS}
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
288 includes-lib: .PHONY includes-include includes-sys
289 includes-gnu: .PHONY includes-lib
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
290
69d1160b »
2002-12-21 * Add two new (experimental) targets:
291 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
292 # Build the system and install into DESTDIR.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
293 #
ae121f5a »
2001-08-14 The final step -- hook src/tools into the main build. If USE_NEW_TOOL…
294
a9a889a0 »
2002-12-02 show the start time at the end of the build as well.
295 START_TIME!= date
296
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
297 build: .PHONY .MAKE
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
298 .if defined(BUILD_DONE)
299 @echo "Build already installed into ${DESTDIR}"
300 .else
a9a889a0 »
2002-12-02 show the start time at the end of the build as well.
301 @echo "Build started at: ${START_TIME}"
5d1bfa2f »
2001-10-30 Work around parallelism lossage, because .ORDER doesn't work yet
302 .for tgt in ${BUILDTARGETS}
8993a70c »
2004-04-13 Convert lines of the form
303 ${MAKEDIRTARGET} . ${tgt}
5d1bfa2f »
2001-10-30 Work around parallelism lossage, because .ORDER doesn't work yet
304 .endfor
8993a70c »
2004-04-13 Convert lines of the form
305 ${MAKEDIRTARGET} etc install-etc-release
a9a889a0 »
2002-12-02 show the start time at the end of the build as well.
306 @echo "Build started at: ${START_TIME}"
63eda998 »
2002-05-02 Use printf rather than echo -n, since the former works on all POSIX s…
307 @printf "Build finished at: " && date
3acd0902 »
1998-10-16 Do not build libgcc 3 times.
308 .endif
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
309
69d1160b »
2002-12-21 * Add two new (experimental) targets:
310 #
fa272779 »
2001-11-25 Add a wrapper for the "distribution" target, similar to the wrapper
311 # Build a full distribution, but not a release (i.e. no sets into
69d1160b »
2002-12-21 * Add two new (experimental) targets:
312 # ${RELEASEDIR}). "buildworld" enforces a build to ${DESTDIR} != /
313 #
fa272779 »
2001-11-25 Add a wrapper for the "distribution" target, similar to the wrapper
314
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
315 distribution buildworld: .PHONY .MAKE
364a1330 »
2002-12-26 fix DESTDIR checks if !defined(DESTDIR)
316 .if make(buildworld) && \
317 (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
69d1160b »
2002-12-21 * Add two new (experimental) targets:
318 @echo "Won't make ${.TARGET} with DESTDIR=/"
319 @false
320 .endif
8993a70c »
2004-04-13 Convert lines of the form
321 ${MAKEDIRTARGET} . build NOPOSTINSTALL=1
322 ${MAKEDIRTARGET} etc distribution INSTALL_DONE=1
12ac6dcf »
2002-07-10 After running the body of the "distribution" target, do a "checkflist…
323 .if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
8993a70c »
2004-04-13 Convert lines of the form
324 ${MAKEDIRTARGET} . postinstall-fix-obsolete
325 ${MAKEDIRTARGET} distrib/sets checkflist
12ac6dcf »
2002-07-10 After running the body of the "distribution" target, do a "checkflist…
326 .endif
092e7688 »
2002-12-02 improve previous; show times at end of distribution/release/snapshot …
327 @echo "make ${.TARGET} started at: ${START_TIME}"
cf09c558 »
2002-08-30 print date when make {distribution,release,snapshot} finished
328 @printf "make ${.TARGET} finished at: " && date
fa272779 »
2001-11-25 Add a wrapper for the "distribution" target, similar to the wrapper
329
69d1160b »
2002-12-21 * Add two new (experimental) targets:
330 #
331 # Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/')
332 # If installing to /, ensures that the host's operating system is NetBSD and
333 # the host's `uname -m` == ${MACHINE}.
334 #
335
336 HOST_UNAME_S!= uname -s
337 HOST_UNAME_M!= uname -m
338
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
339 installworld: .PHONY .MAKE
364a1330 »
2002-12-26 fix DESTDIR checks if !defined(DESTDIR)
340 .if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
69d1160b »
2002-12-21 * Add two new (experimental) targets:
341 @echo "Can't make ${.TARGET} to DESTDIR=/"
342 @false
343 .endif
344 .if !defined(INSTALLWORLDDIR) || \
345 ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/"
346 .if (${HOST_UNAME_S} != "NetBSD")
347 @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/"
348 @false
349 .endif
350 .if (${HOST_UNAME_M} != ${MACHINE})
351 @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/"
352 @false
353 .endif
354 .endif
8993a70c »
2004-04-13 Convert lines of the form
355 ${MAKEDIRTARGET} distrib/sets installsets \
3fcd33a0 »
2011-01-29 Pass down INSTALLSETS variable to installsets target. Use :Q to escape
356 INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=${INSTALLSETS:Q}
8993a70c »
2004-04-13 Convert lines of the form
357 ${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR}
69d1160b »
2002-12-21 * Add two new (experimental) targets:
358 @echo "make ${.TARGET} started at: ${START_TIME}"
359 @printf "make ${.TARGET} finished at: " && date
a020b259 »
2011-08-08 add an installmodules=<dir> command to build.sh
360
361 #
362 # Install modules from $DESTDIR to $INSTALLMODULESDIR
363 #
364 installmodules: .PHONY .MAKE
365 .if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
366 @echo "Can't make ${.TARGET} to DESTDIR=/"
367 @false
368 .endif
369 .if !defined(INSTALLMODULESDIR) || \
370 ${INSTALLMODULESDIR} == "" || ${INSTALLMODULESDIR} == "/"
371 .if (${HOST_UNAME_S} != "NetBSD")
372 @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLMODULESDIR=/"
373 @false
374 .endif
375 .if (${HOST_UNAME_M} != ${MACHINE})
376 @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLMODULESDIR=/"
377 @false
378 .endif
379 .endif
c28ecc98 »
2011-08-08 Fix typo that prevented installmodules from working with -U
380 ${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:U/}
a020b259 »
2011-08-08 add an installmodules=<dir> command to build.sh
381 @echo "make ${.TARGET} started at: ${START_TIME}"
382 @printf "make ${.TARGET} finished at: " && date
69d1160b »
2002-12-21 * Add two new (experimental) targets:
383
384 #
b31e270e »
2003-05-10 Add "sourcesets" argument/target, which builds source sets into
385 # Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
ece364c8 »
2003-01-26 - Add "sets" top-level Makefile target and build.sh operation.
386 #
387
0934a2e5 »
2006-01-04 Add a new "syspkgs" target, which simply chains to the "syspkgs" target
388 .for tgt in sets sourcesets syspkgs
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
389 ${tgt}: .PHONY .MAKE
8993a70c »
2004-04-13 Convert lines of the form
390 ${MAKEDIRTARGET} distrib/sets ${tgt}
b31e270e »
2003-05-10 Add "sourcesets" argument/target, which builds source sets into
391 .endfor
ece364c8 »
2003-01-26 - Add "sets" top-level Makefile target and build.sh operation.
392
393 #
4903b14f »
2005-08-25 Modify "release" to invoke "make distribution" instead of "make build",
394 # Build a release or snapshot (implies "make distribution"). Note that
12ac6dcf »
2002-07-10 After running the body of the "distribution" target, do a "checkflist…
395 # in this case, the set lists will be checked before the tar files
396 # are made.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
397 #
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
398
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
399 release snapshot: .PHONY .MAKE
4903b14f »
2005-08-25 Modify "release" to invoke "make distribution" instead of "make build",
400 ${MAKEDIRTARGET} . distribution
401 ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1
092e7688 »
2002-12-02 improve previous; show times at end of distribution/release/snapshot …
402 @echo "make ${.TARGET} started at: ${START_TIME}"
cf09c558 »
2002-08-30 print date when make {distribution,release,snapshot} finished
403 @printf "make ${.TARGET} finished at: " && date
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
404
69d1160b »
2002-12-21 * Add two new (experimental) targets:
405 #
468bd5d1 »
2006-01-28 * Add an "iso-image" target in the top level Makefile,
406 # Create a CD-ROM image.
407 #
408
409 iso-image: .PHONY
4418e0c7 »
2007-03-06 Add an iso_image target (iso-image as a target name doesn't play well…
410 ${MAKEDIRTARGET} distrib iso_image
468bd5d1 »
2006-01-28 * Add an "iso-image" target in the top level Makefile,
411 ${MAKEDIRTARGET} etc iso-image
412 @echo "make ${.TARGET} started at: ${START_TIME}"
413 @printf "make ${.TARGET} finished at: " && date
414
935a4703 »
2007-08-30 Add an iso-image-source option which does the same thing as iso-image…
415 iso-image-source: .PHONY
416 ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true
417 ${MAKEDIRTARGET} etc iso-image
418 @echo "make ${.TARGET} started at: ${START_TIME}"
419 @printf "make ${.TARGET} finished at: " && date
420
468bd5d1 »
2006-01-28 * Add an "iso-image" target in the top level Makefile,
421 #
3cfc0c7d »
2012-01-22 Add "live-image" and "install-image" target support to build.sh.
422 # Create bootable live images.
423 #
424
425 live-image: .PHONY
426 ${MAKEDIRTARGET} etc live-image
427 @echo "make ${.TARGET} started at: ${START_TIME}"
428 @printf "make ${.TARGET} finished at: " && date
429
430 #
431 # Create bootable installation images.
432 #
433
434 install-image: .PHONY
435 ${MAKEDIRTARGET} etc install-image
436 @echo "make ${.TARGET} started at: ${START_TIME}"
437 @printf "make ${.TARGET} finished at: " && date
438
439 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
440 # Special components of the "make build" process.
69d1160b »
2002-12-21 * Add two new (experimental) targets:
441 #
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
442
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
443 check-tools: .PHONY
b97d9655 »
2004-01-03 Consistently check ${TOOLCHAIN_MISSING} against "no".
444 .if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN)
b645c300 »
2002-09-17 * Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
445 @echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.'
446 @echo '*** May result in a failed build or corrupt binaries!'
447 .elif defined(EXTERNAL_TOOLCHAIN)
448 @echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.'
ca06aeb7 »
2001-11-15 Warn when "make build" is started with USE_NEW_TOOLCHAIN on a platfor…
449 .endif
c74b5018 »
2002-05-02 Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN
450 .if defined(NBUILDJOBS)
451 @echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!'
452 .endif
ca06aeb7 »
2001-11-15 Warn when "make build" is started with USE_NEW_TOOLCHAIN on a platfor…
453
9a9e77c5 »
2009-04-23 Make clean_METALOG in distrib/sets early in the build, to ensure that
454 # Delete or sanitise a leftover METALOG from a previous build.
455 clean_METALOG: .PHONY .MAKE
456 .if ${MKUPDATE} != "no"
457 ${MAKEDIRTARGET} distrib/sets clean_METALOG
458 .endif
459
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
460 do-distrib-dirs: .PHONY .MAKE
bb154af6 »
2001-10-31 Add back logic which forces DESTDIR=/ for the distrib-dirs rule if it…
461 .if !defined(DESTDIR) || ${DESTDIR} == ""
8993a70c »
2004-04-13 Convert lines of the form
462 ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/
bb154af6 »
2001-10-31 Add back logic which forces DESTDIR=/ for the distrib-dirs rule if it…
463 .else
8993a70c »
2004-04-13 Convert lines of the form
464 ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR}
bb154af6 »
2001-10-31 Add back logic which forces DESTDIR=/ for the distrib-dirs rule if it…
465 .endif
c76af6d1 »
2001-06-10 fix PR#12832: split `make build' up into these steps (from new the
466
22059920 »
2002-11-29 Add do-{target} aliases for: cleandir obj includes
467 .for targ in cleandir obj includes
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
468 do-${targ}: .PHONY ${targ}
22059920 »
2002-11-29 Add do-{target} aliases for: cleandir obj includes
469 @true
470 .endfor
471
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
472 .if defined(HAVE_GCC)
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
473 .if ${USE_COMPILERCRTSTUFF} == "yes"
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
474 BUILD_CC_LIB= ${BUILD_CC_LIB_BASEDIR}/crtstuff${LIBGCC_EXT}
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
475 .endif
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
476 BUILD_CC_LIB+= ${BUILD_CC_LIB_BASEDIR}/libgcc${LIBGCC_EXT}
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
477 .elif defined(HAVE_PCC)
478 BUILD_CC_LIB+= external/bsd/pcc/crtstuff
479 BUILD_CC_LIB+= external/bsd/pcc/libpcc
480 .endif
481
c1daecd1 »
2010-12-03 Remove the do-external-lib and do-gnu-lib targets, along with
482 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/kern/lib sys/rump/net/lib sys/modules
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
483 do-${dir:S/\//-/g}: .PHONY .MAKE
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
484 .for targ in dependall install
8993a70c »
2004-04-13 Convert lines of the form
485 ${MAKEDIRTARGET} ${dir} ${targ}
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
486 .endfor
487 .endfor
b9e597fe »
2001-10-24 Re-add intermediate dependall/install targets (do-lib-csu, do-lib,
488
05d74dd6 »
2009-12-13 adjust the do-compat-* rules now that src/compat/lib and friends no l…
489 .if ${MKCOMPAT} != "no"
490 COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc
491 .for dir in ${COMPAT_SUBDIR_LIST}
492 do-compat-${dir:S/\//-/g}: .PHONY .MAKE
c1daecd1 »
2010-12-03 Remove the do-external-lib and do-gnu-lib targets, along with
493 .for targ in dependall install
05d74dd6 »
2009-12-13 adjust the do-compat-* rules now that src/compat/lib and friends no l…
494 ${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}"
495 .endfor
496 .endfor
497 .endif
498
0a512a66 »
2008-10-25 Add a do-top-obj target, which builds the top-level obj directory.
499 do-top-obj: .PHONY .MAKE
500 ${MAKEDIRTARGET} . obj NOSUBDIR=
501
02eeff4a »
2008-10-22 Defer the "make obj" step until after tools are built and installed.
502 do-tools-obj: .PHONY .MAKE
503 ${MAKEDIRTARGET} tools obj
504
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
505 do-libgcc: .PHONY .MAKE
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
506 .if defined(HAVE_GCC)
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
507 .if ${MKGCC} != "no"
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
508 .if ${USE_COMPILERCRTSTUFF} == "yes"
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
509 ${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT}
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
510 .endif
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
511 ${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT}
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
512 .endif
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
513 .endif
514
9f8b4a20 »
2008-10-27 - enable 32-bit library builds on amd64 and sparc64
515 do-compat-libgcc: .PHONY .MAKE
516 .if defined(HAVE_GCC)
517 .if ${MKGCC} != "no"
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
518 .if ${USE_COMPILERCRTSTUFF} == "yes"
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
519 ${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT}
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
520 .endif
555b5d07 »
2011-06-22 fix the parts that build libgcc/crtstuff, etc., for GCC 4.5.
521 ${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT}
9f8b4a20 »
2008-10-27 - enable 32-bit library builds on amd64 and sparc64
522 .endif
523 .endif
524
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
525 do-libpcc: .PHONY .MAKE
526 .if defined(HAVE_PCC)
527 .if ${MKPCC} != "no"
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
528 .if ${USE_COMPILERCRTSTUFF} == "yes"
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
529 ${MAKEDIRTARGET} . do-pcc-lib-crtstuff
4a04f51f »
2010-11-28 Centralise USE_COMPILERCRTSTUFF.
530 .endif
9ec880fb »
2008-08-24 Build pcc and pcc-based crtstuff if using pcc compiler.
531 ${MAKEDIRTARGET} . do-pcc-lib-libpcc
532 .endif
533 .endif
d44e01bf »
2007-09-07 Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necess…
534
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
535 do-ld.so: .PHONY .MAKE
1d3f1b54 »
2002-08-26 add "do-ld.elf_so" target, which builds & installs libexec/ld.elf_so.
536 .for targ in dependall install
8993a70c »
2004-04-13 Convert lines of the form
537 ${MAKEDIRTARGET} libexec/ld.elf_so ${targ}
1d3f1b54 »
2002-08-26 add "do-ld.elf_so" target, which builds & installs libexec/ld.elf_so.
538 .endfor
539
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
540 do-build: .PHONY .MAKE
c46e0aaf »
2001-11-13 Rather than build in `tools' and `lib' twice, build `tools' and `lib'
541 .for targ in dependall install
8993a70c »
2004-04-13 Convert lines of the form
542 ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no
c46e0aaf »
2001-11-13 Rather than build in `tools' and `lib' twice, build `tools' and `lib'
543 .endfor
7413e101 »
1994-02-07 add some new targets to DTRT when installing/building
544
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
545 do-x11: .PHONY .MAKE
3fa61037 »
2008-11-09 - retire MKXORG from public use
546 .if ${MKX11} != "no"
547 .if ${X11FLAVOUR} == "Xorg"
f55cb913 »
2008-07-29 if MKXORG != no, use external/mit/xorg subdir instead of x11 subdir for
548 ${MAKEDIRTARGET} external/mit/xorg build
3fa61037 »
2008-11-09 - retire MKXORG from public use
549 .else
8993a70c »
2004-04-13 Convert lines of the form
550 ${MAKEDIRTARGET} x11 build
3fa61037 »
2008-11-09 - retire MKXORG from public use
551 .endif
a9a2c16f »
2008-08-28 Improve support for MKXORG!=no to enable builds into external/mit/xorg.
552 .else
3fa61037 »
2008-11-09 - retire MKXORG from public use
553 @echo "MKX11 is not enabled"
a9a2c16f »
2008-08-28 Improve support for MKXORG!=no to enable builds into external/mit/xorg.
554 @false
f55cb913 »
2008-07-29 if MKXORG != no, use external/mit/xorg subdir instead of x11 subdir for
555 .endif
19423fd0 »
2004-01-08 Implement do-x11, to run "make build" in ./x11/
556
949edd31 »
2009-11-30 Support "extsrc", externally added programs and libraries. Users can …
557 do-extsrc: .PHONY .MAKE
558 .if ${MKEXTSRC} != "no"
559 ${MAKEDIRTARGET} extsrc build
560 .else
561 @echo "MKEXTSRC is not enabled"
562 @false
563 .endif
564
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
565 do-obsolete: .PHONY .MAKE
8993a70c »
2004-04-13 Convert lines of the form
566 ${MAKEDIRTARGET} etc install-obsolete-lists
431157ae »
2003-02-22 all:
567
69d1160b »
2002-12-21 * Add two new (experimental) targets:
568 #
c210e5b2 »
2001-10-19 Overhaul and simplify the top level Makefile, and add some sanity che…
569 # Speedup stubs for some subtrees that don't need to run these rules.
570 # (Tells <bsd.subdir.mk> not to recurse for them.)
69d1160b »
2002-12-21 * Add two new (experimental) targets:
571 #
f03f6b19 »
1999-02-16 Add release and snapshot targets. (They do the same thing.)
572
c3b2720b »
2012-05-09 Pull up following revision(s) (requested by veego in ticket #238):
573 .for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
574 includes-${dir}: .PHONY
85a68ff2 »
2001-11-12 Major overhaul of src/tools and host toolchain. Summary of changes:
575 @true
576 .endfor
577 .for dir in etc distrib regress
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
578 install-${dir}: .PHONY
85a68ff2 »
2001-11-12 Major overhaul of src/tools and host toolchain. Summary of changes:
579 @true
580 .endfor
581
69d1160b »
2002-12-21 * Add two new (experimental) targets:
582 #
85a68ff2 »
2001-11-12 Major overhaul of src/tools and host toolchain. Summary of changes:
583 # XXX this needs to change when distrib Makefiles are recursion compliant
69d1160b »
2002-12-21 * Add two new (experimental) targets:
584 # XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
585 #
f1173c14 »
2004-01-27 Apply the .PHONY attribute where appropriate.
586 dependall-distrib depend-distrib all-distrib: .PHONY
6f15fa26 »
2001-10-12 Use @true instead of @${TRUE} in includes-foo targets, since there is no
587 @true
8626600a »
2001-09-21 - Remove the include of Makefile.tools; this will be done elsewhere.
588
919514d2 »
2003-07-10 Rename a large chunk of the make(1) variables which refer to a
589 .include <bsd.sys.mk>
4fc1f4e6 »
2001-11-11 Create an objdir here for storage of timestamps, build-wide data, and so
590 .include <bsd.obj.mk>
e496a611 »
2003-07-06 Add "params" target, to display the value of various variables.
591 .include <bsd.kernobj.mk>
79154dd7 »
2001-10-31 * Always descend into "tools" regardless of USETOOLS setting. Instead,
592 .include <bsd.subdir.mk>
45e22728 »
2001-10-29 Add rules for generating plaintext and HTML versions of the "BUILDING"
593
e496a611 »
2003-07-06 Add "params" target, to display the value of various variables.
594 #
595 # Display current make(1) parameters
596 #
e636f082 »
2006-01-21 Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes
597 params: .PHONY .MAKE
8993a70c »
2004-04-13 Convert lines of the form
598 ${MAKEDIRTARGET} etc params
Something went wrong with that request. Please try again.