head 1.338; access; symbols netbsd-10-0-RELEASE:1.335.2.1 netbsd-10-0-RC6:1.335.2.1 netbsd-10-0-RC5:1.335.2.1 netbsd-10-0-RC4:1.335.2.1 netbsd-10-0-RC3:1.335.2.1 netbsd-10-0-RC2:1.335.2.1 netbsd-10-0-RC1:1.335 netbsd-10:1.335.0.2 netbsd-10-base:1.335 netbsd-9-3-RELEASE:1.327.2.2 cjep_sun2x-base1:1.333 cjep_sun2x:1.333.0.4 cjep_sun2x-base:1.333 cjep_staticlib_x-base1:1.333 netbsd-9-2-RELEASE:1.327.2.2 cjep_staticlib_x:1.333.0.2 cjep_staticlib_x-base:1.333 netbsd-9-1-RELEASE:1.327.2.2 phil-wifi-20200421:1.331 phil-wifi-20200411:1.331 is-mlppp:1.331.0.2 is-mlppp-base:1.331 phil-wifi-20200406:1.331 netbsd-8-2-RELEASE:1.318 netbsd-9-0-RELEASE:1.327.2.2 netbsd-9-0-RC2:1.327.2.2 netbsd-9-0-RC1:1.327.2.2 phil-wifi-20191119:1.331 netbsd-9:1.327.0.2 netbsd-9-base:1.327 phil-wifi-20190609:1.326 netbsd-8-1-RELEASE:1.318 netbsd-8-1-RC1:1.318 pgoyette-compat-merge-20190127:1.321.2.3 pgoyette-compat-20190127:1.325 pgoyette-compat-20190118:1.325 pgoyette-compat-1226:1.325 pgoyette-compat-1126:1.325 pgoyette-compat-1020:1.324 pgoyette-compat-0930:1.324 pgoyette-compat-0906:1.324 netbsd-7-2-RELEASE:1.309.2.2 pgoyette-compat-0728:1.324 netbsd-8-0-RELEASE:1.318 phil-wifi:1.324.0.2 phil-wifi-base:1.324 pgoyette-compat-0625:1.324 netbsd-8-0-RC2:1.318 pgoyette-compat-0521:1.324 pgoyette-compat-0502:1.322 pgoyette-compat-0422:1.322 netbsd-8-0-RC1:1.318 pgoyette-compat-0415:1.322 pgoyette-compat-0407:1.322 pgoyette-compat-0330:1.322 pgoyette-compat-0322:1.322 pgoyette-compat-0315:1.322 netbsd-7-1-2-RELEASE:1.309.2.2 pgoyette-compat:1.321.0.2 pgoyette-compat-base:1.321 netbsd-7-1-1-RELEASE:1.309.2.2 matt-nb8-mediatek:1.318.0.8 matt-nb8-mediatek-base:1.318 perseant-stdc-iso10646:1.318.0.6 perseant-stdc-iso10646-base:1.318 netbsd-8:1.318.0.4 netbsd-8-base:1.318 prg-localcount2-base3:1.318 prg-localcount2-base2:1.318 prg-localcount2-base1:1.318 prg-localcount2:1.318.0.2 prg-localcount2-base:1.318 pgoyette-localcount-20170426:1.318 bouyer-socketcan-base1:1.318 pgoyette-localcount-20170320:1.317 netbsd-7-1:1.309.2.2.0.6 netbsd-7-1-RELEASE:1.309.2.2 netbsd-7-1-RC2:1.309.2.2 netbsd-7-nhusb-base-20170116:1.309.2.2 bouyer-socketcan:1.317.0.4 bouyer-socketcan-base:1.317 pgoyette-localcount-20170107:1.317 netbsd-7-1-RC1:1.309.2.2 pgoyette-localcount-20161104:1.317 netbsd-7-0-2-RELEASE:1.309.2.2 localcount-20160914:1.317 netbsd-7-nhusb:1.309.2.2.0.4 netbsd-7-nhusb-base:1.309.2.2 pgoyette-localcount-20160806:1.317 pgoyette-localcount-20160726:1.317 pgoyette-localcount:1.317.0.2 pgoyette-localcount-base:1.317 netbsd-7-0-1-RELEASE:1.309.2.2 netbsd-7-0:1.309.2.2.0.2 netbsd-7-0-RELEASE:1.309.2.2 netbsd-7-0-RC3:1.309.2.2 netbsd-7-0-RC2:1.309.2.2 netbsd-7-0-RC1:1.309.2.2 netbsd-5-2-3-RELEASE:1.262.2.5 netbsd-5-1-5-RELEASE:1.262.2.3 netbsd-6-0-6-RELEASE:1.291.2.2 netbsd-6-1-5-RELEASE:1.291.2.2 netbsd-7:1.309.0.2 netbsd-7-base:1.309 yamt-pagecache-base9:1.305 yamt-pagecache-tag8:1.289.2.4 netbsd-6-1-4-RELEASE:1.291.2.2 netbsd-6-0-5-RELEASE:1.291.2.2 tls-earlyentropy:1.305.0.2 tls-earlyentropy-base:1.309 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.305 riastradh-drm2-base3:1.305 netbsd-6-1-3-RELEASE:1.291.2.2 netbsd-6-0-4-RELEASE:1.291.2.2 netbsd-5-2-2-RELEASE:1.262.2.5 netbsd-5-1-4-RELEASE:1.262.2.3 netbsd-6-1-2-RELEASE:1.291.2.2 netbsd-6-0-3-RELEASE:1.291.2.2 netbsd-5-2-1-RELEASE:1.262.2.5 netbsd-5-1-3-RELEASE:1.262.2.3 netbsd-6-1-1-RELEASE:1.291.2.2 riastradh-drm2-base2:1.303 riastradh-drm2-base1:1.303 riastradh-drm2:1.303.0.2 riastradh-drm2-base:1.303 netbsd-6-1:1.291.2.2.0.6 netbsd-6-0-2-RELEASE:1.291.2.2 netbsd-6-1-RELEASE:1.291.2.2 khorben-n900:1.302.0.6 netbsd-6-1-RC4:1.291.2.2 netbsd-6-1-RC3:1.291.2.2 agc-symver:1.302.0.4 agc-symver-base:1.302 netbsd-6-1-RC2:1.291.2.2 netbsd-6-1-RC1:1.291.2.2 yamt-pagecache-base8:1.302 netbsd-5-2:1.262.2.5.0.2 netbsd-6-0-1-RELEASE:1.291.2.2 yamt-pagecache-base7:1.302 netbsd-5-2-RELEASE:1.262.2.5 netbsd-5-2-RC1:1.262.2.5 matt-nb6-plus-nbase:1.291.2.2 yamt-pagecache-base6:1.299 netbsd-6-0:1.291.2.2.0.4 netbsd-6-0-RELEASE:1.291.2.2 netbsd-6-0-RC2:1.291.2.2 tls-maxphys:1.299.0.2 tls-maxphys-base:1.309 matt-nb6-plus:1.291.2.2.0.2 matt-nb6-plus-base:1.291.2.2 netbsd-6-0-RC1:1.291.2.2 yamt-pagecache-base5:1.292 yamt-pagecache-base4:1.291 netbsd-6:1.291.0.2 netbsd-6-base:1.291 netbsd-5-1-2-RELEASE:1.262.2.3 netbsd-5-1-1-RELEASE:1.262.2.3 yamt-pagecache-base3:1.289 yamt-pagecache-base2:1.289 yamt-pagecache:1.289.0.2 yamt-pagecache-base:1.289 cherry-xenmp:1.282.0.2 cherry-xenmp-base:1.282 bouyer-quota2-nbase:1.282 bouyer-quota2:1.281.0.2 bouyer-quota2-base:1.282 matt-mips64-premerge-20101231:1.281 matt-nb5-mips64-premerge-20101231:1.262.2.3.4.1 matt-nb5-pq3:1.262.2.3.0.8 matt-nb5-pq3-base:1.262.2.3 netbsd-5-1:1.262.2.3.0.6 netbsd-5-1-RELEASE:1.262.2.3 netbsd-5-1-RC4:1.262.2.3 matt-nb5-mips64-k15:1.262.2.3.4.1 netbsd-5-1-RC3:1.262.2.3 netbsd-5-1-RC2:1.262.2.3 netbsd-5-1-RC1:1.262.2.3 netbsd-5-0-2-RELEASE:1.262.2.3 matt-nb5-mips64-premerge-20091211:1.262.2.3 matt-premerge-20091211:1.276 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.262.2.3 matt-nb4-mips64-k7-u2a-k9b:1.262.2.3 matt-nb5-mips64-u1-k1-k5:1.262.2.3 matt-nb5-mips64:1.262.2.3.0.4 netbsd-5-0-1-RELEASE:1.262.2.3 jym-xensuspend-nbase:1.270 netbsd-5-0:1.262.2.3.0.2 netbsd-5-0-RELEASE:1.262.2.3 netbsd-5-0-RC4:1.262.2.3 netbsd-5-0-RC3:1.262.2.2 netbsd-5-0-RC2:1.262.2.2 jym-xensuspend:1.266.0.2 jym-xensuspend-base:1.270 netbsd-5-0-RC1:1.262.2.2 netbsd-5:1.262.0.2 netbsd-5-base:1.262 matt-mips64-base2:1.260 matt-mips64:1.247.0.6 netbsd-4-0-1-RELEASE:1.246.2.3 wrstuden-revivesa-base-3:1.257 wrstuden-revivesa-base-2:1.257 wrstuden-fixsa-newbase:1.246.2.3 wrstuden-revivesa-base-1:1.253 yamt-pf42-base4:1.253 yamt-pf42-base3:1.253 hpcarm-cleanup-nbase:1.252 yamt-pf42-baseX:1.252 yamt-pf42-base2:1.252 wrstuden-revivesa:1.252.0.4 wrstuden-revivesa-base:1.253 yamt-pf42:1.252.0.2 yamt-pf42-base:1.252 keiichi-mipv6:1.251.0.4 keiichi-mipv6-base:1.252 matt-armv6-nbase:1.252 matt-armv6-prevmlocking:1.247.4.1 wrstuden-fixsa-base-1:1.246.2.3 netbsd-4-0:1.246.2.3.0.2 netbsd-4-0-RELEASE:1.246.2.3 cube-autoconf:1.251.0.2 cube-autoconf-base:1.251 netbsd-4-0-RC5:1.246.2.3 netbsd-4-0-RC4:1.246.2.3 netbsd-4-0-RC3:1.246.2.2 netbsd-4-0-RC2:1.246.2.2 netbsd-4-0-RC1:1.246.2.1 matt-armv6:1.247.0.4 matt-armv6-base:1.251 matt-mips64-base:1.247 hpcarm-cleanup:1.247.0.2 hpcarm-cleanup-base:1.251 netbsd-3-1-1-RELEASE:1.238.2.4 netbsd-3-0-3-RELEASE:1.238.2.4 wrstuden-fixsa:1.246.2.1.0.2 wrstuden-fixsa-base:1.246.2.3 abandoned-netbsd-4-base:1.245 abandoned-netbsd-4:1.245.0.2 netbsd-3-1:1.238.2.4.0.4 netbsd-3-1-RELEASE:1.238.2.4 netbsd-3-0-2-RELEASE:1.238.2.4 netbsd-3-1-RC4:1.238.2.4 netbsd-3-1-RC3:1.238.2.4 netbsd-3-1-RC2:1.238.2.4 netbsd-3-1-RC1:1.238.2.4 netbsd-4:1.246.0.2 netbsd-4-base:1.246 netbsd-3-0-1-RELEASE:1.238.2.4 netbsd-3-0:1.238.2.4.0.2 netbsd-3-0-RELEASE:1.238.2.4 netbsd-3-0-RC6:1.238.2.4 netbsd-3-0-RC5:1.238.2.4 netbsd-3-0-RC4:1.238.2.4 netbsd-3-0-RC3:1.238.2.4 netbsd-3-0-RC2:1.238.2.4 netbsd-3-0-RC1:1.238.2.4 netbsd-2-0-3-RELEASE:1.231 netbsd-2-1:1.231.0.6 netbsd-2-1-RELEASE:1.231 netbsd-2-1-RC6:1.231 netbsd-2-1-RC5:1.231 netbsd-2-1-RC4:1.231 netbsd-2-1-RC3:1.231 netbsd-2-1-RC2:1.231 netbsd-2-1-RC1:1.231 netbsd-2-0-2-RELEASE:1.231 netbsd-3:1.238.0.2 netbsd-3-base:1.238 netbsd-2-0-1-RELEASE:1.231 netbsd-2:1.231.0.4 netbsd-2-base:1.231 netbsd-2-0-RELEASE:1.231 netbsd-2-0-RC5:1.231 netbsd-2-0-RC4:1.231 netbsd-2-0-RC3:1.231 netbsd-2-0-RC2:1.231 netbsd-2-0-RC1:1.231 netbsd-2-0:1.231.0.2 netbsd-2-0-base:1.231 netbsd-1-6-PATCH002-RELEASE:1.175.2.3 netbsd-1-6-PATCH002:1.175.2.3 netbsd-1-6-PATCH002-RC4:1.175.2.3 netbsd-1-6-PATCH002-RC3:1.175.2.3 netbsd-1-6-PATCH002-RC2:1.175.2.3 netbsd-1-6-PATCH002-RC1:1.175.2.3 netbsd-1-6-PATCH001:1.175.2.3 netbsd-1-6-PATCH001-RELEASE:1.175.2.3 netbsd-1-6-PATCH001-RC3:1.175.2.3 netbsd-1-6-PATCH001-RC2:1.175.2.3 netbsd-1-6-PATCH001-RC1:1.175.2.3 fvdl_fs64_base:1.194 netbsd-1-6-RELEASE:1.175 netbsd-1-6-RC3:1.175 netbsd-1-6-RC2:1.175 netbsd-1-6-RC1:1.175 netbsd-1-6:1.175.0.2 netbsd-1-6-base:1.175 netbsd-1-5-PATCH003:1.118.2.2 netbsd-1-5-PATCH002:1.118.2.2 netbsd-1-5-PATCH001:1.118.2.2 netbsd-1-5-RELEASE:1.118.2.2 netbsd-1-5-BETA2:1.118.2.2 netbsd-1-5-BETA:1.118.2.2 netbsd-1-4-PATCH003:1.95.2.2 netbsd-1-5-ALPHA2:1.118 netbsd-1-5:1.118.0.2 netbsd-1-5-base:1.118 minoura-xpg4dl:1.117.0.2 minoura-xpg4dl-base:1.117 netbsd-1-4-PATCH002:1.95 wrstuden-devbsize-19991221:1.104 wrstuden-devbsize:1.99.0.4 wrstuden-devbsize-base:1.104 comdex-fall-1999:1.99.0.2 comdex-fall-1999-base:1.99 netbsd-1-4-PATCH001:1.95 netbsd-1-4-RELEASE:1.95 netbsd-1-4:1.95.0.2 netbsd-1-4-base:1.95 netbsd-1-3-PATCH003:1.42.2.3 netbsd-1-3-PATCH003-CANDIDATE2:1.42.2.3 netbsd-1-3-PATCH003-CANDIDATE1:1.42.2.3 netbsd-1-3-PATCH003-CANDIDATE0:1.42.2.3 netbsd-1-3-PATCH002:1.42.2.3 netbsd-1-3-PATCH001:1.42.2.3 netbsd-1-3-RELEASE:1.42.2.1 netbsd-1-3-BETA:1.42.2.1 netbsd-1-3:1.42.0.2 netbsd-1-3-base:1.42 cjs-build-against-obj-dir:1.41.0.2 netbsd-1-2-PATCH001:1.35 netbsd-1-2-RELEASE:1.35 netbsd-1-2-BETA:1.35 netbsd-1-2-base:1.35 netbsd-1-2:1.35.0.4 netbsd-1-1-PATCH001:1.25 netbsd-1-1-RELEASE:1.25 netbsd-1-1:1.25.0.2 netbsd-1-1-base:1.25 netbsd-1-0-PATCH06:1.19 netbsd-1-0-PATCH05:1.19 netbsd-1-0-PATCH04:1.19 netbsd-1-0-PATCH03:1.19 netbsd-1-0-PATCH02:1.19 netbsd-1-0-PATCH1:1.19 netbsd-1-0-PATCH0:1.19 netbsd-1-0-RELEASE:1.19 netbsd-1-0:1.19.0.2 netbsd-1-0-base:1.19 netbsd-0-9-RELEASE:1.13 netbsd-0-9-BETA:1.13 netbsd-0-9-ALPHA2:1.13 netbsd-0-9-ALPHA:1.13 netbsd-0-9:1.13.0.2 netbsd-0-9-base:1.13 netbsd-0-8:1.6 netbsd-alpha-1:1.6 patchkit-0-2-2:1.2 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @# @; 1.338 date 2023.09.08.12.01.56; author riastradh; state Exp; branches; next 1.337; commitid PGlA9foegiJSIXDE; 1.337 date 2023.06.11.10.43.51; author lukem; state Exp; branches; next 1.336; commitid dLx41wijlXPs9wsE; 1.336 date 2023.06.02.20.48.09; author lukem; state Exp; branches; next 1.335; commitid mULMQ7NDuJpIMprE; 1.335 date 2022.08.21.07.10.03; author lukem; state Exp; branches 1.335.2.1; next 1.334; commitid 0Ie3kKNxYR5noIQD; 1.334 date 2022.03.19.14.35.13; author rillig; state Exp; branches; next 1.333; commitid L7MJYYaduM2fQPwD; 1.333 date 2020.10.29.20.26.24; author uwe; state Exp; branches; next 1.332; commitid KsLDPsyzRNMw4QtC; 1.332 date 2020.05.15.16.34.44; author christos; state Exp; branches; next 1.331; commitid zQHfqcVAJV6N9m8C; 1.331 date 2019.08.27.22.48.54; author kamil; state Exp; branches; next 1.330; commitid uUvLMLPlxrqiEIAB; 1.330 date 2019.08.26.04.49.45; author kamil; state Exp; branches; next 1.329; commitid NRKfmiYZqH1BGuAB; 1.329 date 2019.08.25.06.06.48; author kamil; state Exp; branches; next 1.328; commitid v82d4SMehqSb9nAB; 1.328 date 2019.08.23.06.38.27; author kamil; state Exp; branches; next 1.327; commitid jLF34ShAn66Fo7AB; 1.327 date 2019.06.14.09.12.42; author martin; state Exp; branches 1.327.2.1; next 1.326; commitid fckgOPumNt2Av8rB; 1.326 date 2019.06.06.14.51.43; author martin; state Exp; branches; next 1.325; commitid jvChW5UEimD5E8qB; 1.325 date 2018.11.11.07.43.35; author maya; state Exp; branches; next 1.324; commitid dizaw3Tfe6E9UuZA; 1.324 date 2018.05.02.07.34.44; author pgoyette; state Exp; branches 1.324.2.1; next 1.323; commitid 88hqTnoMLgIf5HAA; 1.323 date 2018.05.02.07.19.58; author pgoyette; state dead; branches; next 1.322; commitid o3kRuNRzl9360HAA; 1.322 date 2018.03.13.03.06.28; author mrg; state Exp; branches; next 1.321; commitid uEqv8pl1kt8ScfuA; 1.321 date 2017.12.06.19.34.00; author uwe; state Exp; branches 1.321.2.1; next 1.320; commitid swAWscsIRnM2NRhA; 1.320 date 2017.12.06.19.27.56; author uwe; state Exp; branches; next 1.319; commitid 17aeX6TYioGXKRhA; 1.319 date 2017.10.04.23.54.33; author christos; state Exp; branches; next 1.318; commitid yIWN3OHwA7vQfN9A; 1.318 date 2017.04.11.14.04.15; author christos; state Exp; branches; next 1.317; commitid fVRhaEMnlYsbE7Nz; 1.317 date 2016.01.14.02.51.25; author christos; state Exp; branches 1.317.2.1 1.317.4.1; next 1.316; commitid 1GUTx4f9bVh9uQQy; 1.316 date 2015.07.23.08.03.25; author mrg; state Exp; branches; next 1.315; commitid nfGa2DVpEPUUPnuy; 1.315 date 2015.06.27.16.21.07; author matt; state Exp; branches; next 1.314; commitid cOr7vQoBy7zfq5ry; 1.314 date 2015.06.24.22.20.24; author matt; state Exp; branches; next 1.313; commitid DfokHb46UCq7vJqy; 1.313 date 2015.05.03.15.13.13; author martin; state Exp; branches; next 1.312; commitid oV4isr6uYsPJO0ky; 1.312 date 2015.01.07.20.42.01; author joerg; state Exp; branches; next 1.311; commitid 9eZDQ7ot6fy5m85y; 1.311 date 2014.11.05.08.19.17; author snj; state Exp; branches; next 1.310; commitid fqlBWdtVE8evhYWx; 1.310 date 2014.08.18.07.52.40; author plunky; state Exp; branches; next 1.309; commitid SjAuvSZ2aGcpFOMx; 1.309 date 2014.06.16.09.06.26; author apb; state Exp; branches 1.309.2.1; next 1.308; commitid NsOrmonozB9p6JEx; 1.308 date 2014.06.16.09.04.43; author apb; state Exp; branches; next 1.307; commitid RxojZmNDo6d46JEx; 1.307 date 2014.06.16.07.11.52; author apb; state Exp; branches; next 1.306; commitid sMIAO2U8KyEbtIEx; 1.306 date 2014.06.13.01.17.45; author mrg; state Exp; branches; next 1.305; commitid B85aQFinfdyyBiEx; 1.305 date 2014.02.26.09.54.32; author mrg; state Exp; branches 1.305.2.1; next 1.304; commitid tog8WsTJJZVqTAqx; 1.304 date 2014.01.16.01.15.32; author christos; state Exp; branches; next 1.303; commitid eohV5AOa1lR3mhlx; 1.303 date 2013.07.16.09.52.21; author joerg; state Exp; branches; next 1.302; commitid b9cl7hQaevMM7GXw; 1.302 date 2012.12.03.13.53.29; author apb; state Exp; branches; next 1.301; 1.301 date 2012.11.15.23.51.53; author joerg; state Exp; branches; next 1.300; 1.300 date 2012.11.04.11.02.11; author apb; state Exp; branches; next 1.299; 1.299 date 2012.08.17.16.22.27; author joerg; state Exp; branches 1.299.2.1; next 1.298; 1.298 date 2012.08.15.12.50.12; author apb; state Exp; branches; next 1.297; 1.297 date 2012.08.14.13.12.15; author apb; state Exp; branches; next 1.296; 1.296 date 2012.08.14.13.04.09; author apb; state Exp; branches; next 1.295; 1.295 date 2012.08.14.12.37.41; author apb; state Exp; branches; next 1.294; 1.294 date 2012.08.14.12.19.16; author apb; state Exp; branches; next 1.293; 1.293 date 2012.08.08.14.00.31; author christos; state Exp; branches; next 1.292; 1.292 date 2012.04.21.08.28.00; author veego; state Exp; branches; next 1.291; 1.291 date 2012.01.24.17.37.34; author abs; state Exp; branches 1.291.2.1; next 1.290; 1.290 date 2012.01.22.03.53.32; author tsutsui; state Exp; branches; next 1.289; 1.289 date 2011.09.09.14.23.37; author apb; state Exp; branches 1.289.2.1; next 1.288; 1.288 date 2011.08.08.23.18.36; author jmcneill; state Exp; branches; next 1.287; 1.287 date 2011.08.08.22.15.42; author jmcneill; state Exp; branches; next 1.286; 1.286 date 2011.06.29.02.05.24; author mrg; state Exp; branches; next 1.285; 1.285 date 2011.06.22.05.13.20; author mrg; state Exp; branches; next 1.284; 1.284 date 2011.06.20.06.52.36; author mrg; state Exp; branches; next 1.283; 1.283 date 2011.06.15.09.45.58; author mrg; state Exp; branches; next 1.282; 1.282 date 2011.01.29.16.56.26; author jym; state Exp; branches 1.282.2.1; next 1.281; 1.281 date 2010.12.03.21.38.46; author plunky; state Exp; branches 1.281.2.1; next 1.280; 1.280 date 2010.11.28.18.40.54; author skrll; state Exp; branches; next 1.279; 1.279 date 2010.11.22.08.35.44; author plunky; state Exp; branches; next 1.278; 1.278 date 2010.07.06.05.59.50; author mrg; state Exp; branches; next 1.277; 1.277 date 2010.06.10.22.41.41; author pooka; state Exp; branches; next 1.276; 1.276 date 2009.12.13.09.29.27; author mrg; state Exp; branches; next 1.275; 1.275 date 2009.11.30.16.13.22; author uebayasi; state Exp; branches; next 1.274; 1.274 date 2009.09.04.17.21.33; author pooka; state Exp; branches; next 1.273; 1.273 date 2009.08.30.01.49.42; author dyoung; state Exp; branches; next 1.272; 1.272 date 2009.07.03.22.20.27; author pooka; state Exp; branches; next 1.271; 1.271 date 2009.06.07.22.46.12; author christos; state Exp; branches; next 1.270; 1.270 date 2009.04.23.09.43.49; author apb; state Exp; branches; next 1.269; 1.269 date 2009.04.15.10.18.34; author tsutsui; state Exp; branches; next 1.268; 1.268 date 2009.02.25.22.28.36; author sketch; state Exp; branches; next 1.267; 1.267 date 2009.02.25.20.38.30; author sketch; state Exp; branches; next 1.266; 1.266 date 2009.01.19.07.19.09; author jmmv; state Exp; branches 1.266.2.1; next 1.265; 1.265 date 2008.12.30.22.18.11; author pooka; state Exp; branches; next 1.264; 1.264 date 2008.12.05.19.02.54; author cube; state Exp; branches; next 1.263; 1.263 date 2008.11.09.23.02.28; author mrg; state Exp; branches; next 1.262; 1.262 date 2008.10.27.22.32.51; author mrg; state Exp; branches 1.262.2.1; next 1.261; 1.261 date 2008.10.25.15.03.44; author apb; state Exp; branches; next 1.260; 1.260 date 2008.10.22.17.37.16; author apb; state Exp; branches; next 1.259; 1.259 date 2008.10.16.09.43.12; author pooka; state Exp; branches; next 1.258; 1.258 date 2008.10.03.18.09.48; author jnemeth; state Exp; branches; next 1.257; 1.257 date 2008.08.28.07.21.49; author lukem; state Exp; branches; next 1.256; 1.256 date 2008.08.24.05.56.20; author gmcgarry; state Exp; branches; next 1.255; 1.255 date 2008.07.29.13.17.40; author pooka; state Exp; branches; next 1.254; 1.254 date 2008.07.29.04.49.43; author mrg; state Exp; branches; next 1.253; 1.253 date 2008.05.22.14.13.58; author lukem; state Exp; branches; next 1.252; 1.252 date 2008.03.18.04.24.38; author lukem; state Exp; branches 1.252.2.1 1.252.4.1; next 1.251; 1.251 date 2007.11.12.15.06.45; author jmmv; state Exp; branches 1.251.4.1; next 1.250; 1.250 date 2007.10.07.16.35.21; author pavel; state Exp; branches; next 1.249; 1.249 date 2007.09.07.04.20.44; author lukem; state Exp; branches; next 1.248; 1.248 date 2007.08.30.05.30.02; author jnemeth; state Exp; branches; next 1.247; 1.247 date 2007.03.06.21.56.47; author bouyer; state Exp; branches 1.247.4.1; next 1.246; 1.246 date 2006.09.07.03.51.44; author dbj; state Exp; branches 1.246.2.1; next 1.245; 1.245 date 2006.06.02.22.16.18; author mrg; state Exp; branches; next 1.244; 1.244 date 2006.04.07.19.38.58; author mrg; state Exp; branches; next 1.243; 1.243 date 2006.01.28.21.34.08; author apb; state Exp; branches; next 1.242; 1.242 date 2006.01.21.19.01.15; author dsl; state Exp; branches; next 1.241; 1.241 date 2006.01.04.15.30.02; author apb; state Exp; branches; next 1.240; 1.240 date 2005.08.25.02.04.39; author lukem; state Exp; branches; next 1.239; 1.239 date 2005.04.17.15.18.34; author lukem; state Exp; branches; next 1.238; 1.238 date 2005.01.01.10.32.39; author lukem; state Exp; branches 1.238.2.1; next 1.237; 1.237 date 2004.09.02.02.02.38; author tacha; state Exp; branches; next 1.236; 1.236 date 2004.08.28.00.18.38; author thorpej; state Exp; branches; next 1.235; 1.235 date 2004.07.30.07.05.11; author lukem; state Exp; branches; next 1.234; 1.234 date 2004.05.17.07.00.16; author lukem; state Exp; branches; next 1.233; 1.233 date 2004.05.16.10.27.21; author lukem; state Exp; branches; next 1.232; 1.232 date 2004.04.13.12.43.12; author lukem; state Exp; branches; next 1.231; 1.231 date 2004.02.15.19.52.27; author skrll; state Exp; branches; next 1.230; 1.230 date 2004.02.06.23.12.56; author lukem; state Exp; branches; next 1.229; 1.229 date 2004.01.27.04.22.25; author lukem; state Exp; branches; next 1.228; 1.228 date 2004.01.27.01.45.07; author lukem; state Exp; branches; next 1.227; 1.227 date 2004.01.08.07.01.06; author lukem; state Exp; branches; next 1.226; 1.226 date 2004.01.06.07.25.40; author lukem; state Exp; branches; next 1.225; 1.225 date 2004.01.04.13.30.09; author lukem; state Exp; branches; next 1.224; 1.224 date 2004.01.04.00.27.15; author lukem; state Exp; branches; next 1.223; 1.223 date 2004.01.03.14.04.27; author lukem; state Exp; branches; next 1.222; 1.222 date 2003.12.05.22.33.01; author lukem; state Exp; branches; next 1.221; 1.221 date 2003.07.26.17.10.25; author salo; state Exp; branches; next 1.220; 1.220 date 2003.07.25.19.20.47; author mrg; state Exp; branches; next 1.219; 1.219 date 2003.07.25.00.26.35; author lukem; state Exp; branches; next 1.218; 1.218 date 2003.07.24.21.54.07; author fvdl; state Exp; branches; next 1.217; 1.217 date 2003.07.21.02.01.42; author lukem; state Exp; branches; next 1.216; 1.216 date 2003.07.20.13.08.43; author lukem; state Exp; branches; next 1.215; 1.215 date 2003.07.20.13.03.47; author wiz; state Exp; branches; next 1.214; 1.214 date 2003.07.18.08.26.01; author lukem; state Exp; branches; next 1.213; 1.213 date 2003.07.18.02.15.17; author lukem; state Exp; branches; next 1.212; 1.212 date 2003.07.17.07.46.11; author lukem; state Exp; branches; next 1.211; 1.211 date 2003.07.10.10.33.58; author lukem; state Exp; branches; next 1.210; 1.210 date 2003.07.08.04.25.21; author lukem; state Exp; branches; next 1.209; 1.209 date 2003.07.06.13.04.01; author lukem; state Exp; branches; next 1.208; 1.208 date 2003.07.05.04.32.58; author lukem; state Exp; branches; next 1.207; 1.207 date 2003.06.26.17.46.56; author drochner; state Exp; branches; next 1.206; 1.206 date 2003.05.10.07.12.37; author lukem; state Exp; branches; next 1.205; 1.205 date 2003.04.18.19.14.39; author thorpej; state Exp; branches; next 1.204; 1.204 date 2003.04.17.00.33.44; author thorpej; state Exp; branches; next 1.203; 1.203 date 2003.04.04.01.16.28; author thorpej; state Exp; branches; next 1.202; 1.202 date 2003.04.04.01.06.00; author thorpej; state Exp; branches; next 1.201; 1.201 date 2003.04.03.00.41.50; author mycroft; state Exp; branches; next 1.200; 1.200 date 2003.02.22.03.20.45; author lukem; state Exp; branches; next 1.199; 1.199 date 2003.01.26.06.19.12; author lukem; state Exp; branches; next 1.198; 1.198 date 2003.01.06.17.40.18; author lukem; state Exp; branches; next 1.197; 1.197 date 2003.01.04.15.50.32; author lukem; state Exp; branches; next 1.196; 1.196 date 2003.01.03.15.34.30; author lukem; state Exp; branches; next 1.195; 1.195 date 2003.01.02.23.15.27; author atatat; state Exp; branches; next 1.194; 1.194 date 2002.12.26.12.01.48; author lukem; state Exp; branches; next 1.193; 1.193 date 2002.12.21.16.43.33; author lukem; state Exp; branches; next 1.192; 1.192 date 2002.12.02.08.27.03; author lukem; state Exp; branches; next 1.191; 1.191 date 2002.12.02.08.23.41; author lukem; state Exp; branches; next 1.190; 1.190 date 2002.11.29.23.48.37; author lukem; state Exp; branches; next 1.189; 1.189 date 2002.11.12.14.33.48; author itohy; state Exp; branches; next 1.188; 1.188 date 2002.09.21.08.19.28; author lukem; state Exp; branches; next 1.187; 1.187 date 2002.09.17.23.18.25; author thorpej; state Exp; branches; next 1.186; 1.186 date 2002.09.14.16.46.24; author thorpej; state Exp; branches; next 1.185; 1.185 date 2002.08.30.06.30.33; author lukem; state Exp; branches; next 1.184; 1.184 date 2002.08.26.04.40.20; author lukem; state Exp; branches; next 1.183; 1.183 date 2002.08.22.02.23.23; author lukem; state Exp; branches; next 1.182; 1.182 date 2002.07.10.23.44.54; author uwe; state Exp; branches; next 1.181; 1.181 date 2002.07.10.18.55.20; author thorpej; state Exp; branches; next 1.180; 1.180 date 2002.06.26.16.28.18; author drochner; state Exp; branches; next 1.179; 1.179 date 2002.06.26.00.10.16; author thorpej; state Exp; branches; next 1.178; 1.178 date 2002.06.20.08.21.59; author enami; state Exp; branches; next 1.177; 1.177 date 2002.06.20.08.21.23; author enami; state Exp; branches; next 1.176; 1.176 date 2002.06.19.00.17.11; author lukem; state Exp; branches; next 1.175; 1.175 date 2002.05.07.02.11.07; author lukem; state Exp; branches 1.175.2.1; next 1.174; 1.174 date 2002.05.03.08.59.14; author lukem; state Exp; branches; next 1.173; 1.173 date 2002.05.02.22.13.30; author sommerfeld; state Exp; branches; next 1.172; 1.172 date 2002.05.02.16.36.21; author bjh21; state Exp; branches; next 1.171; 1.171 date 2002.04.29.12.14.36; author lukem; state Exp; branches; next 1.170; 1.170 date 2002.04.29.12.09.13; author lukem; state Exp; branches; next 1.169; 1.169 date 2002.04.27.08.11.53; author lukem; state Exp; branches; next 1.168; 1.168 date 2002.04.11.19.31.06; author tv; state Exp; branches; next 1.167; 1.167 date 2002.04.11.19.08.13; author tv; state Exp; branches; next 1.166; 1.166 date 2002.03.11.07.49.24; author simonb; state Exp; branches; next 1.165; 1.165 date 2002.03.05.16.17.06; author pk; state Exp; branches; next 1.164; 1.164 date 2002.03.01.06.02.41; author jmc; state Exp; branches; next 1.163; 1.163 date 2002.02.28.02.22.59; author tv; state Exp; branches; next 1.162; 1.162 date 2002.02.14.19.17.32; author tv; state Exp; branches; next 1.161; 1.161 date 2002.02.08.16.11.18; author lukem; state Exp; branches; next 1.160; 1.160 date 2001.11.25.18.31.12; author thorpej; state Exp; branches; next 1.159; 1.159 date 2001.11.24.21.53.16; author perry; state Exp; branches; next 1.158; 1.158 date 2001.11.20.17.05.02; author tv; state Exp; branches; next 1.157; 1.157 date 2001.11.20.15.20.28; author thorpej; state Exp; branches; next 1.156; 1.156 date 2001.11.15.19.32.19; author tv; state Exp; branches; next 1.155; 1.155 date 2001.11.13.17.47.16; author tv; state Exp; branches; next 1.154; 1.154 date 2001.11.13.15.56.28; author tv; state Exp; branches; next 1.153; 1.153 date 2001.11.13.03.17.12; author tv; state Exp; branches; next 1.152; 1.152 date 2001.11.12.23.16.17; author tv; state Exp; branches; next 1.151; 1.151 date 2001.11.11.22.40.42; author tv; state Exp; branches; next 1.150; 1.150 date 2001.11.01.16.34.21; author tv; state Exp; branches; next 1.149; 1.149 date 2001.11.01.16.30.53; author tv; state Exp; branches; next 1.148; 1.148 date 2001.11.01.15.48.39; author jmc; state Exp; branches; next 1.147; 1.147 date 2001.10.31.19.41.54; author jmc; state Exp; branches; next 1.146; 1.146 date 2001.10.31.01.20.09; author tv; state Exp; branches; next 1.145; 1.145 date 2001.10.30.17.59.10; author tv; state Exp; branches; next 1.144; 1.144 date 2001.10.29.19.48.35; author tv; state Exp; branches; next 1.143; 1.143 date 2001.10.24.03.21.20; author tv; state Exp; branches; next 1.142; 1.142 date 2001.10.24.02.45.34; author tv; state Exp; branches; next 1.141; 1.141 date 2001.10.24.01.07.13; author tv; state Exp; branches; next 1.140; 1.140 date 2001.10.21.08.03.01; author jmc; state Exp; branches; next 1.139; 1.139 date 2001.10.19.14.17.52; author tv; state Exp; branches; next 1.138; 1.138 date 2001.10.19.03.19.01; author tv; state Exp; branches; next 1.137; 1.137 date 2001.10.19.02.35.45; author tv; state Exp; branches; next 1.136; 1.136 date 2001.10.12.21.05.08; author nathanw; state Exp; branches; next 1.135; 1.135 date 2001.10.10.17.20.15; author jwise; state Exp; branches; next 1.134; 1.134 date 2001.10.08.23.42.21; author tv; state Exp; branches; next 1.133; 1.133 date 2001.10.04.17.59.49; author tv; state Exp; branches; next 1.132; 1.132 date 2001.10.01.17.19.17; author mason; state Exp; branches; next 1.131; 1.131 date 2001.09.22.12.30.13; author tv; state Exp; branches; next 1.130; 1.130 date 2001.09.22.05.37.17; author tv; state Exp; branches; next 1.129; 1.129 date 2001.09.21.21.01.13; author tv; state Exp; branches; next 1.128; 1.128 date 2001.08.17.15.05.50; author thorpej; state Exp; branches; next 1.127; 1.127 date 2001.08.14.14.04.35; author tv; state Exp; branches; next 1.126; 1.126 date 2001.08.02.06.13.33; author enami; state Exp; branches; next 1.125; 1.125 date 2001.06.10.13.15.29; author mrg; state Exp; branches; next 1.124; 1.124 date 2001.06.10.13.12.32; author mrg; state Exp; branches; next 1.123; 1.123 date 2001.06.10.13.02.54; author mrg; state Exp; branches; next 1.122; 1.122 date 2001.05.08.02.04.08; author sommerfeld; state Exp; branches; next 1.121; 1.121 date 2000.10.07.17.18.17; author deberg; state Exp; branches; next 1.120; 1.120 date 2000.08.19.22.09.08; author fredb; state Exp; branches; next 1.119; 1.119 date 2000.08.05.10.17.35; author toddpw; state Exp; branches; next 1.118; 1.118 date 2000.06.20.06.00.24; author thorpej; state Exp; branches 1.118.2.1; next 1.117; 1.117 date 2000.05.21.07.33.05; author mrg; state Exp; branches 1.117.2.1; next 1.116; 1.116 date 2000.05.18.23.16.28; author thorpej; state Exp; branches; next 1.115; 1.115 date 2000.05.09.00.17.10; author thorpej; state Exp; branches; next 1.114; 1.114 date 2000.05.06.07.53.53; author sjg; state Exp; branches; next 1.113; 1.113 date 2000.04.11.08.21.41; author mrg; state Exp; branches; next 1.112; 1.112 date 2000.04.10.14.47.22; author mrg; state Exp; branches; next 1.111; 1.111 date 2000.04.09.02.09.49; author simonb; state Exp; branches; next 1.110; 1.110 date 2000.03.11.00.10.20; author jlam; state Exp; branches; next 1.109; 1.109 date 2000.03.08.00.50.05; author cjs; state Exp; branches; next 1.108; 1.108 date 2000.02.29.21.54.03; author erh; state Exp; branches; next 1.107; 1.107 date 2000.02.26.17.42.53; author mycroft; state Exp; branches; next 1.106; 1.106 date 2000.02.19.17.49.49; author aidan; state Exp; branches; next 1.105; 1.105 date 2000.02.01.01.22.05; author assar; state Exp; branches; next 1.104; 1.104 date 99.12.05.22.53.53; author simonb; state Exp; branches; next 1.103; 1.103 date 99.12.04.03.52.28; author simonb; state Exp; branches; next 1.102; 1.102 date 99.12.03.15.09.01; author simonb; state Exp; branches; next 1.101; 1.101 date 99.11.30.17.48.11; author sommerfeld; state Exp; branches; next 1.100; 1.100 date 99.11.30.16.16.41; author sommerfeld; state Exp; branches; next 1.99; 1.99 date 99.09.14.01.32.43; author perry; state Exp; branches 1.99.4.1; next 1.98; 1.98 date 99.07.12.21.53.52; author thorpej; state Exp; branches; next 1.97; 1.97 date 99.05.27.21.03.31; author christos; state Exp; branches; next 1.96; 1.96 date 99.04.25.19.13.05; author scottr; state Exp; branches; next 1.95; 1.95 date 99.04.01.02.49.12; author cjs; state Exp; branches 1.95.2.1; next 1.94; 1.94 date 99.03.10.19.18.59; author scottr; state Exp; branches; next 1.93; 1.93 date 99.03.10.19.10.14; author scottr; state Exp; branches; next 1.92; 1.92 date 99.02.20.09.10.41; author scottr; state Exp; branches; next 1.91; 1.91 date 99.02.19.23.22.14; author scottr; state Exp; branches; next 1.90; 1.90 date 99.02.18.14.49.59; author mellon; state Exp; branches; next 1.89; 1.89 date 99.02.18.03.19.44; author mellon; state Exp; branches; next 1.88; 1.88 date 99.02.17.08.00.52; author scottr; state Exp; branches; next 1.87; 1.87 date 99.02.16.03.37.26; author cjs; state Exp; branches; next 1.86; 1.86 date 99.02.13.02.54.17; author lukem; state Exp; branches; next 1.85; 1.85 date 99.02.11.17.56.46; author tv; state Exp; branches; next 1.84; 1.84 date 99.02.11.14.49.49; author tv; state Exp; branches; next 1.83; 1.83 date 99.02.09.19.52.50; author christos; state Exp; branches; next 1.82; 1.82 date 99.01.29.05.42.35; author scottr; state Exp; branches; next 1.81; 1.81 date 99.01.28.15.36.48; author scottr; state Exp; branches; next 1.80; 1.80 date 99.01.24.19.18.54; author scottr; state Exp; branches; next 1.79; 1.79 date 99.01.24.07.42.34; author scottr; state Exp; branches; next 1.78; 1.78 date 99.01.05.07.09.58; author scottr; state Exp; branches; next 1.77; 1.77 date 99.01.03.22.17.19; author cjs; state Exp; branches; next 1.76; 1.76 date 98.12.22.11.21.09; author bouyer; state Exp; branches; next 1.75; 1.75 date 98.12.12.23.44.22; author tv; state Exp; branches; next 1.74; 1.74 date 98.12.07.01.42.34; author simonb; state Exp; branches; next 1.73; 1.73 date 98.12.02.22.53.06; author thorpej; state Exp; branches; next 1.72; 1.72 date 98.10.18.20.41.39; author thorpej; state Exp; branches; next 1.71; 1.71 date 98.10.16.05.05.09; author mycroft; state Exp; branches; next 1.70; 1.70 date 98.10.15.02.50.00; author mycroft; state Exp; branches; next 1.69; 1.69 date 98.10.07.02.35.38; author tv; state Exp; branches; next 1.68; 1.68 date 98.09.29.06.59.53; author lukem; state Exp; branches; next 1.67; 1.67 date 98.09.27.18.18.42; author christos; state Exp; branches; next 1.66; 1.66 date 98.08.27.14.11.45; author tv; state Exp; branches; next 1.65; 1.65 date 98.08.22.22.06.23; author tv; state Exp; branches; next 1.64; 1.64 date 98.08.22.22.05.00; author tv; state Exp; branches; next 1.63; 1.63 date 98.08.16.17.25.30; author tv; state Exp; branches; next 1.62; 1.62 date 98.07.28.18.55.41; author thorpej; state Exp; branches; next 1.61; 1.61 date 98.07.26.17.28.58; author mycroft; state Exp; branches; next 1.60; 1.60 date 98.07.25.10.35.53; author mycroft; state Exp; branches; next 1.59; 1.59 date 98.07.24.16.51.33; author tv; state Exp; branches; next 1.58; 1.58 date 98.07.24.16.48.47; author tv; state Exp; branches; next 1.57; 1.57 date 98.07.21.23.13.13; author perry; state Exp; branches; next 1.56; 1.56 date 98.05.27.06.38.37; author scottr; state Exp; branches; next 1.55; 1.55 date 98.05.21.11.53.49; author tv; state Exp; branches; next 1.54; 1.54 date 98.05.21.01.40.19; author thorpej; state Exp; branches; next 1.53; 1.53 date 98.05.12.01.59.54; author thorpej; state Exp; branches; next 1.52; 1.52 date 98.05.10.10.37.59; author mycroft; state Exp; branches; next 1.51; 1.51 date 98.04.15.13.44.55; author tv; state Exp; branches; next 1.50; 1.50 date 98.02.20.01.39.38; author mellon; state Exp; branches; next 1.49; 1.49 date 98.02.16.10.07.31; author lukem; state Exp; branches; next 1.48; 1.48 date 98.02.16.07.57.19; author lukem; state Exp; branches; next 1.47; 1.47 date 98.02.15.00.33.03; author thorpej; state Exp; branches; next 1.46; 1.46 date 98.02.10.04.38.13; author thorpej; state Exp; branches; next 1.45; 1.45 date 98.02.06.23.11.57; author perry; state Exp; branches; next 1.44; 1.44 date 98.01.30.07.10.31; author mellon; state Exp; branches; next 1.43; 1.43 date 97.10.27.18.06.39; author thorpej; state Exp; branches; next 1.42; 1.42 date 97.05.31.21.21.13; author cjs; state Exp; branches 1.42.2.1; next 1.41; 1.41 date 97.05.29.14.23.02; author cjs; state Exp; branches; next 1.40; 1.40 date 97.05.26.03.55.19; author cjs; state Exp; branches; next 1.39; 1.39 date 97.03.24.22.22.15; author christos; state Exp; branches; next 1.38; 1.38 date 97.03.10.23.46.12; author cgd; state Exp; branches; next 1.37; 1.37 date 96.11.27.02.04.06; author cjs; state Exp; branches; next 1.36; 1.36 date 96.08.10.23.29.00; author explorer; state Exp; branches; next 1.35; 1.35 date 96.04.25.01.09.33; author jtc; state Exp; branches; next 1.34; 1.34 date 96.04.25.01.02.27; author jtc; state Exp; branches; next 1.33; 1.33 date 96.04.25.00.47.25; author jtc; state Exp; branches; next 1.32; 1.32 date 96.04.13.06.36.15; author cgd; state Exp; branches; next 1.31; 1.31 date 96.03.18.09.55.25; author tls; state Exp; branches; next 1.30; 1.30 date 96.03.18.09.53.11; author tls; state Exp; branches; next 1.29; 1.29 date 96.03.18.09.21.33; author tls; state Exp; branches; next 1.28; 1.28 date 95.12.15.18.13.41; author jtc; state Exp; branches; next 1.27; 1.27 date 95.12.09.23.07.02; author tls; state Exp; branches; next 1.26; 1.26 date 95.12.09.22.39.46; author tls; state Exp; branches; next 1.25; 1.25 date 95.10.09.02.11.28; author thorpej; state Exp; branches; next 1.24; 1.24 date 95.10.07.22.58.52; author pk; state Exp; branches; next 1.23; 1.23 date 95.10.06.12.05.36; author tls; state Exp; branches; next 1.22; 1.22 date 95.02.26.01.10.19; author cgd; state Exp; branches; next 1.21; 1.21 date 95.02.19.12.20.06; author cgd; state Exp; branches; next 1.20; 1.20 date 94.12.22.12.43.45; author cgd; state Exp; branches; next 1.19; 1.19 date 94.06.14.04.40.29; author cgd; state Exp; branches; next 1.18; 1.18 date 94.02.10.08.50.06; author cgd; state Exp; branches; next 1.17; 1.17 date 94.02.10.01.50.17; author cgd; state Exp; branches; next 1.16; 1.16 date 94.02.08.23.20.40; author cgd; state Exp; branches; next 1.15; 1.15 date 94.02.07.05.08.57; author cgd; state Exp; branches; next 1.14; 1.14 date 93.12.08.04.51.25; author cgd; state Exp; branches; next 1.13; 1.13 date 93.07.07.12.55.48; author brezak; state Exp; branches; next 1.12; 1.12 date 93.07.04.14.02.11; author cgd; state Exp; branches; next 1.11; 1.11 date 93.05.22.07.15.52; author cgd; state Exp; branches; next 1.10; 1.10 date 93.05.22.07.15.13; author cgd; state Exp; branches; next 1.9; 1.9 date 93.05.22.07.10.28; author cgd; state Exp; branches; next 1.8; 1.8 date 93.04.29.12.42.00; author cgd; state Exp; branches; next 1.7; 1.7 date 93.04.29.11.48.50; author cgd; state Exp; branches; next 1.6; 1.6 date 93.04.10.15.49.55; author cgd; state Exp; branches; next 1.5; 1.5 date 93.04.08.01.05.57; author cgd; state Exp; branches; next 1.4; 1.4 date 93.03.22.08.43.59; author cgd; state Exp; branches; next 1.3; 1.3 date 93.03.22.08.04.00; author cgd; state Exp; branches; next 1.2; 1.2 date 93.03.21.18.04.42; author cgd; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.335.2.1 date 2023.12.22.11.33.31; author martin; state Exp; branches; next ; commitid 3lSm758UaQeSbsRE; 1.327.2.1 date 2019.09.01.10.36.26; author martin; state Exp; branches; next 1.327.2.2; commitid j6dy0v47FRF7riBB; 1.327.2.2 date 2019.09.01.10.44.22; author martin; state Exp; branches; next ; commitid wTuBvYul7JlQtiBB; 1.324.2.1 date 2019.06.10.21.41.01; author christos; state Exp; branches; next 1.324.2.2; commitid jtc8rnCzWiEEHGqB; 1.324.2.2 date 2020.04.13.07.45.05; author martin; state Exp; branches; next 1.324.2.3; commitid X01YhRUPVUDaec4C; 1.324.2.3 date 2020.04.21.18.41.02; author martin; state dead; branches; next 1.324.2.4; commitid 86tA4aEmdr3VCh5C; 1.324.2.4 date 2020.04.21.19.37.29; author martin; state Exp; branches; next ; commitid x6IB64bYH9UmWh5C; 1.321.2.1 date 2018.03.15.09.11.52; author pgoyette; state Exp; branches; next 1.321.2.2; commitid lb7w3QtkrVH4axuA; 1.321.2.2 date 2018.05.21.04.35.48; author pgoyette; state Exp; branches; next 1.321.2.3; commitid X5L8kSrBWQcDt7DA; 1.321.2.3 date 2018.11.26.01.49.54; author pgoyette; state Exp; branches; next ; commitid Zj4q5SspGdKXto1B; 1.317.2.1 date 2017.04.26.02.52.13; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.317.4.1 date 2017.04.21.16.50.41; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; 1.309.2.1 date 2014.11.14.14.58.27; author martin; state Exp; branches; next 1.309.2.2; commitid Hpu5xAPRIrrzcaYx; 1.309.2.2 date 2015.05.04.20.24.42; author riz; state Exp; branches; next ; commitid hfD4lrWMcSCIvaky; 1.305.2.1 date 2014.08.10.07.27.15; author tls; state Exp; branches; next ; commitid b558mMeUyhF6NMLx; 1.299.2.1 date 2012.11.20.02.57.27; author tls; state Exp; branches; next 1.299.2.2; 1.299.2.2 date 2013.02.25.00.23.49; author tls; state Exp; branches; next 1.299.2.3; 1.299.2.3 date 2014.08.19.23.45.10; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.291.2.1 date 2012.05.09.20.06.36; author riz; state Exp; branches; next 1.291.2.2; 1.291.2.2 date 2012.08.15.17.36.46; author sborrill; state Exp; branches; next ; 1.289.2.1 date 2012.04.17.00.01.35; author yamt; state Exp; branches; next 1.289.2.2; 1.289.2.2 date 2012.05.23.10.07.03; author yamt; state Exp; branches; next 1.289.2.3; 1.289.2.3 date 2012.10.30.18.46.03; author yamt; state Exp; branches; next 1.289.2.4; 1.289.2.4 date 2013.01.16.05.25.52; author yamt; state Exp; branches; next 1.289.2.5; 1.289.2.5 date 2014.05.22.13.23.26; author yamt; state Exp; branches; next ; commitid PKIuZeaQ0guJkxBx; 1.282.2.1 date 2011.06.23.14.17.47; author cherry; state Exp; branches; next ; 1.281.2.1 date 2011.02.08.16.18.26; author bouyer; state Exp; branches; next ; 1.266.2.1 date 2009.05.13.19.15.48; author jym; state Exp; branches; next ; 1.262.2.1 date 2008.11.15.22.05.11; author snj; state Exp; branches; next 1.262.2.2; 1.262.2.2 date 2008.12.06.22.07.34; author snj; state Exp; branches; next 1.262.2.3; 1.262.2.3 date 2009.03.27.14.50.35; author msaitoh; state Exp; branches 1.262.2.3.4.1; next 1.262.2.4; 1.262.2.4 date 2011.01.06.05.19.54; author riz; state Exp; branches; next 1.262.2.5; 1.262.2.5 date 2011.03.08.17.47.59; author riz; state Exp; branches; next ; 1.262.2.3.4.1 date 2009.12.14.06.40.41; author mrg; state Exp; branches; next ; 1.252.2.1 date 2008.06.04.02.02.56; author yamt; state Exp; branches; next ; 1.252.4.1 date 2008.06.23.04.26.43; author wrstuden; state Exp; branches; next 1.252.4.2; 1.252.4.2 date 2008.09.18.04.27.24; author wrstuden; state Exp; branches; next ; 1.251.4.1 date 2008.03.24.07.14.28; author keiichi; state Exp; branches; next ; 1.247.4.1 date 2007.11.06.23.07.10; author matt; state Exp; branches; next 1.247.4.2; 1.247.4.2 date 2008.01.09.01.19.18; author matt; state Exp; branches; next 1.247.4.3; 1.247.4.3 date 2008.03.23.00.12.06; author matt; state Exp; branches; next ; 1.246.2.1 date 2007.03.09.06.59.37; author riz; state Exp; branches 1.246.2.1.2.1; next 1.246.2.2; 1.246.2.2 date 2007.09.29.11.10.56; author xtraeme; state Exp; branches; next 1.246.2.3; 1.246.2.3 date 2007.10.26.14.23.20; author liamjfoy; state Exp; branches 1.246.2.3.2.1; next 1.246.2.4; 1.246.2.4 date 2009.06.05.17.19.26; author snj; state Exp; branches; next ; 1.246.2.1.2.1 date 2007.09.30.20.27.37; author wrstuden; state Exp; branches; next 1.246.2.1.2.2; 1.246.2.1.2.2 date 2008.01.06.05.00.06; author wrstuden; state Exp; branches; next ; 1.246.2.3.2.1 date 2009.06.05.17.01.43; author snj; state Exp; branches; next ; 1.238.2.1 date 2005.04.20.11.23.52; author tron; state Exp; branches; next 1.238.2.2; 1.238.2.2 date 2005.08.28.10.17.52; author tron; state Exp; branches; next 1.238.2.3; 1.238.2.3 date 2005.08.30.05.56.05; author tron; state Exp; branches; next 1.238.2.4; 1.238.2.4 date 2005.09.02.20.40.23; author tron; state Exp; branches; next ; 1.175.2.1 date 2002.11.01.11.55.04; author tron; state Exp; branches; next 1.175.2.2; 1.175.2.2 date 2002.11.15.04.15.13; author lukem; state Exp; branches; next 1.175.2.3; 1.175.2.3 date 2002.11.30.15.27.33; author he; state Exp; branches; next ; 1.118.2.1 date 2000.06.20.06.00.24; author fredb; state dead; branches; next 1.118.2.2; 1.118.2.2 date 2000.08.24.02.19.59; author fredb; state Exp; branches; next ; 1.117.2.1 date 2000.06.22.14.57.40; author minoura; state Exp; branches; next ; 1.99.4.1 date 99.12.27.18.26.56; author wrstuden; state Exp; branches; next ; 1.95.2.1 date 2000.08.26.19.00.36; author he; state Exp; branches; next 1.95.2.2; 1.95.2.2 date 2000.09.09.16.29.26; author he; state Exp; branches; next ; 1.42.2.1 date 97.10.27.18.09.59; author thorpej; state Exp; branches; next 1.42.2.2; 1.42.2.2 date 98.02.07.00.49.34; author mellon; state Exp; branches; next 1.42.2.3; 1.42.2.3 date 98.02.20.01.41.41; author mellon; state Exp; branches; next ; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next ; desc @@ 1.338 log @Makefile: Run `postinstall -d /', not `postinstall -d //'. This happens when doing `build.sh install=/'. The message is less confusing and it makes postinstall's job simpler for detecting when it's installing to / rather than somewhere else. @ text @# $NetBSD: Makefile,v 1.337 2023/06/11 10:43:51 lukem Exp $ # # This is the top-level makefile for building NetBSD. For an outline of # how to build a snapshot or release, as well as other release engineering # information, see http://www.NetBSD.org/developers/releng/index.html # # Not everything you can set or do is documented in this makefile. In # particular, you should review the files in /usr/share/mk (especially # bsd.README) for general information on building programs and writing # Makefiles within this structure, and see the comments in src/etc/Makefile # for further information on installation and release set options. # # Variables listed below can be set on the make command line (highest # priority), in /etc/mk.conf (middle priority), or in the environment # (lowest priority). # # Variables: # DESTDIR is the target directory for installation of the compiled # software. It defaults to /. Note that programs are built against # libraries installed in DESTDIR. # MKMAN, if `no', will prevent building of manual pages. # MKOBJDIRS, if not `no', will build object directories at # an appropriate point in a build. # MKSHARE, if `no', will prevent building and installing # anything in /usr/share. # MKUPDATE, if not `no', will avoid a `make cleandir' at the start of # `make build', as well as having the effects listed in # /usr/share/mk/bsd.README. # NOCLEANDIR, if defined, will avoid a `make cleandir' at the start # of the `make build'. # NOINCLUDES will avoid the `make includes' usually done by `make build'. # NOBINARIES will not build binaries, only includes and libraries # # See mk.conf(5) for more details. # # # Targets: # build: # Builds a full release of NetBSD in DESTDIR, except for the # /etc configuration files. # If BUILD_DONE is set, this is an empty target. # distribution: # Builds a full release of NetBSD in DESTDIR, including the /etc # configuration files. # buildworld: # As per `make distribution', except that it ensures that DESTDIR # is not the root directory. # installworld: # Install the distribution from DESTDIR to INSTALLWORLDDIR (which # defaults to the root directory). Ensures that INSTALLWORLDDIR # is not the root directory if cross compiling. # release: # Does a `make distribution', and then tars up the DESTDIR files # into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. # (See etc/Makefile for more information on this.) # regression-tests: # Runs the regression tests in "regress" on this host. # sets: # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets # from ${DESTDIR} # sourcesets: # Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR} # syspkgs: # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs # from ${DESTDIR} # iso-image: # Create CD-ROM image in RELEASEDIR/images. # RELEASEDIR must already have been populated by `make release' # or equivalent. # iso-image-source: # Create CD-ROM image with source in RELEASEDIR/images. # RELEASEDIR must already have been populated by # `make release sourcesets' or equivalent. # live-image: # Create bootable live image for emulators or USB stick etc. # in RELEASEDIR/liveimage. # RELEASEDIR must already have been populated by `make release' # or equivalent. # install-image: # Create bootable installation image for USB stick etc. # in RELEASEDIR/installimage. # RELEASEDIR must already have been populated by `make release' # or equivalent. # # Targets invoked by `make build,' in order: # cleandir: cleans the tree. # do-top-obj: creates the top level object directory. # do-tools-obj: creates object directories for the host toolchain. # do-tools: builds host toolchain. # params: create params file with various make(1) parameters. # show-params: show various make(1) parameters. # obj: creates object directories. # do-distrib-dirs: creates the distribution directories. # includes: installs include files. # do-lib: builds and installs prerequisites from lib. # do-compat-lib: builds and installs prerequisites from compat/lib # if ${MKCOMPAT} != "no". # do-x11: builds and installs X11 tools and libraries # from src/external/mit/xorg if ${MKX11} != "no". # do-build: builds and installs the entire system. # do-obsolete: installs the obsolete sets (for the postinstall-* targets). # .if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" .MAKEFLAGS: -m ${.CURDIR}/share/mk .endif # # If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may # not be the top level objdir, because "make obj" can happen in the *middle* # of "make build" (long after is calculated it). So, pre-set # _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}. # _SRC_TOP_OBJ_= .include # # Sanity check: make sure that "make build" is not invoked simultaneously # with a standard recursive target. # .if make(build) || make(release) || make(snapshot) .for targ in ${TARGETS:Nobj:Ncleandir} .if make(${targ}) && !target(.BEGIN) .BEGIN: @@echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.' @@false .endif .endfor .endif # # _SUBDIR is used to set SUBDIR, after removing directories that have # BUILD_${dir}=no, or that have no ${dir}/Makefile. # _SUBDIR= tools .WAIT lib .if ${MKLLVM} != "no" _SUBDIR+= external/bsd/compiler_rt .endif _SUBDIR+= include external crypto/external bin _SUBDIR+= games libexec sbin usr.bin _SUBDIR+= usr.sbin share sys etc tests compat _SUBDIR+= .WAIT rescue .WAIT distrib regress .for dir in ${_SUBDIR} .if "${dir}" == ".WAIT" \ || (${BUILD_${dir}:Uyes} != "no" && exists(${dir}/Makefile)) SUBDIR+= ${dir} .endif .endfor .if exists(regress) regression-tests: .PHONY .MAKE @@echo Running regression tests... ${MAKEDIRTARGET} regress regress .endif .if ${MKUNPRIVED} != "no" NOPOSTINSTALL= # defined .endif afterinstall: .PHONY .MAKE .if ${MKMAN} != "no" ${MAKEDIRTARGET} share/man makedb .endif .if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") ${MAKEDIRTARGET} external/gpl2/texinfo/bin/install-info infodir-meta .endif .if !defined(NOPOSTINSTALL) ${MAKEDIRTARGET} . postinstall-check .endif _POSTINSTALL= ${:!cd ${.CURDIR}/usr.sbin/postinstall && \ ${MAKE} -v .OBJDIR!}/postinstall \ -m ${MACHINE} -a ${MACHINE_ARCH} _POSTINSTALL_ENV= \ AWK=${TOOL_AWK:Q} \ DB=${TOOL_DB:Q} \ HOST_SH=${HOST_SH:Q} \ MAKE=${MAKE:Q} \ PWD_MKDB=${TOOL_PWD_MKDB:Q} \ SED=${TOOL_SED:Q} \ STAT=${TOOL_STAT:Q} .if ${MKX11} != "no" _POSTINSTALL_X11=-x ${X11SRCDIR:Q} .endif postinstall-check: .PHONY @@echo " === Post installation checks ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ check; if [ $$? -gt 1 ]; then exit 1; fi @@echo " ================================" postinstall-fix: .NOTMAIN .PHONY @@echo " === Post installation fixes ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix @@echo " ===============================" postinstall-fix-obsolete: .NOTMAIN .PHONY @@echo " === Removing obsolete files ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete @@echo " ===============================" postinstall-fix-obsolete_stand: .NOTMAIN .PHONY @@echo " === Removing obsolete files ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete_stand ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete_stand_debug @@echo " ===============================" # # Targets (in order!) called by "make build". # BUILDTARGETS+= check-tools .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) BUILDTARGETS+= cleandir .endif .if ${MKOBJDIRS} != "no" BUILDTARGETS+= do-top-obj .endif .if ${USETOOLS} == "yes" # { .if ${MKOBJDIRS} != "no" BUILDTARGETS+= do-tools-obj .endif BUILDTARGETS+= do-tools .endif # USETOOLS # } BUILDTARGETS+= params .if ${MKOBJDIRS} != "no" BUILDTARGETS+= obj .endif BUILDTARGETS+= clean_METALOG .if !defined(NODISTRIBDIRS) BUILDTARGETS+= do-distrib-dirs .endif .if !defined(NOINCLUDES) BUILDTARGETS+= includes .endif BUILDTARGETS+= do-lib BUILDTARGETS+= do-compat-lib .if ${MKLLVM} != "no" BUILDTARGETS+= do-sanitizer .if ${MKSANITIZER:Uno} == "yes" BUILDTARGETS+= do-sanitizer-tools .endif .endif .if ${MKX11} != "no" BUILDTARGETS+= do-x11 .endif .if !defined(NOBINARIES) BUILDTARGETS+= do-build BUILDTARGETS+= do-obsolete .endif # # Enforce proper ordering of some rules. # .ORDER: ${BUILDTARGETS} includes-lib: .PHONY includes-include includes-sys # # Record the values of variables that might affect the build. # If no values have changed, avoid updating the timestamp # of the params file. # # This is referenced by _NETBSD_VERSION_DEPENDS in . # .include "${NETBSDSRCDIR}/etc/Makefile.params" CLEANDIRFILES+= params params: .EXEC ${_MKMSG_CREATE} params @@${PRINT_PARAMS} >${.TARGET}.new @@if cmp -s ${.TARGET}.new ${.TARGET} > /dev/null 2>&1; then \ : "params is unchanged" ; \ rm ${.TARGET}.new ; \ else \ : "params has changed or is new" ; \ mv ${.TARGET}.new ${.TARGET} ; \ fi # # Display current make(1) parameters # show-params: .PHONY .MAKE @@${PRINT_PARAMS} # # Build the system and install into DESTDIR. # START_TIME!= date build: .PHONY .MAKE .if defined(BUILD_DONE) @@echo "Build already installed into ${DESTDIR}" .else @@echo "Build started at: ${START_TIME}" .for tgt in ${BUILDTARGETS} ${MAKEDIRTARGET} . ${tgt} .endfor ${MAKEDIRTARGET} etc install-etc-release @@echo "Build started at: ${START_TIME}" @@printf "Build finished at: " && date .endif # # Build a full distribution, but not a release (i.e. no sets into # ${RELEASEDIR}). "buildworld" enforces a build to ${DESTDIR} != / # distribution buildworld: .PHONY .MAKE .if make(buildworld) && \ (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") @@echo "Won't make ${.TARGET} with DESTDIR=/" @@false .endif ${MAKEDIRTARGET} . build NOPOSTINSTALL=1 ${MAKEDIRTARGET} etc distribution INSTALL_DONE=1 .if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" ${MAKEDIRTARGET} . postinstall-fix-obsolete ${MAKEDIRTARGET} . postinstall-fix-obsolete_stand ${MAKEDIRTARGET} distrib/sets checkflist .endif @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/') # If installing to /, ensures that the host's operating system is NetBSD and # the host's `uname -m` == ${MACHINE}. # HOST_UNAME_S!= uname -s HOST_UNAME_M!= uname -m installworld: .PHONY .MAKE .if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") @@echo "Can't make ${.TARGET} to DESTDIR=/" @@false .endif .if !defined(INSTALLWORLDDIR) || \ ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/" .if (${HOST_UNAME_S} != "NetBSD") @@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/" @@false .endif .if (${HOST_UNAME_M} != ${MACHINE}) @@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/" @@false .endif .endif ${MAKEDIRTARGET} distrib/sets installsets \ INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=${INSTALLSETS:Q} ${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR} @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Install modules from $DESTDIR to $INSTALLMODULESDIR # installmodules: .PHONY .MAKE .if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") @@echo "Can't make ${.TARGET} to DESTDIR=/" @@false .endif .if !defined(INSTALLMODULESDIR) || \ ${INSTALLMODULESDIR} == "" || ${INSTALLMODULESDIR} == "/" .if (${HOST_UNAME_S} != "NetBSD") @@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLMODULESDIR=/" @@false .endif .if (${HOST_UNAME_M} != ${MACHINE}) @@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLMODULESDIR=/" @@false .endif .endif ${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:U/} @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR # .for tgt in sets sourcesets syspkgs ${tgt}: .PHONY .MAKE ${MAKEDIRTARGET} distrib/sets ${tgt} .endfor # # Build a release or snapshot (implies "make distribution"). Note that # in this case, the set lists will be checked before the tar files # are made. # release snapshot: .PHONY .MAKE ${MAKEDIRTARGET} . distribution ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1 @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Create a CD-ROM image. # iso-image: .PHONY ${MAKEDIRTARGET} distrib iso_image ${MAKEDIRTARGET} etc iso-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date iso-image-source: .PHONY ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true ${MAKEDIRTARGET} etc iso-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Create bootable live images. # live-image: .PHONY ${MAKEDIRTARGET} etc live-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Create bootable installation images. # install-image: .PHONY ${MAKEDIRTARGET} etc install-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Special components of the "make build" process. # check-tools: .PHONY .if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN) @@echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.' @@echo '*** May result in a failed build or corrupt binaries!' .elif defined(EXTERNAL_TOOLCHAIN) @@echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.' .endif # Delete or sanitise a leftover METALOG from a previous build. clean_METALOG: .PHONY .MAKE .if ${MKUPDATE} != "no" ${MAKEDIRTARGET} distrib/sets clean_METALOG .endif do-distrib-dirs: .PHONY .MAKE .if !defined(DESTDIR) || ${DESTDIR} == "" ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/ .else ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR} .endif .for targ in cleandir obj includes do-${targ}: .PHONY ${targ} @@true .endfor do-tools: .PHONY .MAKE ${MAKEDIRTARGET} tools build_install do-lib: .PHONY .MAKE ${MAKEDIRTARGET} lib build_install do-compat-lib: .PHONY .MAKE ${MAKEDIRTARGET} compat build_install BOOTSTRAP_SUBDIRS="../../../lib" do-sanitizer: .PHONY .MAKE ${MAKEDIRTARGET} external/bsd/compiler_rt build_install do-sanitizer-tools: .PHONY .MAKE .if !exists(${TOOLDIR}/lib/clang) && ${HAVE_LLVM:Uno} == "yes" mkdir -p ${TOOLDIR}/lib/clang cd ${DESTDIR}/usr/lib/clang && \ ${TOOL_PAX} -rw . ${TOOLDIR}/lib/clang .endif do-top-obj: .PHONY .MAKE ${MAKEDIRTARGET} . obj NOSUBDIR= do-tools-obj: .PHONY .MAKE ${MAKEDIRTARGET} tools obj do-build: .PHONY .MAKE .for targ in dependall install ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no .endfor do-x11: .PHONY .MAKE .if ${MKX11} != "no" ${MAKEDIRTARGET} external/mit/xorg/tools all ${MAKEDIRTARGET} external/mit/xorg/lib build_install .if ${MKCOMPATX11} != "no" ${MAKEDIRTARGET} compat build_install BOOTSTRAP_SUBDIRS="../../../external/mit/xorg/lib" .endif .else @@echo "MKX11 is not enabled" @@false .endif do-obsolete: .PHONY .MAKE ${MAKEDIRTARGET} etc install-obsolete-lists # # Speedup stubs for some subtrees that don't need to run these rules. # (Tells not to recurse for them.) # .for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools includes-${dir}: .PHONY @@true .endfor .for dir in etc distrib regress install-${dir}: .PHONY @@true .endfor # # XXX this needs to change when distrib Makefiles are recursion compliant # XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first... # dependall-distrib depend-distrib all-distrib: .PHONY @@true .include .include .include .include @ 1.337 log @more NBUILDJOBS deprecation The NBUILDJOBS option was deprecated in 2002; there's no need to keep warning about it, remove from params / show-params, and only document as obsolete. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.336 2023/06/02 20:48:09 lukem Exp $ d193 1 a193 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d198 1 a198 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix d203 1 a203 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete d208 2 a209 2 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete_stand ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete_stand_debug @ 1.336 log @build.sh: add show-params operation Add show-params operation to the makefile target, and reword params operation to describe what it's done since 2012. (In 2012-11-04 the Makefile's previous params target was renamed to show-params and a new params target was added to save a 'params' file, and build.sh wasn't adapted.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.335 2022/08/21 07:10:03 lukem Exp $ a448 3 .if defined(NBUILDJOBS) @@echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!' .endif @ 1.335 log @Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC Remove support for building extsrc/: 1. Makefile: remove do-extsrc target. 2. build.sh: remove options -y and -Y extsrcdir. 3. distrib/sets: remove support for extsrc in various tools including the options -L ext and -y, and the extsrc sets. 4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc) 5. bsd.own.mk and various Makefiles: remove support for extsrc/, EXTSRCSRCDIR, MKEXTSRC. As proposed on tech-kern and tech-userlevel on 2022-01-07 and followed up on 2022-08-21. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.334 2022/03/19 14:35:13 rillig Exp $ d91 2 a92 2 # params: record the values of variables that might affect the # build. @ 1.335.2.1 log @Pull up following revision(s) (requested by riastradh in ticket #513): Makefile: revision 1.338 Makefile: Run `postinstall -d /', not `postinstall -d //'. This happens when doing `build.sh install=/'. The message is less confusing and it makes postinstall's job simpler for detecting when it's installing to / rather than somewhere else. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.335 2022/08/21 07:10:03 lukem Exp $ d193 1 a193 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ check; if [ $$? -gt 1 ]; then exit 1; fi d198 1 a198 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix d203 1 a203 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete d208 2 a209 2 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete_stand ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR:C/^\/$//}/ fix obsolete_stand_debug @ 1.334 log @Makefile: fix location of postinstall program for MAKEVERBOSE > 2 If MAKEVERBOSE > 2, each shell command from a make target is echoed. This resulted in two additional words ending up in the variable _POSTINSTALL. Noticed by Brad Harder. Before: $ make -v _POSTINSTALL MAKEVERBOSE=3 echo .../usr.sbin/postinstall .../usr.sbin/postinstall/postinstall ... After: $ make -v _POSTINSTALL MAKEVERBOSE=3 .../usr.sbin/postinstall/postinstall ... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.333 2020/10/29 20:26:24 uwe Exp $ a101 1 # do-extsrc: builds and installs extsrc if ${MKEXTSRC} != "no". a252 3 .if ${MKEXTSRC} != "no" BUILDTARGETS+= do-extsrc .endif a512 8 do-extsrc: .PHONY .MAKE .if ${MKEXTSRC} != "no" ${MAKEDIRTARGET} extsrc build .else @@echo "MKEXTSRC is not enabled" @@false .endif @ 1.333 log @G/c spurious whitespace. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.332 2020/05/15 16:34:44 christos Exp $ d177 1 a177 1 ${MAKE} print-objdir!}/postinstall \ @ 1.332 log @automatically remove old debug files for modules. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.331 2019/08/27 22:48:54 kamil Exp $ d143 1 a143 1 _SUBDIR+= include external crypto/external bin @ 1.331 log @Enhance the support of LLVM sanitizers Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio code. This caused new build issued with duplicated symbols in few places and rump kernel code picking different code paths borrowed from libc. Handle all this in one go. Add bsd.sanitizer.mk to share common code used by programs and libraries. Switch from realall to beforeinstall target in .syms files. This is more reliable in MKSANITIZER. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.330 2019/08/26 04:49:45 kamil Exp $ d210 1 @ 1.330 log @Correct the build rules of LLVM sanitizers Fix generation of .a.syms files in LLVM sanitizers. The old rules weren't functional and sometimes they were fatal in the build. Add the .a.syms files to distribution sets. These files are generated only in certain .a files in 64bit version of sanitizers. Correct the location of files with LLVM sanitizers. Move the LLVM sanitizer entries from base to comp files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.329 2019/08/25 06:06:48 kamil Exp $ d484 1 a484 1 ${MAKEDIRTARGET} external/bsd/compiler_rt all @ 1.329 log @Rework the LLVM compiler_rt build rules Register external/bsd/compiler_rt as a _SUBDIR. This will allow to handle properly includes specific for compiler_rt. Centralize build_install target for external/bsd/compiler_rt. With the above changes MKOBJDIR is now respected properly for me. Do not install LLVM sanitizers into TOOLDIR for !HAVE_LLVM. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.328 2019/08/23 06:38:27 kamil Exp $ d484 1 a484 1 ${MAKEDIRTARGET} external/bsd/compiler_rt build_install @ 1.328 log @Enhance MKSANITIZER support Add i386 support for LLVM sanitizers. Add new build phases do-sanitizer-* for building LLVM sanitizers after libs and before other programs. This phase is important as sanitizers need to link with libs and sanitized programs must link with sanitizer runtimes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.327 2019/06/14 09:12:42 martin Exp $ d139 5 a143 1 _SUBDIR= tools .WAIT lib include external crypto/external bin d243 1 a243 2 BUILDTARGETS+= do-sanitizer-includes BUILDTARGETS+= do-sanitizer-lib d483 2 a484 6 do-sanitizer-includes: .PHONY .MAKE ${MAKEDIRTARGET} external/bsd/compiler_rt/lib/clang/include includes ${MAKEDIRTARGET} external/bsd/compiler_rt/lib/clang/share includes do-sanitizer-lib: .PHONY .MAKE ${MAKEDIRTARGET} external/bsd/compiler_rt/lib/clang/lib build_install d487 1 a487 1 .if !exists(${TOOLDIR}/lib/clang) @ 1.327 log @Use the generated "postinstall" in the objdir for postinstall-check and postinstall-fix targets - we do not have a simple postinstall script in the source tree any more. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.326 2019/06/06 14:51:43 martin Exp $ d238 7 d480 14 @ 1.327.2.1 log @Pull up following revision(s) (requested by kamil in ticket #122): external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.2 distrib/sets/lists/base/md.amd64: revision 1.280 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.2 distrib/sets/lists/comp/md.amd64: revision 1.272 external/bsd/compiler_rt/lib/clang/lib/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/Makefile: revision 1.3 distrib/sets/lists/comp/md.i386: revision 1.190 external/bsd/compiler_rt/lib/clang/Makefile: revision 1.2 Makefile: revision 1.330 external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.2 distrib/sets/lists/base/md.i386: revision 1.153 distrib/sets/lists/base/md.i386: revision 1.154 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.2 external/bsd/Makefile: revision 1.65 external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.2 distrib/sets/lists/base/md.amd64: revision 1.279 external/bsd/compiler_rt/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile: revision 1.2 external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.2 Makefile: revision 1.328 Makefile: revision 1.329 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.2 Fix building compiler_rt with MKCOMPAT=no; approved by kamil@@ Enhance MKSANITIZER support Add i386 support for LLVM sanitizers. Add new build phases do-sanitizer-* for building LLVM sanitizers after libs and before other programs. This phase is important as sanitizers need to link with libs and sanitized programs must link with sanitizer runtimes. Fix LLVM sanitizer build by GCC (HAVE_LLVM=no) Do not error if a priority from 0 to 100 is used for constructor or destructor. Use -Wno-error to silence all errors from this warning type. There should be used -Wno-prio-ctor-dtor, but it's not supported by GCC7. Rework the LLVM compiler_rt build rules Register external/bsd/compiler_rt as a _SUBDIR. This will allow to handle properly includes specific for compiler_rt. Centralize build_install target for external/bsd/compiler_rt. With the above changes MKOBJDIR is now respected properly for me. Do not install LLVM sanitizers into TOOLDIR for !HAVE_LLVM. Correct the build rules of LLVM sanitizers Fix generation of .a.syms files in LLVM sanitizers. The old rules weren't functional and sometimes they were fatal in the build. Add the .a.syms files to distribution sets. These files are generated only in certain .a files in 64bit version of sanitizers. Correct the location of files with LLVM sanitizers. Move the LLVM sanitizer entries from base to comp files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.327 2019/06/14 09:12:42 martin Exp $ d139 1 a139 5 _SUBDIR= tools .WAIT lib .if ${MKLLVM} != "no" _SUBDIR+= external/bsd/compiler_rt .endif _SUBDIR+= include external crypto/external bin a237 6 .if ${MKLLVM} != "no" BUILDTARGETS+= do-sanitizer .if ${MKSANITIZER:Uno} == "yes" BUILDTARGETS+= do-sanitizer-tools .endif .endif a472 10 do-sanitizer: .PHONY .MAKE ${MAKEDIRTARGET} external/bsd/compiler_rt all do-sanitizer-tools: .PHONY .MAKE .if !exists(${TOOLDIR}/lib/clang) && ${HAVE_LLVM:Uno} == "yes" mkdir -p ${TOOLDIR}/lib/clang cd ${DESTDIR}/usr/lib/clang && \ ${TOOL_PAX} -rw . ${TOOLDIR}/lib/clang .endif @ 1.327.2.2 log @Pull up following revision(s) (requested by kamil in ticket #126): external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3 external/gpl2/lvm2/lvm2tools.mk: revision 1.5 common/lib/libc/gmon/mcount.c: revision 1.14 Makefile: revision 1.331 share/mk/Makefile: revision 1.51 external/bsd/fetch/lib/Makefile: revision 1.12 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3 tests/lib/libc/net/Makefile: revision 1.12 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3 distrib/sets/lists/base/mi: revision 1.1213 share/mk/bsd.lib.mk: revision 1.380 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3 share/mk/bsd.sanitizer.mk: revision 1.1 share/mk/bsd.prog.mk: revision 1.323 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3 lib/libc/gen/sysctlgetmibinfo.c: revision 1.14 Enhance the support of LLVM sanitizers Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio code. This caused new build issued with duplicated symbols in few places and rump kernel code picking different code paths borrowed from libc. Handle all this in one go. Add bsd.sanitizer.mk to share common code used by programs and libraries. Switch from realall to beforeinstall target in .syms files. This is more reliable in MKSANITIZER. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.327.2.1 2019/09/01 10:36:26 martin Exp $ d484 1 a484 1 ${MAKEDIRTARGET} external/bsd/compiler_rt build_install @ 1.326 log @Fix editor mishap @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.325 2018/11/11 07:43:35 maya Exp $ d172 2 a173 1 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall \ @ 1.325 log @.WAIT for tools to complete. There's a lot of waits inside tools, but nothing that promises that we haven't started doing the next subdir in the top level. Shows up as warnings in the cleandir stage on releng builds: cleandir ===> external/mit/xorg/server/drivers/xf86-video-suncg6 cleandir ===> lib/libpam/modules/pam_deny sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found nbmake[9]: "../../Makefile.xf86-driver" line 23: warning: "/home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk '/^PACKAGE_VERSION=/ { match($1, "[0-9]+\\.[0-9]+\\.[0-9]+"); version = substr($1, RSTART, RLENGTH); } END { print version }' /home/source/ab/HEAD-llvm/xsrc/external/mit/xf86-video-ati/dist/configure" returned non-zero status sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.324 2018/05/02 07:34:44 pgoyette Exp $ d96 1 a96 2 # do-lib: builds and installs prerequisites from lib # if ${MKCOMPAT} != "no". @ 1.324 log @Re-add files that were accidentally deleted in my previous commit. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.321.2.1 2018/03/15 09:11:52 pgoyette Exp $ d140 2 a141 2 _SUBDIR= tools lib include external crypto/external bin games _SUBDIR+= libexec sbin usr.bin @ 1.324.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.326 2019/06/06 14:51:43 martin Exp $ d96 2 a97 1 # do-lib: builds and installs prerequisites from lib. d140 2 a141 2 _SUBDIR= tools .WAIT lib include external crypto/external bin _SUBDIR+= games libexec sbin usr.bin @ 1.324.2.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d139 1 a139 5 _SUBDIR= tools .WAIT lib .if ${MKLLVM} != "no" _SUBDIR+= external/bsd/compiler_rt .endif _SUBDIR+= include external crypto/external bin d172 1 a172 2 _POSTINSTALL= ${:!cd ${.CURDIR}/usr.sbin/postinstall && \ ${MAKE} print-objdir!}/postinstall \ a236 6 .if ${MKLLVM} != "no" BUILDTARGETS+= do-sanitizer .if ${MKSANITIZER:Uno} == "yes" BUILDTARGETS+= do-sanitizer-tools .endif .endif a471 10 do-sanitizer: .PHONY .MAKE ${MAKEDIRTARGET} external/bsd/compiler_rt build_install do-sanitizer-tools: .PHONY .MAKE .if !exists(${TOOLDIR}/lib/clang) && ${HAVE_LLVM:Uno} == "yes" mkdir -p ${TOOLDIR}/lib/clang cd ${DESTDIR}/usr/lib/clang && \ ${TOOL_PAX} -rw . ${TOOLDIR}/lib/clang .endif @ 1.324.2.3 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.324.2.2 2020/04/13 07:45:05 martin Exp $ @ 1.324.2.4 log @Ooops, restore accidently removed files from merge mishap @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.331 2019/08/27 22:48:54 kamil Exp $ @ 1.323 log @Synch with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.322 2018/03/13 03:06:28 mrg Exp $ @ 1.322 log @include bsd.clean.mk so that we actually clean up the attempted "params" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.321 2017/12/06 19:34:00 uwe Exp $ @ 1.321 log @Include somewhat misleadingly named do-x11 into BUILDTARGETS even with NOBINARIES set (subject to MKX11). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.320 2017/12/06 19:27:56 uwe Exp $ d531 1 @ 1.321.2.1 log @Synch with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.322 2018/03/13 03:06:28 mrg Exp $ a530 1 .include @ 1.321.2.2 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.324 2018/05/02 07:34:44 pgoyette Exp $ @ 1.321.2.3 log @Sync with HEAD, resolve a couple of conflicts @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.325 2018/11/11 07:43:35 maya Exp $ d140 2 a141 2 _SUBDIR= tools .WAIT lib include external crypto/external bin _SUBDIR+= games libexec sbin usr.bin @ 1.320 log @do-x11 target builds and installs only the tools and libraries, X11 programs are built during the regular recursive build in extsrc. Edit its description accordingly and move it before do-build to match their order in BUILDTARGETS. While here, drop the "either" clause that has lost its "or" a few years ago when xfree86 reachover was removed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.319 2017/10/04 23:54:33 christos Exp $ a237 1 .if !defined(NOBINARIES) d241 1 @ 1.319 log @Add NOBINARIES, useful to build tools are libraries which is what's needed for mknative. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.318 2017/04/11 14:04:15 christos Exp $ d100 2 a102 2 # do-x11: builds and installs X11 if ${MKX11} != "no"; either # X11R7 from src/external/mit/xorg @ 1.318 log @don't descend into gnu @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.317 2016/01/14 02:51:25 christos Exp $ d33 1 d238 1 d247 1 @ 1.317 log @fix direct reference to texinfo, bleh @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.316 2015/07/23 08:03:25 mrg Exp $ d139 1 a139 1 _SUBDIR= tools lib include gnu external crypto/external bin games a251 1 includes-gnu: .PHONY includes-lib @ 1.317.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.318 2017/04/11 14:04:15 christos Exp $ d139 1 a139 1 _SUBDIR= tools lib include external crypto/external bin games d252 1 @ 1.317.4.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.318 2017/04/11 14:04:15 christos Exp $ d139 1 a139 1 _SUBDIR= tools lib include external crypto/external bin games d252 1 @ 1.316 log @remove the xfree86 reachover makefiles and the vast majority of the support in the rest of the source tree. X11 sets could use some cleaning up perhaps (just deletion, as we've never really marked the old X11R6 as obsolete for native xorg using platforms so far either.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.315 2015/06/27 16:21:07 matt Exp $ d166 1 a166 1 ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta @ 1.315 log @Add MKCOMPATX11 knob for making X11 compat libraries. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.314 2015/06/24 22:20:24 matt Exp $ d101 1 a101 2 # X11R7 from src/external/mit/xorg if ${X11FLAVOUR} == "Xorg" # or X11R6 from src/x11 a483 1 .if ${X11FLAVOUR} == "Xorg" a489 3 ${MAKEDIRTARGET} x11 build .endif .else @ 1.314 log @Support building the xorg X11 libraries under MKCOMPAT. Add XORG_MACHINE_ARCH to compat's bsd.*.mk Turn xorg makekeys and makestrs into real host tools which are installed into ${TOOLSDIR} @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.313 2015/05/03 15:13:13 martin Exp $ d488 1 a488 1 .if ${MKCOMPAT} != "no" @ 1.313 log @PR 49870: pass the xsrc path to postinstall @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.312 2015/01/07 20:42:01 joerg Exp $ d488 3 @ 1.312 log @Reorganise the way xorg is build. Move build of makestrs into src/tools as it is needed for the "includes" phase. Make it symlink all necessary headers in obj to decouple it from "includes" itself, breaking the dependency cycle. Move the do-x11 target between do-lib and do-build, so that libraries can get the benefit of build_install (correct .WAIT behavior) and everything else like "includes" uses the plain SUBDIR entry in external/mit. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.311 2014/11/05 08:19:17 snj Exp $ d184 4 d190 1 a190 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d195 1 a195 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d200 1 a200 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete d205 1 a205 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete_stand @ 1.311 log @iso -> images @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.310 2014/08/18 07:52:40 plunky Exp $ a233 1 BUILDTARGETS+= do-build d237 1 d482 2 a483 1 ${MAKEDIRTARGET} external/mit/xorg build @ 1.310 log @remove obsolete BUILD_CC_LIB_BASEDIR and BUILD_CC_LIB_BASETARGET vars @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.309 2014/06/16 09:06:26 apb Exp $ d67 1 a67 1 # Create CD-ROM image in RELEASEDIR/iso. d71 1 a71 1 # Create CD-ROM image with source in RELEASEDIR/iso. @ 1.309 log @Run "postinstall fix obsolete_stand" just before checkflist, if we are building with DESTDIR != / @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.308 2014/06/16 09:04:43 apb Exp $ a207 5 .if defined(HAVE_GCC) BUILD_CC_LIB_BASEDIR= external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib BUILD_CC_LIB_BASETARGET= external-gpl3-gcc-lib .endif @ 1.309.2.1 log @Pull up following revision(s) (requested by snj in ticket #227): Makefile: revision 1.311 build.sh: revision 1.299 doc/BUILDING.mdoc: revision 1.105 distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.16 distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.17 BUILDING: revision 1.110 distrib/notes/arc/prep: revision 1.3 distrib/notes/arc/prep: revision 1.4 distrib/notes/cats/prep: revision 1.12 distrib/notes/cats/prep: revision 1.13 distrib/notes/sparc/install: revision 1.58 distrib/notes/common/main: revision 1.512 share/man/man8/man8.macppc/ofwboot.8: revision 1.13 Update path to release ISOs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.309 2014/06/16 09:06:26 apb Exp $ d67 1 a67 1 # Create CD-ROM image in RELEASEDIR/images. d71 1 a71 1 # Create CD-ROM image with source in RELEASEDIR/images. @ 1.309.2.2 log @Pull up following revision(s) (requested by martin in ticket #733): Makefile: revision 1.313 PR 49870: pass the xsrc path to postinstall @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.309.2.1 2014/11/14 14:58:27 martin Exp $ a183 4 .if ${MKX11} != "no" _POSTINSTALL_X11=-x ${X11SRCDIR:Q} .endif d186 1 a186 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d191 1 a191 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix d196 1 a196 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete d201 1 a201 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete_stand @ 1.308 log @Pass -m MACHINE -a MACHINE_ARCH to postinstall @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.307 2014/06/16 07:11:52 apb Exp $ d199 5 d316 1 @ 1.307 log @Pass SED=${TOOL_SED:Q} to postinstall. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.306 2014/06/13 01:17:45 mrg Exp $ d173 2 a174 1 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall @ 1.306 log @remove the build support for GCC 4.1, and any hacks i found for it. there could still be more -- i only looked for lines matching both "HAVE_GCC" and "4" as words (grep -w.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.305 2014/02/26 09:54:32 mrg Exp $ d180 1 @ 1.305 log @prepare for moving GCC 4.5 into gcc.old: - convert to using ${EXTERNAL_GCC_SUBDIR} - define base-external-gpl3-gcc* subdir as GCC_SUBDIR - use over for a bunch of places; mostly because it arranges for ../Makefile.inc to be included earlier, and don't bother including the latter if the former is already included. - move all .PATH: settings after so that all valid variables are set before it is evaluated - rename mknative-gcc* to match their subdir name. XXX the relationship between the Makefile.inc/Makefile.gcc_path files is kind of sketchy, it would be great if this was fixed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.304 2014/01/16 01:15:32 christos Exp $ a201 6 .if ${HAVE_GCC} == "4" LIBGCC_EXT=4 BUILD_CC_LIB_BASEDIR= gnu/lib BUILD_CC_LIB_BASETARGET= gnu-lib .else LIBGCC_EXT= a204 1 .endif @ 1.305.2.1 log @Rebase. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.309 2014/06/16 09:06:26 apb Exp $ d173 1 a173 2 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall \ -m ${MACHINE} -a ${MACHINE_ARCH} a179 1 SED=${TOOL_SED:Q} \ a196 5 postinstall-fix-obsolete_stand: .NOTMAIN .PHONY @@echo " === Removing obsolete files ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete_stand @@echo " ===============================" d202 6 d211 1 a315 1 ${MAKEDIRTARGET} . postinstall-fix-obsolete_stand @ 1.304 log @eliminate use of bsd.sys.mk from Makefiles @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.303 2013/07/16 09:52:21 joerg Exp $ d208 1 a208 1 BUILD_CC_LIB_BASEDIR= external/gpl3/gcc/lib @ 1.303 log @hp700 rescue/ldd fails on -j16 build if usr.bin/ldd/elf32/libldd_elf32.a hasn't been made yet. Add an explicit .WAIT before rescue to avoid this. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.302 2012/12/03 13:53:29 apb Exp $ a526 1 .include @ 1.302 log @Add src/etc/Makefile.params, containing the definition of the RELEASEVARS variable, and commands related to printing the values of the variables whose names are in RELEASEVARS. Add an awk script to remove noise printed by "make -j" or high levels of MAKEVERBOSE, so we get only the variables names and values. The values are escaped so that variables containing embedded newlines, quotation marks, and backslashes, are passed through safely. Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS} command defined in src/etc/Makefile.params. Now ${DESTDIR}/etc/release and the params file in the top-level .OBJDIR should never contain unwanted noise, even after a build with MAKEVERBOSE=4. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.301 2012/11/15 23:51:53 joerg Exp $ d142 2 a143 1 _SUBDIR+= usr.sbin share rescue sys etc tests compat .WAIT distrib regress @ 1.301 log @Move the build_install logic from lib/Makefile into share/mk and re-use it for tools. The existing logic broke for the LLVM build with the recent .ORDER changes in make. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.300 2012/11/04 11:02:11 apb Exp $ d262 1 a262 1 d266 1 a266 1 @@(${MAKEDIRTARGET:S/^@@//} etc params) >${.TARGET}.new d276 6 a529 6 # # Display current make(1) parameters # show-params: .PHONY .MAKE ${MAKEDIRTARGET} etc params @ 1.300 log @Create a "params" file in the top-level .OBJDIR during "make build". This file will contain the values of all variables that can affect the build process. Take care not to update the file's timestamp if the contents do not change. ${_SRC_TOP_OBJ}/params is referenced by ${_NETBSD_VERSION_DEPENDS} in bsd.own.mk. Rename the old "params" target to "show-params". This simply prints the values of the variables that can affect the build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.299 2012/08/17 16:22:27 joerg Exp $ a94 2 # do-tools-compat: builds the "libnbcompat" library; needed for some # random host tool programs in the source tree. d456 2 a457 6 .for dir in tools tools/compat do-${dir:S/\//-/g}: .PHONY .MAKE .for targ in dependall install ${MAKEDIRTARGET} ${dir} ${targ} .endfor .endfor @ 1.299 log @Implement build_install in src/lib/Makefile, which traverses the subdirectories and invokes dependall/install. Do this in groups delimited by .WAIT to ensure that depending libraries can use the installed versions and don't need to know the locations in the source tree. Use this new target in src/Makefile to replace most of the adhoc library logic with two special cases, src/lib and src/compat. Adjust sys/Makefile to include the module directory when building them. Add some necessary .WAITs in src/lib/Makefile to reflect the dependencies from src/Makefile and also add the rump libraries here. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.298 2012/08/15 12:50:12 apb Exp $ d90 2 d227 1 d258 20 d534 1 a534 1 params: .PHONY .MAKE @ 1.299.2.1 log @Resync to 2012-11-19 00:00:00 UTC @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.301 2012/11/15 23:51:53 joerg Exp $ a89 2 # params: record the values of variables that might affect the # build. d93 2 a224 1 BUILDTARGETS+= params a254 20 # Record the values of variables that might affect the build. # If no values have changed, avoid updating the timestamp # of the params file. # # This is referenced by _NETBSD_VERSION_DEPENDS in . # CLEANDIRFILES+= params params: .EXEC ${_MKMSG_CREATE} params @@(${MAKEDIRTARGET:S/^@@//} etc params) >${.TARGET}.new @@if cmp -s ${.TARGET}.new ${.TARGET} > /dev/null 2>&1; then \ : "params is unchanged" ; \ rm ${.TARGET}.new ; \ else \ : "params has changed or is new" ; \ mv ${.TARGET}.new ${.TARGET} ; \ fi # d435 6 a440 2 do-tools: .PHONY .MAKE ${MAKEDIRTARGET} tools build_install d511 1 a511 1 show-params: .PHONY .MAKE @ 1.299.2.2 log @resync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.299.2.1 2012/11/20 02:57:27 tls Exp $ d262 1 a262 1 .include "${NETBSDSRCDIR}/etc/Makefile.params" d266 1 a266 1 @@${PRINT_PARAMS} >${.TARGET}.new a275 6 # Display current make(1) parameters # show-params: .PHONY .MAKE @@${PRINT_PARAMS} # d524 6 @ 1.299.2.3 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 # $NetBSD$ d142 1 a142 2 _SUBDIR+= usr.sbin share sys etc tests compat _SUBDIR+= .WAIT rescue .WAIT distrib regress d172 1 a172 2 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall \ -m ${MACHINE} -a ${MACHINE_ARCH} a178 1 SED=${TOOL_SED:Q} \ a195 5 postinstall-fix-obsolete_stand: .NOTMAIN .PHONY @@echo " === Removing obsolete files ===" ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete_stand @@echo " ===============================" d201 7 a207 1 BUILD_CC_LIB_BASEDIR= external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib d210 1 a314 1 ${MAKEDIRTARGET} . postinstall-fix-obsolete_stand d526 1 @ 1.298 log @Add HOST_SH to _POSTINSTALL_ENV; needed for usr.sbin/postinstall/postinstall revision 1.145. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.297 2012/08/14 13:12:15 apb Exp $ d95 1 a95 16 # do-lib-csu: builds and installs prerequisites from lib/csu. # do-libgcc: builds and installs prerequisites from # gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and # gnu/lib/libgcc${LIBGCC_EXT}. # do-libpcc: builds and install prerequisites from # external/bsd/pcc/crtstuff (if necessary) and # external/bsd/pcc/libpcc. # do-lib-libc: builds and installs prerequisites from lib/libc. # do-lib: builds and installs prerequisites from lib. # do-sys-rump-dev-lib: builds and installs prerequisites from sys/rump/dev/lib # do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib # do-sys-rump-kern-lib: builds and installs prereq. from sys/rump/kern/lib # do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib # do-sys-modules: builds and installs kernel modules (used by rump binaries) # do-ld.so: builds and installs prerequisites from libexec/ld.*_so. # do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu d97 1 a97 4 # do-compat-libgcc: builds and installs prerequisites from # compat/gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and # compat/gnu/lib/libgcc${LIBGCC_EXT} if ${MKCOMPAT} != "no". # do-compat-lib-libc: builds and installs prerequisites from compat/lib/libc a234 9 BUILDTARGETS+= do-tools-compat BUILDTARGETS+= do-lib-csu .if ${MKGCC} != "no" BUILDTARGETS+= do-libgcc .endif .if ${MKPCC} != "no" BUILDTARGET+= do-libpcc .endif BUILDTARGETS+= do-lib-libc d236 1 a236 13 .if ${MKKMOD} != "no" BUILDTARGETS+= do-sys-modules .endif .if ${MKRUMP} != "no" BUILDTARGETS+= do-sys-rump-dev-lib do-sys-rump-fs-lib BUILDTARGETS+= do-sys-rump-kern-lib do-sys-rump-net-lib .endif .if ${MKCOMPAT} != "no" BUILDTARGETS+= do-compat-lib-csu BUILDTARGETS+= do-compat-libgcc BUILDTARGETS+= do-compat-lib-libc .endif BUILDTARGETS+= do-ld.so d435 1 a435 11 .if defined(HAVE_GCC) .if ${USE_COMPILERCRTSTUFF} == "yes" BUILD_CC_LIB= ${BUILD_CC_LIB_BASEDIR}/crtstuff${LIBGCC_EXT} .endif BUILD_CC_LIB+= ${BUILD_CC_LIB_BASEDIR}/libgcc${LIBGCC_EXT} .elif defined(HAVE_PCC) BUILD_CC_LIB+= external/bsd/pcc/crtstuff BUILD_CC_LIB+= external/bsd/pcc/libpcc .endif .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 d442 5 a446 9 .if ${MKCOMPAT} != "no" COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc .for dir in ${COMPAT_SUBDIR_LIST} do-compat-${dir:S/\//-/g}: .PHONY .MAKE .for targ in dependall install ${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}" .endfor .endfor .endif a453 35 do-libgcc: .PHONY .MAKE .if defined(HAVE_GCC) .if ${MKGCC} != "no" .if ${USE_COMPILERCRTSTUFF} == "yes" ${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT} .endif ${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT} .endif .endif do-compat-libgcc: .PHONY .MAKE .if defined(HAVE_GCC) .if ${MKGCC} != "no" .if ${USE_COMPILERCRTSTUFF} == "yes" ${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT} .endif ${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT} .endif .endif do-libpcc: .PHONY .MAKE .if defined(HAVE_PCC) .if ${MKPCC} != "no" .if ${USE_COMPILERCRTSTUFF} == "yes" ${MAKEDIRTARGET} . do-pcc-lib-crtstuff .endif ${MAKEDIRTARGET} . do-pcc-lib-libpcc .endif .endif do-ld.so: .PHONY .MAKE .for targ in dependall install ${MAKEDIRTARGET} libexec/ld.elf_so ${targ} .endfor @ 1.297 log @Pass STAT=${TOOL_STAT:Q} through to postinstall. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.296 2012/08/14 13:04:09 apb Exp $ d194 1 @ 1.296 log @TOOL_GREP is defined in share/mk/bsd.own.mk, but is not actually built from tools/Makefile. So don't try to use it here. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.295 2012/08/14 12:37:41 apb Exp $ d195 2 a196 1 PWD_MKDB=${TOOL_PWD_MKDB:Q} @ 1.295 log @Pass all relevant tool variables to postinstall, not just a subset. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.294 2012/08/14 12:19:16 apb Exp $ a193 1 GREP=${TOOL_GREP:Q} \ @ 1.294 log @Fix unbalanced quotes in .if ${MKRUMP} != "no" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.293 2012/08/08 14:00:31 christos Exp $ d191 6 d200 1 a200 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d205 1 a205 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d210 1 a210 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.293 log @exclude rump targets if MKRUMP = no @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.292 2012/04/21 08:28:00 veego Exp $ d259 1 a259 1 .if ${MKRUMP} != "no @ 1.292 log @Add usr.bin to the exclude list for make includes. This is no longer needed after flex was moved to the external framework. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.291 2012/01/24 17:37:34 abs Exp $ d259 1 d262 1 @ 1.291 log @s/is the not root/is not the root/ in a comment - from Snader_LB @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.290 2012/01/22 03:53:32 tsutsui Exp $ d566 1 a566 1 .for dir in bin etc distrib games libexec regress sbin usr.sbin tools @ 1.291.2.1 log @Pull up following revision(s) (requested by veego in ticket #238): Makefile: revision 1.292 Add usr.bin to the exclude list for make includes. This is no longer needed after flex was moved to the external framework. @ text @d1 1 a1 1 # $NetBSD$ d566 1 a566 1 .for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools @ 1.291.2.2 log @Pull up the following revisions(s) (requested by martin in ticket #503): usr.sbin/postinstall/postinstall: revision 1.142-1.145 Makefile: revision 1.295-1.298 Make test for and removal of old pty device nodes more portable. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.291.2.1 2012/05/09 20:06:36 riz Exp $ a190 7 _POSTINSTALL_ENV= \ AWK=${TOOL_AWK:Q} \ DB=${TOOL_DB:Q} \ HOST_SH=${HOST_SH:Q} \ MAKE=${MAKE:Q} \ PWD_MKDB=${TOOL_PWD_MKDB:Q} \ STAT=${TOOL_STAT:Q} d194 1 a194 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d199 1 a199 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d204 1 a204 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.290 log @Add "live-image" and "install-image" target support to build.sh. "live-image" target builds pre-installed disk images that can be used on emulators or boot from USB memory sticks to try NetBSD without installation. Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax (which have working emulators and don't require extra tools like preparing msdosfs or partitioning MD label structures) support this target. "install-image" target builds an bootable installation disk image that can be used as an install CD but burned into USB memory sticks etc. Current only amd64 and i386 (which would support USB boot) have this target. For more details (and known issue) see following posts on netbsd-bugs@@: http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html No particular comments about implementation, and "go ahead" comments from mrg@@, riz@@ and christos@@. Closes PR toolchain/45153 and PR misc/45155. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289 2011/09/09 14:23:37 apb Exp $ d51 1 a51 1 # is the not root directory if cross compiling. @ 1.289 log @Move the code for creating src/BUILDING from "make build-docs" in src/Makefile to "make regen" in src/doc/Makefile, and update a comment in doc/BUILDING.mdoc to match. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.288 2011/08/08 23:18:36 jmcneill Exp $ d74 10 d415 18 @ 1.289.2.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289 2011/09/09 14:23:37 apb Exp $ d51 1 a51 1 # is not the root directory if cross compiling. a73 10 # live-image: # Create bootable live image for emulators or USB stick etc. # in RELEASEDIR/liveimage. # RELEASEDIR must already have been populated by `make release' # or equivalent. # install-image: # Create bootable installation image for USB stick etc. # in RELEASEDIR/installimage. # RELEASEDIR must already have been populated by `make release' # or equivalent. a404 18 # Create bootable live images. # live-image: .PHONY ${MAKEDIRTARGET} etc live-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # # Create bootable installation images. # install-image: .PHONY ${MAKEDIRTARGET} etc install-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date # @ 1.289.2.2 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289.2.1 2012/04/17 00:01:35 yamt Exp $ d566 1 a566 1 .for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools @ 1.289.2.3 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289.2.2 2012/05/23 10:07:03 yamt Exp $ d95 16 a110 1 # do-lib: builds and installs prerequisites from lib d112 4 a115 1 # do-compat-lib: builds and installs prerequisites from compat/lib a190 7 _POSTINSTALL_ENV= \ AWK=${TOOL_AWK:Q} \ DB=${TOOL_DB:Q} \ HOST_SH=${HOST_SH:Q} \ MAKE=${MAKE:Q} \ PWD_MKDB=${TOOL_PWD_MKDB:Q} \ STAT=${TOOL_STAT:Q} d194 1 a194 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d199 1 a199 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d204 1 a204 1 ${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete d246 9 d256 11 a266 1 BUILDTARGETS+= do-compat-lib d465 11 a475 1 .for dir in tools tools/compat d482 9 a490 5 do-lib: .PHONY .MAKE ${MAKEDIRTARGET} lib build_install do-compat-lib: .PHONY .MAKE ${MAKEDIRTARGET} compat build_install BOOTSTRAP_SUBDIRS="../../../lib" d498 35 @ 1.289.2.4 log @sync with (a bit old) head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289.2.3 2012/10/30 18:46:03 yamt Exp $ a89 2 # params: record the values of variables that might affect the # build. d93 2 a224 1 BUILDTARGETS+= params a254 26 # Record the values of variables that might affect the build. # If no values have changed, avoid updating the timestamp # of the params file. # # This is referenced by _NETBSD_VERSION_DEPENDS in . # .include "${NETBSDSRCDIR}/etc/Makefile.params" CLEANDIRFILES+= params params: .EXEC ${_MKMSG_CREATE} params @@${PRINT_PARAMS} >${.TARGET}.new @@if cmp -s ${.TARGET}.new ${.TARGET} > /dev/null 2>&1; then \ : "params is unchanged" ; \ rm ${.TARGET}.new ; \ else \ : "params has changed or is new" ; \ mv ${.TARGET}.new ${.TARGET} ; \ fi # # Display current make(1) parameters # show-params: .PHONY .MAKE @@${PRINT_PARAMS} # d435 6 a440 2 do-tools: .PHONY .MAKE ${MAKEDIRTARGET} tools build_install d507 6 @ 1.289.2.5 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.289.2.4 2013/01/16 05:25:52 yamt Exp $ d142 1 a142 2 _SUBDIR+= usr.sbin share sys etc tests compat _SUBDIR+= .WAIT rescue .WAIT distrib regress d207 1 a207 1 BUILD_CC_LIB_BASEDIR= external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib d526 1 @ 1.288 log @Fix typo that prevented installmodules from working with -U @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.287 2011/08/08 22:15:42 jmcneill Exp $ a558 6 build-docs: .PHONY ${.CURDIR}/BUILDING ${.CURDIR}/BUILDING: doc/BUILDING.mdoc ${_MKMSG_CREATE} ${.TARGET} ${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@@ @ 1.287 log @add an installmodules= command to build.sh @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.286 2011/06/29 02:05:24 mrg Exp $ d363 1 a363 1 ${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:*/} @ 1.286 log @re-enable the gcc 4.5 crtstuff/libgcc builders now that they work. also build the gmp, mpfr and mpc libraries in this case. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.285 2011/06/22 05:13:20 mrg Exp $ d345 23 @ 1.285 log @fix the parts that build libgcc/crtstuff, etc., for GCC 4.5. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.284 2011/06/20 06:52:36 mrg Exp $ a414 1 . if ${HAVE_GCC} != 45 # XXX for now a418 1 . endif a448 1 . if ${HAVE_GCC} != 45 # XXX for now a454 1 . endif a458 1 . if ${HAVE_GCC} != 45 # XXX for now a464 1 . endif @ 1.284 log @remove all the code that supported HAVE_GCC=3. mostly from chuq. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.283 2011/06/15 09:45:58 mrg Exp $ d204 2 d207 3 a209 1 LIBGCC_EXT=45 d415 1 d417 1 a417 1 BUILD_CC_LIB= gnu/lib/crtstuff${LIBGCC_EXT} d419 2 a420 1 BUILD_CC_LIB+= gnu/lib/libgcc${LIBGCC_EXT} d451 1 d454 1 a454 1 ${MAKEDIRTARGET} . do-gnu-lib-crtstuff${LIBGCC_EXT} d456 1 a456 1 ${MAKEDIRTARGET} . do-gnu-lib-libgcc${LIBGCC_EXT} d458 1 d463 1 d466 1 a466 1 ${MAKEDIRTARGET} . do-compat-gnu-lib-crtstuff${LIBGCC_EXT} d468 1 a468 1 ${MAKEDIRTARGET} . do-compat-gnu-lib-libgcc${LIBGCC_EXT} d470 1 @ 1.283 log @build evbppc modules in 3 different flavours: - oea (default) - ibm4xx - booke this, together with earlier machine_module[] work, should allow evbppc platforms to use modules. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.282 2011/01/29 16:56:26 jym Exp $ d202 2 a203 2 .if ${HAVE_GCC} == "3" LIBGCC_EXT=3 d205 1 a205 1 LIBGCC_EXT=4 a446 1 .if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4") a448 1 .endif @ 1.282 log @Pass down INSTALLSETS variable to installsets target. Use :Q to escape shell meta-characters, as the variable contains a list of sets, separated by spaces. $ ./build.sh -V INSTALLSETS="base etc" install=idir should now work as expected. Reviewed by apb@@ on tech-toolchain. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.281 2010/12/03 21:38:46 plunky Exp $ d242 1 a242 1 .if (${MACHINE} != "evbppc") && ${MKKMOD} != "no" @ 1.282.2.1 log @Catchup with rmind-uvmplock merge. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.284 2011/06/20 06:52:36 mrg Exp $ d202 3 a204 1 .if ${HAVE_GCC} == "4" a205 2 .else LIBGCC_EXT=45 d242 1 a242 1 .if ${MKKMOD} != "no" d447 1 d450 1 @ 1.281 log @Remove the do-external-lib and do-gnu-lib targets, along with external/lib/Makefile and crypto/external/lib/Makefile, replacing them all with SUBDIRs directly from lib/Makefile. compat/compatsubdirs.mk becomes simpler now, as everything is built from lib/Makefile, meaning all the libraries will now be built under compat so update the set lists to account for that. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.280 2010/11/28 18:40:54 skrll Exp $ d335 1 a335 1 INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= @ 1.281.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.282 2011/01/29 16:56:26 jym Exp $ d335 1 a335 1 INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=${INSTALLSETS:Q} @ 1.280 log @Centralise USE_COMPILERCRTSTUFF. PCC might need help. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.279 2010/11/22 08:35:44 plunky Exp $ a93 2 # do-gnu-lib: builds and installs prerequisites from gnu/lib. # do-external-lib: builds and installs prerequisites from external/lib. d241 1 a241 1 BUILDTARGETS+= do-lib do-gnu-lib do-external-lib d420 1 a420 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib gnu/lib external/lib crypto/external/lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/kern/lib sys/rump/net/lib sys/modules d431 1 a431 1 .for targ in obj dependall install @ 1.279 log @no need to create a do-lib-libdes target, the directory no longer exists @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.278 2010/07/06 05:59:50 mrg Exp $ d90 2 a91 1 # external/bsd/pcc/crtstuff and external/bsd/pcc/libpcc. d413 1 d415 1 d448 1 d452 1 d460 1 d462 1 d470 1 d472 1 @ 1.278 log @remove almost all the ability to build netbsd with an a.out target. we're ELF now, and there are many missing checks against OBJECT_FMT. if we ever consider switching, the we can figure out what new ones we need but for now it's just clutter. this doesn't remove any of the support for exec_aout or any actually required-for-boot a.out support, only the ability to build a netbsd release in a.out format. ie, most of this code has been dead for over a decade. i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari, amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers the 5 MACHINE_ARCH's affected, and all the other arch code touched. it also includes some actual run-time testing of sparc, i386 and shark, and i performed binary comparison upon amiga and x68k as well. some minor details relevant: - move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them down to only the parts ldconfig needs - remove various unused source files - switch amiga bootblocks to using elf2bb.h instead of aout2bb.h @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.277 2010/06/10 22:41:41 pooka Exp $ d419 1 a419 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib crypto/external/lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/kern/lib sys/rump/net/lib sys/modules @ 1.277 log @descend into sys/rump/kern @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.276 2009/12/13 09:29:27 mrg Exp $ a469 4 .if (${OBJECT_FMT} == "a.out") ${MAKEDIRTARGET} libexec/ld.aout_so ${targ} .endif .if (${OBJECT_FMT} == "ELF") a470 1 .endif @ 1.276 log @adjust the do-compat-* rules now that src/compat/lib and friends no longer exist @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.275 2009/11/30 16:13:22 uebayasi Exp $ d97 1 d246 2 a247 1 BUILDTARGETS+= do-sys-rump-dev-lib do-sys-rump-fs-lib do-sys-rump-net-lib d419 1 a419 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib crypto/external/lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/net/lib sys/modules @ 1.275 log @Support "extsrc", externally added programs and libraries. Users can write their own reach-overs, cross-build, install, and get set files just like base and X11 / X.org. (These sets are not included as TNF releases.) @ text @d1 1 a1 1 # $NetBSD$ d417 1 a417 7 .if ${MKCOMPAT} != "no" BUILD_COMPAT_LIBS= compat/lib/csu ${BUILD_CC_LIB:S/^/compat\//} compat/lib/libc .else BUILD_COMPAT_LIBS= .endif .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib crypto/external/lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/net/lib sys/modules ${BUILD_COMPAT_LIBS} d424 10 @ 1.274 log @build & install librumpdev_netsmb and librumpfs_smbfs components @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.273 2009/08/30 01:49:42 dyoung Exp $ d111 1 d256 3 d489 8 @ 1.273 log @Let us use MKKMOD=yes to leave the kernel modules out of the distribution. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.272 2009/07/03 22:20:27 pooka Exp $ d95 1 d244 1 a244 1 BUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib d419 1 a419 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib crypto/external/lib sys/rump/fs/lib sys/rump/net/lib sys/modules ${BUILD_COMPAT_LIBS} @ 1.272 log @Build modules before rump libs so that something else can be unwarrantedly blamed for a change. This commit follows the style guide and is entirely non-build-tested. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.271 2009/06/07 22:46:12 christos Exp $ d240 1 a240 1 .if (${MACHINE} != "evbppc") @ 1.271 log @add crypto/external to the build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.270 2009/04/23 09:43:49 apb Exp $ a239 1 BUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib d243 1 @ 1.270 log @Make clean_METALOG in distrib/sets early in the build, to ensure that the METALOG does not grow without bounds on multiple MKUPDATE builds. (Previously, sanitise_METALOG in distrib/sets/Makefile used to do something like this near the end of a build.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.269 2009/04/15 10:18:34 tsutsui Exp $ d146 2 a147 1 _SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin d418 1 a418 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib sys/modules ${BUILD_COMPAT_LIBS} @ 1.269 log @Remove an explicit BUILDTARGETS do-compat-external-lib before do-build because now src/compat/Makefile descends there and no particular dependency on 32 bit compat external libs during do-build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.268 2009/02/25 22:28:36 sketch Exp $ d222 1 d385 6 @ 1.268 log @Disable grep host tool and unbreak NetBSD build until I can come up with a clean fix. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.267 2009/02/25 20:38:30 sketch Exp $ a98 2 # do-compat-external-lib: builds and installs prerequisites from # compat/external/lib if ${MKCOMPAT} != "no". a245 1 BUILDTARGETS+= do-compat-external-lib a405 1 BUILD_COMPAT_LIBS+= compat/external/lib @ 1.267 log @Use awk and grep host tools where required. 'build.sh release' now works on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.266 2009/01/19 07:19:09 jmmv Exp $ d183 1 a183 1 AWK=${TOOL_AWK:Q} GREP=${TOOL_GREP:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d188 1 a188 1 AWK=${TOOL_AWK:Q} GREP=${TOOL_GREP:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d193 1 a193 1 AWK=${TOOL_AWK:Q} GREP=${TOOL_GREP:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.266 log @Add the top-level do-compat-external-lib target that mimics do-external-lib so that we can build the compat libraries for ATF. Also add compat/external/lib/Makefile following the same example of external/lib/Makefile, which descends into the external libraries and builds them. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.265 2008/12/30 22:18:11 pooka Exp $ d183 1 a183 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d188 1 a188 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d193 1 a193 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.266.2.1 log @Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.270 2009/04/23 09:43:49 apb Exp $ d99 2 d183 1 a183 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d188 1 a188 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d193 1 a193 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete a223 1 BUILDTARGETS+= clean_METALOG d248 1 a386 6 # Delete or sanitise a leftover METALOG from a previous build. clean_METALOG: .PHONY .MAKE .if ${MKUPDATE} != "no" ${MAKEDIRTARGET} distrib/sets clean_METALOG .endif d409 1 @ 1.265 log @Build kernel modules the same time as the rest of the system libraries. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.264 2008/12/05 19:02:54 cube Exp $ d99 2 d248 1 d409 1 @ 1.264 log @Invoke postinstall with the environment variable MAKE set up to the relevant value, so that postinstall picks up correct values. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.263 2008/11/09 23:02:28 mrg Exp $ d97 1 d239 3 d410 1 a410 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib ${BUILD_COMPAT_LIBS} @ 1.263 log @- retire MKXORG from public use - introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg for the X11 to build if MKX11=yes is set. it takes the values of either Xorg or XFree86. - default to Xorg on alpha, i386, macppc, shark, sparc and sparc64 - remove MKXORG_WITH_XSRC_XSERVER, unused and never useful @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262 2008/10/27 22:32:51 mrg Exp $ d180 1 a180 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d185 1 a185 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d190 1 a190 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.262 log @- enable 32-bit library builds on amd64 and sparc64 - add 3 new top-level targets: do-compat-lib-csu do-compat-libgcc do-compat-lib-libc and run them before "do-build" if ${MKCOMPAT} != "no" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.261 2008/10/25 15:03:44 apb Exp $ d106 3 a108 3 # do-x11: builds and installs X11; either # X11R7 from src/external/mit/xorg if ${MKXORG} != "no" # or X11R6 from src/x11 if ${MKX11} != "no" d245 1 a245 1 .if ${MKX11} != "no" || ${MKXORG} != "no" d461 2 a462 1 .if ${MKXORG} != "no" d464 1 a464 1 .elif ${MKX11} != "no" d466 1 d468 1 a468 1 @@echo "Neither MKX11 or MKXORG is enabled" @ 1.262.2.1 log @Pull up following revision(s) (requested by mrg in ticket #64): distrib/sets/Makefile: revision 1.64 external/mit/xorg/server/Makefile: revision 1.5 share/mk/bsd.README: revision 1.237 BUILDING: revision 1.79 share/mk/bsd.x11.mk: revision 1.71 share/mk/bsd.own.mk: revision 1.544 usr.bin/ssh/Makefile.inc: revision 1.18 distrib/sets/sets.subr: revision 1.72 share/man/man5/mk.conf.5: revision 1.42 doc/BUILDING.mdoc: revision 1.68 etc/Makefile: revision 1.360 Makefile: revision 1.263 - retire MKXORG from public use - introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg for the X11 to build if MKX11=yes is set. it takes the values of either Xorg or XFree86. - default to Xorg on alpha, i386, macppc, shark, sparc and sparc64 - remove MKXORG_WITH_XSRC_XSERVER, unused and never useful @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262 2008/10/27 22:32:51 mrg Exp $ d106 3 a108 3 # do-x11: builds and installs X11 if ${MKX11} != "no"; either # X11R7 from src/external/mit/xorg if ${X11FLAVOUR} == "Xorg" # or X11R6 from src/x11 d245 1 a245 1 .if ${MKX11} != "no" d461 1 a461 2 .if ${MKX11} != "no" .if ${X11FLAVOUR} == "Xorg" d463 1 a463 1 .else a464 1 .endif d466 1 a466 1 @@echo "MKX11 is not enabled" @ 1.262.2.2 log @Pull up following revision(s) (requested by cube in ticket #168): Makefile: revision 1.264 Invoke postinstall with the environment variable MAKE set up to the relevant value, so that postinstall picks up correct values. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262.2.1 2008/11/15 22:05:11 snj Exp $ d180 1 a180 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d185 1 a185 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d190 1 a190 1 MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.262.2.3 log @Pull up following revision(s) (requested by sketch in ticket #536): etc/Makefile: revision 1.364 Makefile: revision 1.267 usr.sbin/postinstall/postinstall: revision 1.90 usr.bin/hexdump/parse.c: revision 1.25 sys/arch/x86/acpi/genwakecode.sh: revision 1.3 usr.sbin/postinstall/postinstall: revision 1.87 usr.sbin/postinstall/postinstall: revision 1.88 usr.sbin/postinstall/postinstall: revision 1.89 sys/arch/x86/acpi/Makefile.wakecode.inc: revision 1.4 sys/conf/Makefile.kern.inc: revision 1.120 Use ll instead of non-standard q as length modifier in format strings. Makes this work on Solaris. OK by apb. Not every grep knows -q. Ok by apb. Use sed, awk and hexdump from tools to make this work on Solaris. Ok by apb. Use awk and grep host tools where required. 'build.sh release' now works on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now). "grep -q" is not portable; use "grep >/dev/null" instead. Also add a comment saying that postinstal is invoked during a cross build. In file_exists_exact(), fix an incorrect test of "1" instead of "$1", and improve the comment explaining what this function does. As long as we don't yet have a working TOOL_GREP, fgrep is more portablethan grep -F. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262.2.2 2008/12/06 22:07:34 snj Exp $ d180 1 a180 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d185 1 a185 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d190 1 a190 1 AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.262.2.4 log @Apply patch (requested by mrg in ticket #1499): src/compat version 2. this allows building any number of alternate library / program target ABIs. rather than duplicating the list of subdirs and Makefiles to build, it re-traverses the necessary ones. details: - add support for MAKEDIRTARGETENV to share/mk - renames LD32DIR to MLIBDIR - fixes library builds for some subdirs (more was built than needed) - fixes /bin & /sbin apps in compat mode - reduces complexity in src/compat and the rest of the tree - updates ldd netbsd32 support @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262.2.3 2009/03/27 14:50:35 msaitoh Exp $ d400 7 a406 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib a412 10 .if ${MKCOMPAT} != "no" COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc .for dir in ${COMPAT_SUBDIR_LIST} do-compat-${dir:S/\//-/g}: .PHONY .MAKE .for targ in obj dependall install ${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}" .endfor .endfor .endif @ 1.262.2.5 log @Pull up following revision(s) (requested by jym in ticket #1565): Makefile: revision 1.282 via patch BUILDING: revision 1.92 via patch Pass down INSTALLSETS variable to installsets target. Use :Q to escape shell meta-characters, as the variable contains a list of sets, separated by spaces. $ ./build.sh -V INSTALLSETS="base etc" install=idir should now work as expected. Reviewed by apb@@ on tech-toolchain. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.282 2011/01/29 16:56:26 jym Exp $ d323 1 a323 1 INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=${INSTALLSETS:Q} @ 1.262.2.3.4.1 log @pullup from -current: >revision 1.276 >date: 2009/12/13 09:29:27; author: mrg; state: Exp; lines: +12 -8 >adjust the do-compat-* rules now that src/compat/lib and friends no longer exist @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.262.2.3 2009/03/27 14:50:35 msaitoh Exp $ d400 7 a406 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib a412 10 .if ${MKCOMPAT} != "no" COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc .for dir in ${COMPAT_SUBDIR_LIST} do-compat-${dir:S/\//-/g}: .PHONY .MAKE .for targ in obj dependall install ${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}" .endfor .endfor .endif @ 1.261 log @Add a do-top-obj target, which builds the top-level obj directory. This uses the new NOSUBDIR support in bsd.subdir.mk. Insert do-top-obj near the beginning of BUILDTARGETS. The first few items are now: cleandir: cleans the tree. do-top-obj: creates the top level object directory. do-tools-obj: creates object directories for the host toolchain. do-tools: builds host toolchain. obj: creates object directories. Also improve a comment and split a long line where SUBDIR is set from _SUBDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.260 2008/10/22 17:37:16 apb Exp $ d98 7 d146 1 a146 1 _SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress d238 5 d400 7 a406 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib d429 8 @ 1.260 log @Defer the "make obj" step until after tools are built and installed. There may be commands embedded in "!=" assignments that depend on tools being available, and previously these would have printed error messages during "make obj". They may still print error messages during "make cleandir", which (if it is performed at all) is performed before tools are built. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.259 2008/10/16 09:43:12 pooka Exp $ d77 1 d134 4 a140 4 # # Weed out directories that don't exist. # d142 2 a143 1 .if ("${dir}" == ".WAIT") || exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no") d202 4 a205 1 .if ${USETOOLS} == "yes" d210 1 a210 1 .endif d395 3 @ 1.259 log @add do-sys-rump-net-lib @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.258 2008/10/03 18:09:48 jnemeth Exp $ d77 2 a79 1 # do-tools: builds host toolchain. d200 1 d202 1 a202 1 BUILDTARGETS+= obj a203 1 .if ${USETOOLS} == "yes" d206 3 d390 3 @ 1.258 log @PR/39687 - Henning Petersen -- comment typo @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.257 2008/08/28 07:21:49 lukem Exp $ d93 2 a94 1 # do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib d221 1 a221 1 BUILDTARGETS+= do-sys-rump-fs-lib d379 1 a379 1 .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib @ 1.257 log @Improve support for MKXORG!=no to enable builds into external/mit/xorg. This will be mutually exclusive to MKX11!=no. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.256 2008/08/24 05:56:20 gmcgarry Exp $ d97 1 a97 1 # X11R7 from src/external/mit/xorg if ${MKORG} != "no" @ 1.256 log @Build pcc and pcc-based crtstuff if using pcc compiler. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.255 2008/07/29 13:17:40 pooka Exp $ d96 3 a98 1 # do-x11: builds and installs X11R6 from src/x11 if ${MKX11} != "no" d223 1 a223 1 .if ${MKX11} != "no" d421 2 d424 2 a425 1 ${MAKEDIRTARGET} x11 build @ 1.255 log @Install rump libraries and utilities to the base system and remove the private non-installed build infrastructure from sys/rump. breakdown of commit: * install relevant headers into /usr/include/rump * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern from src/lib and install as librumpuser and librump, respectively + this retains the ability to test a librump build with just the kernel sources at hand * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib for general consumption, they are not kernel-space dwellers anyway * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k * build and install userspace kernel file system daemons if MKPUFFS=yes is spexified * retire fsconsole for now, it will make a comeback with an actually implemented version shortly @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.254 2008/07/29 04:49:43 mrg Exp $ d87 2 d184 1 d190 1 d213 3 d368 9 a376 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib d384 1 d391 9 @ 1.254 log @if MKXORG != no, use external/mit/xorg subdir instead of x11 subdir for the mk-x11 target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.253 2008/05/22 14:13:58 lukem Exp $ d91 1 d211 1 d361 1 a361 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib @ 1.253 log @Descend into external. Add 'do-external-lib' target to build external/lib "early" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.252 2008/03/18 04:24:38 lukem Exp $ d390 3 d394 1 @ 1.252 log @Consistently document RELEASEDIR/RELEASEMACHINEDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.251 2007/11/12 15:06:45 jmmv Exp $ d90 1 d126 1 a126 1 _SUBDIR= tools lib include gnu bin games libexec sbin usr.bin d209 1 a209 1 BUILDTARGETS+= do-lib do-gnu-lib d359 1 a359 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib @ 1.252.4.1 log @Sync w/ -current. 34 merge conflicts to follow. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.252 2008/03/18 04:24:38 lukem Exp $ a89 1 # do-external-lib: builds and installs prerequisites from external/lib. d125 1 a125 1 _SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin d208 1 a208 1 BUILDTARGETS+= do-lib do-gnu-lib do-external-lib d358 1 a358 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib @ 1.252.4.2 log @Sync with wrstuden-revivesa-base-2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.252.4.1 2008/06/23 04:26:43 wrstuden Exp $ a86 2 # do-libpcc: builds and install prerequisites from # external/bsd/pcc/crtstuff and external/bsd/pcc/libpcc. a90 1 # do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib d93 1 a93 3 # do-x11: builds and installs X11; either # X11R7 from src/external/mit/xorg if ${MKORG} != "no" # or X11R6 from src/x11 if ${MKX11} != "no" a180 1 .if defined(HAVE_GCC) a185 1 .endif a207 3 .if ${MKPCC} != "no" BUILDTARGET+= do-libpcc .endif a209 1 BUILDTARGETS+= do-sys-rump-fs-lib d212 1 a212 1 .if ${MKX11} != "no" || ${MKXORG} != "no" d359 1 a359 9 .if defined(HAVE_GCC) BUILD_CC_LIB= gnu/lib/crtstuff${LIBGCC_EXT} BUILD_CC_LIB+= gnu/lib/libgcc${LIBGCC_EXT} .elif defined(HAVE_PCC) BUILD_CC_LIB+= external/bsd/pcc/crtstuff BUILD_CC_LIB+= external/bsd/pcc/libpcc .endif .for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib a366 1 .if defined(HAVE_GCC) a372 9 .endif do-libpcc: .PHONY .MAKE .if defined(HAVE_PCC) .if ${MKPCC} != "no" ${MAKEDIRTARGET} . do-pcc-lib-crtstuff ${MAKEDIRTARGET} . do-pcc-lib-libpcc .endif .endif a389 3 .if ${MKXORG} != "no" ${MAKEDIRTARGET} external/mit/xorg build .elif ${MKX11} != "no" a390 4 .else @@echo "Neither MKX11 or MKXORG is enabled" @@false .endif @ 1.252.2.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.252 2008/03/18 04:24:38 lukem Exp $ a89 1 # do-external-lib: builds and installs prerequisites from external/lib. d125 1 a125 1 _SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin d208 1 a208 1 BUILDTARGETS+= do-lib do-gnu-lib do-external-lib d358 1 a358 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib @ 1.251 log @Add the tests.tgz set This adds a new tests.tgz set to releases which includes all the tests for the system. It is important to note that this set does not rely on comp.tgz: a user of the system can run the tests without having the development tools installed, which can be useful in a production machine. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.250 2007/10/07 16:35:21 pavel Exp $ d54 1 a54 1 # into RELEASEDIR/${MACHINE}, in release(7) format. d59 2 a60 1 # Populate ${RELEASEDIR}/${MACHINE}/binary/sets from ${DESTDIR} d64 2 a65 1 # Populate ${RELEASEDIR}/${MACHINE}/binary/syspkgs from ${DESTDIR} @ 1.251.4.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.252 2008/03/18 04:24:38 lukem Exp $ d54 1 a54 1 # into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. d59 1 a59 2 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets # from ${DESTDIR} d63 1 a63 2 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs # from ${DESTDIR} @ 1.250 log @Do not abort on exit code 1 from postinstall check, this is expected. Reported, fix suggested and tested by David Holland. (Why does "make build" invoke postinstall check on destdir is another question, it does not seem to have much sense.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.249 2007/09/07 04:20:44 lukem Exp $ d124 1 a124 1 _SUBDIR+= usr.sbin share rescue sys etc .WAIT distrib regress @ 1.249 log @Provide 'do-libgcc' to build gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and then gnu/lib/libgcc${LIBGCC_EXT}. Makes it easier to cut&paste from the list of targets built with 'make build'. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.248 2007/08/30 05:30:02 jnemeth Exp $ d161 1 a161 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check @ 1.248 log @Add an iso-image-source option which does the same thing as iso-image but includes source sets as well. The infrastructure for this was already there, although it needed a bug fix. Will look at adding arbitrary directories next. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.247 2007/03/06 21:56:47 bouyer Exp $ d82 3 a84 3 # do-gnu-lib-crtstuff3: builds and installs prerequisites from # gnu/lib/crtstuff3 # do-gnu-lib-libgcc3: builds and installs prerequisites from gnu/lib/libgcc3 d203 1 a203 4 .if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4") BUILDTARGETS+= do-gnu-lib-crtstuff${LIBGCC_EXT} .endif BUILDTARGETS+= do-gnu-lib-libgcc${LIBGCC_EXT} d363 8 @ 1.247 log @Add an iso_image target (iso-image as a target name doesn't play well with bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for: alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax. mac68k/macppc no there yet because of missing feature in makefs. call iso_image in distrib/ for iso-image in the top Makefile. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246 2006/09/07 03:51:44 dbj Exp $ d65 1 a65 1 # Create CD-ROM image in RELEASEDIR/MACHINE/installation. d68 4 d326 6 @ 1.247.4.1 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.250 2007/10/07 16:35:21 pavel Exp $ d65 1 a65 1 # Create CD-ROM image in RELEASEDIR/iso. a67 4 # iso-image-source: # Create CD-ROM image with source in RELEASEDIR/iso. # RELEASEDIR must already have been populated by # `make release sourcesets' or equivalent. d78 3 a80 3 # do-libgcc: builds and installs prerequisites from # gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and # gnu/lib/libgcc${LIBGCC_EXT}. d157 1 a157 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi d199 4 a202 1 BUILDTARGETS+= do-libgcc a321 6 iso-image-source: .PHONY ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true ${MAKEDIRTARGET} etc iso-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date a355 8 do-libgcc: .PHONY .MAKE .if ${MKGCC} != "no" .if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4") ${MAKEDIRTARGET} . do-gnu-lib-crtstuff${LIBGCC_EXT} .endif ${MAKEDIRTARGET} . do-gnu-lib-libgcc${LIBGCC_EXT} .endif @ 1.247.4.2 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD$ d124 1 a124 1 _SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress @ 1.247.4.3 log @sync with HEAD @ text @d1 1 a1 1 # Makefile,v 1.247.4.2 2008/01/09 01:19:18 matt Exp d54 1 a54 1 # into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. d59 1 a59 2 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets # from ${DESTDIR} d63 1 a63 2 # Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs # from ${DESTDIR} @ 1.246 log @don't filter out .WAIT when converting from _SUBDIR to SUBDIR @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.245 2006/06/02 22:16:18 mrg Exp $ d317 1 @ 1.246.2.1 log @Pull up following revision(s) (requested by bouyer in ticket #494): sys/arch/i386/conf/GENERIC.MP: revision 1.9 distrib/pc532/cdroms/installcd/Makefile: revision 1.1 distrib/macppc/Makefile: revision 1.15 distrib/ofppc/Makefile: revision 1.2 distrib/ibmnws/Makefile: revision 1.2 distrib/acorn32/Makefile: revision 1.18 distrib/x68k/cdroms/installcd/Makefile: revision 1.1 distrib/sparc/Makefile: revision 1.7 distrib/sparc64/cdroms/Makefile: revision 1.1 distrib/hp300/cdroms/Makefile: revision 1.1 distrib/hpcsh/Makefile: revision 1.6 distrib/ofppc/cdroms/installcd/Makefile: revision 1.1 distrib/playstation2/Makefile: revision 1.13 distrib/news68k/cdroms/installcd/Makefile: revision 1.1 distrib/amiga/cdroms/installcd/Makefile: revision 1.1 distrib/hp700/cdroms/installcd/Makefile: revision 1.1 distrib/playstation2/cdroms/Makefile: revision 1.1 distrib/amiga/cdroms/Makefile: revision 1.1 etc/etc.mac68k/Makefile.inc: revision 1.18 distrib/shark/cdroms/installcd/Makefile: revision 1.1 distrib/hpcmips/Makefile: revision 1.28 distrib/hpcmips/cdroms/Makefile: revision 1.1 distrib/amd64/floppies/Makefile: revision 1.3 sys/arch/amd64/conf/INSTALL_ACPI: file removal distrib/i386/cdroms/Makefile: revision 1.4 distrib/acorn26/cdroms/installcd/Makefile: revision 1.1 distrib/hpcsh/cdroms/Makefile: revision 1.1 distrib/prep/cdroms/Makefile: revision 1.1 distrib/pc532/Makefile: revision 1.4 distrib/acorn32/cdroms/installcd/Makefile: revision 1.1 distrib/sun2/Makefile: revision 1.8 distrib/vax/Makefile: revision 1.17 distrib/sparc64/cdroms/installcd/Makefile: revision 1.1 distrib/pmax/cdroms/Makefile: revision 1.1 distrib/mipsco/cdroms/installcd/Makefile: revision 1.1 distrib/sun3/cdroms/installcd/Makefile: revision 1.1 distrib/vax/cdroms/installcd/Makefile: revision 1.1 distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1 distrib/mvme68k/Makefile: revision 1.4 distrib/mvmeppc/cdroms/Makefile: revision 1.1 distrib/newsmips/Makefile: revision 1.4 sys/arch/i386/conf/GENERIC.MPACPI: file removal distrib/hpcarm/cdroms/Makefile: revision 1.1 distrib/evbppc/cdroms/Makefile: revision 1.1 sys/arch/i386/conf/INSTALL_LARGE: revision 1.1 distrib/i386/cdroms/installcd/Makefile: revision 1.2 distrib/i386/cdroms/installcd/Makefile: revision 1.3 doc/CHANGES: revision 1.804 distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1 distrib/i386/cdroms/bootcd/Makefile: revision 1.2 distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1 distrib/i386/cdroms/bootcd/Makefile: revision 1.3 distrib/evbarm/Makefile: revision 1.8 distrib/mvmeppc/Makefile: revision 1.3 distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2 distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3 distrib/macppc/cdroms/installcd/Makefile: revision 1.1 distrib/acorn26/cdroms/Makefile: revision 1.1 distrib/alpha/cdroms/Makefile: revision 1.1 distrib/hp300/cdroms/installcd/Makefile: revision 1.1 distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4 distrib/pmppc/cdroms/installcd/Makefile: revision 1.1 distrib/hp700/Makefile: revision 1.2 distrib/pmppc/Makefile: revision 1.2 distrib/arc/cdroms/Makefile: revision 1.1 sys/arch/amd64/conf/INSTALL: revision 1.66 distrib/sun3/cdroms/Makefile: revision 1.1 distrib/mipsco/Makefile: revision 1.4 distrib/sun3/Makefile: revision 1.9 distrib/vax/cdroms/Makefile: revision 1.1 distrib/pmppc/cdroms/Makefile: revision 1.1 distrib/amd64/cdroms/Makefile.cdrom: revision 1.1 distrib/atari/cdroms/installcd/Makefile: revision 1.1 distrib/evbppc/cdroms/installcd/Makefile: revision 1.1 distrib/newsmips/cdroms/installcd/Makefile: revision 1.1 distrib/pmax/Makefile: revision 1.4 Makefile: revision 1.247 distrib/cats/cdroms/installcd/Makefile: revision 1.1 sys/arch/amd64/conf/GENERIC: revision 1.130 sys/arch/amd64/conf/GENERIC: revision 1.131 distrib/sgimips/cdroms/installcd/Makefile: revision 1.1 distrib/hp700/cdroms/Makefile: revision 1.1 distrib/cats/cdroms/Makefile: revision 1.1 distrib/evbmips/Makefile: revision 1.3 distrib/evbmips/Makefile: revision 1.4 sys/arch/amd64/conf/GENERIC_ACPI: file removal distrib/ews4800mips/Makefile: revision 1.2 distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2 distrib/i386/Makefile: revision 1.5 distrib/amd64/cdroms/installcd/Makefile: revision 1.2 distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1 distrib/alpha/cdroms/installcd/Makefile: revision 1.1 etc/etc.amd64/Makefile.inc: revision 1.7 distrib/i386/instkernel/Makefile: revision 1.6 distrib/x68k/cdroms/Makefile: revision 1.1 distrib/i386/cdroms/Makefile.cdrom: revision 1.1 distrib/sandpoint/Makefile: revision 1.4 distrib/i386/cdroms/Makefile.cdrom: revision 1.2 distrib/amiga/Makefile: revision 1.3 distrib/amd64/cdroms/bootcd/Makefile: revision 1.2 distrib/news68k/Makefile: revision 1.4 distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5 distrib/news68k/cdroms/Makefile: revision 1.1 distrib/sparc/cdroms/Makefile: revision 1.1 distrib/shark/cdroms/Makefile: revision 1.1 etc/Makefile: revision 1.341 distrib/amd64/instkernel/Makefile: revision 1.2 distrib/sparc64/Makefile: revision 1.7 distrib/dreamcast/cdroms/Makefile: revision 1.1 distrib/shark/Makefile: revision 1.3 distrib/ews4800mips/cdroms/Makefile: revision 1.1 distrib/sun2/cdroms/installcd/Makefile: revision 1.1 distrib/shark/Makefile: revision 1.4 distrib/macppc/cdroms/Makefile: revision 1.1 distrib/mvme68k/cdroms/Makefile: revision 1.1 distrib/sun2/cdroms/Makefile: revision 1.1 distrib/hpcarm/Makefile: revision 1.3 distrib/arc/cdroms/installcd/Makefile: revision 1.1 distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1 distrib/mipsco/cdroms/Makefile: revision 1.1 distrib/Makefile.inc: revision 1.9 distrib/playstation2/cdroms/installcd/Makefile: revision 1.1 distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1 distrib/newsmips/cdroms/Makefile: revision 1.1 distrib/arc/Makefile: revision 1.3 distrib/sparc/cdroms/installcd/Makefile: revision 1.1 distrib/evbmips/cdroms/installcd/Makefile: revision 1.1 distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1 distrib/prep/Makefile: revision 1.3 distrib/ibmnws/cdroms/Makefile: revision 1.1 distrib/sandpoint/cdroms/Makefile: revision 1.1 distrib/atari/Makefile: revision 1.6 distrib/sgimips/cdroms/Makefile: revision 1.1 distrib/amd64/Makefile: revision 1.4 distrib/atari/cdroms/Makefile: revision 1.1 distrib/x68k/Makefile: revision 1.5 distrib/x68k/Makefile: revision 1.6 distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1 distrib/evbarm/cdroms/Makefile: revision 1.1 distrib/acorn32/cdroms/Makefile: revision 1.1 distrib/cats/Makefile: revision 1.3 distrib/evbmips/cdroms/Makefile: revision 1.1 distrib/pc532/cdroms/Makefile: revision 1.1 distrib/Makefile: revision 1.14 distrib/evbarm/cdroms/installcd/Makefile: revision 1.1 distrib/ofppc/cdroms/Makefile: revision 1.1 distrib/amd64/cdroms/Makefile: revision 1.3 distrib/common/Makefile.bootcd: revision 1.8 distrib/i386/cdroms/bootcd-laptop/Makefile: file removal sys/arch/i386/conf/GENERIC: revision 1.813 distrib/hp300/Makefile: revision 1.17 sys/arch/i386/conf/GENERIC: revision 1.814 distrib/evbppc/Makefile: revision 1.2 distrib/pmax/cdroms/installcd/Makefile: revision 1.1 etc/etc.i386/Makefile.inc: revision 1.49 distrib/sgimips/Makefile: revision 1.2 distrib/prep/cdroms/installcd/Makefile: revision 1.1 distrib/acorn26/Makefile: revision 1.4 distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1 distrib/alpha/Makefile: revision 1.22 distrib/dreamcast/Makefile: revision 1.2 Improve the use of makefs to build boot CDs, and make it truely MI: - allow to specify the "instkernel" directory, and allow to put multiple kernels on the image - allow to specify the directory where the image will be created - only use bootxx_cd9660 if it exists - search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to usr/mdec/boot - make 'installboot -e' optional - use target 'release' or 'iso_image' depending on ${CDRELEASE} - call some MD targets, which will eventually complete the file list or make the image bootable For the benefit of modern hardware, enable ACPI by default in INSTALL and GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and 'disable acpi' should be a workaround. ACPI-enabled kernels works fine on pre-acpi hardware. for amd64: - add ACPI to INSTALL and GENERIC, remove the *_ACPI config files. - get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot image for i386: - introduce INSTALL_LARGE which has ACPI and some devices with big firmware - move some devices from INSTALL to INSTALL_LARGE - Boot floppies still use INSTALL, and bootfloppy-big.fs is still there (for thoses who want to build el-torito floppy emulation boot CD) and use INSTALL. For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll use something else to build bootable CDs. Add an iso_image target (iso-image as a target name doesn't play well with bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for: alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax. mac68k/macppc no there yet because of missing feature in makefs. call iso_image in distrib/ for iso-image in the top Makefile. Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO images. amd64 gets a single kernel; i386 images gets 3 kernels: - netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default - nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz - nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal non-ACPI kernel - drop the bootcd-laptop image both gets an installcd image, which is the same as bootcd but with the binary sets in addition to kernels. Make iso-image do nothing for all but mac68k, which still relies on mkisofs to create bootable ISO image. macppc should also be there, but it seems the code to make an iso bootable never got added in etc.macppc/ Fix typo in subdir name. Revert local changes that went in accidentally with the "add ACPI" commit. Note ACPI by default in i386/amd64, and the iso-image changes. Fix SUBDIR in previous Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly. Correct typo: the directory is named cdroms, not cdrom. Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by Alan Barrett. While there factor out the kernels in Makefile.cdrom. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246 2006/09/07 03:51:44 dbj Exp $ a316 1 ${MAKEDIRTARGET} distrib iso_image @ 1.246.2.1.2.1 log @Catch up w/ last night's netbsd-4 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246.2.2 2007/09/29 11:10:56 xtraeme Exp $ d65 1 a65 1 # Create CD-ROM image in RELEASEDIR/iso. a67 4 # iso-image-source: # Create CD-ROM image with source in RELEASEDIR/iso. # RELEASEDIR must already have been populated by # `make release sourcesets' or equivalent. a321 6 iso-image-source: .PHONY ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true ${MAKEDIRTARGET} etc iso-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date @ 1.246.2.1.2.2 log @Catch up to netbsd-4.0 release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246.2.1.2.1 2007/09/30 20:27:37 wrstuden Exp $ d161 1 a161 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi @ 1.246.2.2 log @Pull up following revision(s) (requested by jnemeth in ticket #864): distrib/common/Makefile.bootcd: revision 1.9 distrib/common/Makefile.bootcd: revision 1.10 distrib/common/Makefile.bootcd: revision 1.11 doc/BUILDING.mdoc: revision 1.51 doc/BUILDING.mdoc: revision 1.52 doc/BUILDING.mdoc: revision 1.53 build.sh: revision 1.172 build.sh: revision 1.173 build.sh: revision 1.174 build.sh: revision 1.175 BUILDING: revision 1.64 BUILDING: revision 1.65 BUILDING: revision 1.66 share/man/man7/release.7: revision 1.23 share/man/man7/release.7: revision 1.24 Makefile: revision 1.248 Add an iso-dir=directory option. When combined with iso-image or iso-image-source, it will cause directory to be added to the CD-ROM image. Convert build.sh iso-dir=directory option to -C cddir as per jmmv@@ on source-changes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246.2.1 2007/03/09 06:59:37 riz Exp $ d65 1 a65 1 # Create CD-ROM image in RELEASEDIR/iso. a67 4 # iso-image-source: # Create CD-ROM image with source in RELEASEDIR/iso. # RELEASEDIR must already have been populated by # `make release sourcesets' or equivalent. a321 6 iso-image-source: .PHONY ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true ${MAKEDIRTARGET} etc iso-image @@echo "make ${.TARGET} started at: ${START_TIME}" @@printf "make ${.TARGET} finished at: " && date @ 1.246.2.3 log @Pull up following revision(s) (requested by pavel in ticket #947): Makefile: revision 1.250 usr.sbin/postinstall/postinstall: revision 1.51 usr.sbin/postinstall/postinstall: revision 1.52 Return exit status 1 for failed chacks/fixes, 2 for errors. Suggested by hubertf. Use exit status 3 for internal errors (misuse of internal functions). Add a check for obsolete sendmail in /etc/mailer.conf, installs a fresh copy of the file if invoked as "fix". Not enabled by default. Do not abort on exit code 1 from postinstall check, this is expected. Reported, fix suggested and tested by David Holland. (Why does "make build" invoke postinstall check on destdir is another question, it does not seem to have much sense.) @ text @d1 1 a1 1 # $NetBSD$ d161 1 a161 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi @ 1.246.2.4 log @Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23 with the associated build infrastructure as of 20090929 from HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246.2.3 2007/10/26 14:23:20 liamjfoy Exp $ d123 1 a123 1 _SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin d209 1 a209 1 BUILDTARGETS+= do-lib do-gnu-lib do-external-lib d359 1 a359 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib @ 1.246.2.3.2.1 log @Apply patch (requested by joerg in ticket #1322): Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23 with the associated build infrastructure as of 20090529 from HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.246.2.3 2007/10/26 14:23:20 liamjfoy Exp $ d123 1 a123 1 _SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin d209 1 a209 1 BUILDTARGETS+= do-lib do-gnu-lib do-external-lib d359 1 a359 1 .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib external/lib @ 1.245 log @remove support for building (with) GCC 2.95. also: - always install - don't generate a fake one for vax / gettext. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.244 2006/04/07 19:38:58 mrg Exp $ d127 1 a127 1 .if exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no") @ 1.244 log @retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.243 2006/01/28 21:34:08 apb Exp $ d174 1 a174 2 .if ${USE_TOOLS_TOOLCHAIN} == "no" . if ${HAVE_GCC} == "3" d176 1 a176 1 . else a177 3 . endif .else LIBGCC_EXT= @ 1.243 log @* Add an "iso-image" target in the top level Makefile, which invokes make iso-image in the etc directory. * Add an "iso-image" action in build.sh, which invokes make iso-image. * Document the above in doc/BUILDING.mdoc. * Re-generate BUILDING. Approved by christos @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.242 2006/01/21 19:01:15 dsl Exp $ d175 1 d177 3 d203 1 a203 1 .if ${HAVE_GCC3} != "no" @ 1.242 log @Add .MAKE to all targets that use ${MAKEDIRTARGET} otherwise make closes the job-token pipe and the sub-makes have their own '-j n' processes. As well as giving unexpected parallelism, it makes it impossible to stop the build promptly on errors. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.241 2006/01/04 15:30:02 apb Exp $ d64 4 d313 9 @ 1.241 log @Add a new "syspkgs" target, which simply chains to the "syspkgs" target in distrib/sets/Makefile. Reviewed by agc @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.240 2005/08/25 02:04:39 lukem Exp $ d129 1 a129 1 regression-tests: .PHONY d138 1 a138 1 afterinstall: .PHONY d223 1 a223 1 build: .PHONY d241 1 a241 1 distribution buildworld: .PHONY d265 1 a265 1 installworld: .PHONY d292 1 a292 1 ${tgt}: .PHONY d302 1 a302 1 release snapshot: .PHONY d323 1 a323 1 do-distrib-dirs: .PHONY d336 1 a336 1 do-${dir:S/\//-/g}: .PHONY d342 1 a342 1 do-ld.so: .PHONY d352 1 a352 1 do-build: .PHONY d357 1 a357 1 do-x11: .PHONY d360 1 a360 1 do-obsolete: .PHONY d398 1 a398 1 params: .PHONY @ 1.240 log @Modify "release" to invoke "make distribution" instead of "make build", so that the "obsolete file removal" functionality of "distribution" is used. Fixes build problems numerous people have experienced with MKUPDATE=yes and the "release" target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.239 2005/04/17 15:18:34 lukem Exp $ d62 2 d291 1 a291 1 .for tgt in sets sourcesets @ 1.239 log @use usr.sbin/postinstall/postinstall instead of etc/postinstall @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.238 2005/01/01 10:32:39 lukem Exp $ d53 1 a53 1 # Does a `make build', and then tars up the DESTDIR files d295 1 a295 1 # Build a release or snapshot (implies "make build"). Note that d301 2 a302 2 ${MAKEDIRTARGET} . build NOPOSTINSTALL=1 ${MAKEDIRTARGET} etc release INSTALL_DONE=1 @ 1.238 log @correct the comment describing the build order @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.237 2004/09/02 02:02:38 tacha Exp $ d147 2 d151 1 a151 1 ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ check d156 1 a156 1 ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ fix d161 1 a161 1 ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.238.2.1 log @Pull up revision 1.239 (requested by lukem in ticket #165): use usr.sbin/postinstall/postinstall instead of etc/postinstall @ text @d1 1 a1 1 # $NetBSD$ a146 2 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall d149 1 a149 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check d154 1 a154 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix d159 1 a159 1 ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @ 1.238.2.2 log @Pull up following revision(s) (requested by lukem in ticket #716): Makefile: revision 1.240 Modify "release" to invoke "make distribution" instead of "make build", so that the "obsolete file removal" functionality of "distribution" is used. Fixes build problems numerous people have experienced with MKUPDATE=yes and the "release" target. @ text @d53 1 a53 1 # Does a `make distribution', and then tars up the DESTDIR files d295 1 a295 1 # Build a release or snapshot (implies "make distribution"). Note that d301 2 a302 2 ${MAKEDIRTARGET} . distribution ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1 @ 1.238.2.3 log @Backout ticket #716 because it causes build failures if "build.sh" is used with the "-j" argument. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.238.2.1 2005/04/20 11:23:52 tron Exp $ d53 1 a53 1 # Does a `make build', and then tars up the DESTDIR files d295 1 a295 1 # Build a release or snapshot (implies "make build"). Note that d301 2 a302 2 ${MAKEDIRTARGET} . build NOPOSTINSTALL=1 ${MAKEDIRTARGET} etc release INSTALL_DONE=1 @ 1.238.2.4 log @Pull up following revision(s) (requested by lukem in ticket #716): Makefile: revision 1.240 Modify "release" to invoke "make distribution" instead of "make build", so that the "obsolete file removal" functionality of "distribution" is used. Fixes build problems numerous people have experienced with MKUPDATE=yes and the "release" target. @ text @d1 1 a1 1 # $NetBSD$ d53 1 a53 1 # Does a `make distribution', and then tars up the DESTDIR files d295 1 a295 1 # Build a release or snapshot (implies "make distribution"). Note that d301 2 a302 2 ${MAKEDIRTARGET} . distribution ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1 @ 1.237 log @DO do-gnu-lib-crtstuff${LIBGCC_EXT} only when ${HAVE_GCC3} != "no", since we don't have crtstuff subdirectory. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.236 2004/08/28 00:18:38 thorpej Exp $ d71 1 a74 1 # do-lib-csu: builds and installs prerequisites from lib/csu. @ 1.236 log @Switch to using GCC's supplied crtbegin / crtend files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.235 2004/07/30 07:05:11 lukem Exp $ d191 1 d193 1 @ 1.235 log @The do-lib-libdes BUILDTARGET is unnecessary now we have the DEPLIBS support that I added to src/lib/Makefile.inc. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.234 2004/05/17 07:00:16 lukem Exp $ d71 2 d191 1 d329 1 a329 1 .for dir in tools tools/compat lib/csu gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib @ 1.234 log @Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to etc/Makefile::distribution, and only perform if ${MKX11}!=no. Should fix a problem experienced by Alistair whilst doing a "make release". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.233 2004/05/16 10:27:21 lukem Exp $ a73 1 # do-lib-libdes: builds and installs prerequisites from lib/libdes. a191 3 .if ${MKCRYPTO} != "no" BUILDTARGETS+= do-lib-libdes .endif @ 1.233 log @Perform 'make distribution' in ./x11/ as part of the distribution target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.232 2004/04/13 12:43:12 lukem Exp $ a242 1 ${MAKEDIRTARGET} x11 distribution @ 1.232 log @Convert lines of the form (cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget) to ${MAKEDIRTARGET} somedir atarget AVAR=value which results in a "prettier" display of these operations @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.231 2004/02/15 19:52:27 skrll Exp $ d243 1 @ 1.231 log @Be more gcc like in the way we deal with libgcc so that sh3/hppa millicode and exception handling have a chance of working properly. - creates libgcc, libgcc_eh and libgcc_s - updates LIBGCC_SPEC to use them appropriately. There's a hack in here at the moment with respect to libgcc_so in that it is preferable to link against libgcc_so will only when -shared-libgcc is specified (the c++ frontend does this automatically.) Configurations where LINK_EH_SPEC is defined already do this. The gcc configuration for NetBSD/alpha and another NetBSD platform (I forget which) actually define LINK_EH_SPEC probably by accident rather than design. - updates share/mk to use the compiler's knowledge of what needs linking into libraries and executables. This removes an hppa hack. - updates the sets for the newly created libgcc* files. - support for linking against the _pg version of libgcc has been removed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.230 2004/02/06 23:12:56 lukem Exp $ d128 1 a128 1 @@(cd ${.CURDIR}/regress && ${MAKE} regress) d137 1 a137 1 (cd ${.CURDIR}/share/man && ${MAKE} makedb) d140 1 a140 1 (cd ${.CURDIR}/gnu/usr.bin/texinfo/install-info && ${MAKE} infodir-meta) d143 1 a143 1 (cd ${.CURDIR} && ${MAKE} postinstall-check) d224 1 a224 1 @@(cd ${.CURDIR} && ${MAKE} ${tgt}) d226 1 a226 1 (cd ${.CURDIR}/etc && ${MAKE} install-etc-release) d242 2 a243 2 (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 distribution) d245 2 a246 2 (cd ${.CURDIR} && ${MAKE} postinstall-fix-obsolete) (cd ${.CURDIR}/distrib/sets && ${MAKE} checkflist) d276 3 a278 4 (cd ${.CURDIR}/distrib/sets && \ ${MAKE} INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= installsets) (cd ${.CURDIR} && \ ${MAKE} DESTDIR=${INSTALLWORLDDIR} postinstall-check) d288 1 a288 1 (cd ${.CURDIR}/distrib/sets && ${MAKE} $@@) d298 2 a299 2 (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release) d320 1 a320 1 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) d322 1 a322 1 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs) d333 1 a333 1 (cd ${.CURDIR}/${dir} && ${MAKE} ${targ}) d340 1 a340 1 (cd ${.CURDIR}/libexec/ld.aout_so && ${MAKE} ${targ}) d343 1 a343 1 (cd ${.CURDIR}/libexec/ld.elf_so && ${MAKE} ${targ}) d349 1 a349 1 (cd ${.CURDIR} && ${MAKE} ${targ} BUILD_tools=no BUILD_lib=no) d353 1 a353 1 (cd ${.CURDIR}/x11 && ${MAKE} build) d356 1 a356 1 (cd ${.CURDIR}/etc && ${MAKE} install-obsolete-lists) d394 1 a394 1 (cd ${.CURDIR}/etc && ${MAKE} params) @ 1.230 log @MAKEVERBOSE support for build-docs @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.229 2004/01/27 04:22:25 lukem Exp $ d188 1 d192 1 a192 1 BUILDTARGETS+= do-lib-csu do-lib-libc @ 1.229 log @implement params with cd etc && make params @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.228 2004/01/27 01:45:07 lukem Exp $ d386 1 @ 1.228 log @Apply the .PHONY attribute where appropriate. Fixes [toolchain/21453] from rafal@@. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.227 2004/01/08 07:01:06 lukem Exp $ d393 1 a393 13 .for var in BSDSRCDIR BSDOBJDIR BUILDID DESTDIR EXTERNAL_TOOLCHAIN \ KERNARCHDIR KERNCONFDIR KERNOBJDIR KERNSRCDIR \ MACHINE MACHINE_ARCH MAKECONF MAKEFLAGS \ MAKEOBJDIR MAKEOBJDIRPREFIX \ MKOBJDIRS MKUNPRIVED MKUPDATE \ RELEASEDIR TOOLCHAIN_MISSING TOOLDIR \ USETOOLS .if defined(${var}) @@printf "%20s = '%-s'\n" ${var} ${${var}:Q} .else @@printf "%20s = (undefined)\n" ${var} .endif .endfor @ 1.227 log @Implement do-x11, to run "make build" in ./x11/ If MKX11 != no, add "do-x11" to BUILDTARGETS. Say ``hello'' to Imakeicide. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.226 2004/01/06 07:25:40 lukem Exp $ d126 1 a126 1 regression-tests: d135 1 a135 1 afterinstall: d146 1 a146 1 postinstall-check: d151 1 a151 1 postinstall-fix: .NOTMAIN d156 1 a156 1 postinstall-fix-obsolete: .NOTMAIN d208 2 a209 2 includes-lib: includes-include includes-sys includes-gnu: includes-lib d217 1 a217 1 build: d235 1 a235 1 distribution buildworld: d259 1 a259 1 installworld: d287 1 a287 1 ${tgt}: d297 1 a297 1 release snapshot: d307 1 a307 1 check-tools: d318 1 a318 1 do-distrib-dirs: d326 1 a326 1 do-${targ}: ${targ} d331 1 a331 1 do-${dir:S/\//-/g}: d337 1 a337 1 do-ld.so: d347 1 a347 1 do-build: d352 1 a352 1 do-x11: d355 1 a355 1 do-obsolete: d364 1 a364 1 includes-${dir}: d368 1 a368 1 install-${dir}: d376 1 a376 1 dependall-distrib depend-distrib all-distrib: d384 1 a384 1 build-docs: ${.CURDIR}/BUILDING d392 1 a392 1 params: @ 1.226 log @rename release-info to etc-release rename install-release-info to install-etc-release @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.225 2004/01/04 13:30:09 lukem Exp $ d79 1 d198 3 d352 3 @ 1.225 log @Run "cd etc && make install-release-info" at the end of the "build" target. Based on Hubert Feyrer's suggestion on tech-userlevel@@. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.224 2004/01/04 00:27:15 lukem Exp $ d221 1 a221 1 (cd ${.CURDIR}/etc && ${MAKE} install-release-info) @ 1.224 log @only build do-lib-libdes if ${MKCRYPTO}!=no @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.223 2004/01/03 14:04:27 lukem Exp $ d221 1 @ 1.223 log @Consistently check ${TOOLCHAIN_MISSING} against "no". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.222 2003/12/05 22:33:01 lukem Exp $ d190 7 a196 2 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib-libdes do-lib do-gnu-lib \ do-ld.so do-build @ 1.222 log @fix some comments @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.221 2003/07/26 17:10:25 salo Exp $ d298 1 a298 1 .if ${TOOLCHAIN_MISSING} == "yes" && !defined(EXTERNAL_TOOLCHAIN) @ 1.221 log @netbsd.org->NetBSD.org @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.220 2003/07/25 19:20:47 mrg Exp $ d71 1 a71 1 # do-gnu-lib-libgcc: builds and installs prerequisites from gnu/lib/libgcc d79 1 a79 1 # do-obsolete: builds and installs the entire system. @ 1.220 log @maybe build gnu/lib/libgcc3 instead of libgcc[2] @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.219 2003/07/25 00:26:35 lukem Exp $ d6 1 a6 1 # information, see http://www.netbsd.org/developers/releng/index.html @ 1.219 log @document do-lib-libdes @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.218 2003/07/24 21:54:07 fvdl Exp $ d164 5 d188 1 a188 1 BUILDTARGETS+= do-gnu-lib-libgcc d320 1 a320 1 .for dir in tools tools/compat lib/csu gnu/lib/libgcc lib/libc lib/libdes lib gnu/lib @ 1.218 log @Make and install libdes before the rest; libkrb needs it. XXX there must be a better way. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.217 2003/07/21 02:01:42 lukem Exp $ d74 1 @ 1.217 log @tweak how postinstall-fix-obsolete is made. (may fix various problem reports) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.216 2003/07/20 13:08:43 lukem Exp $ d184 2 a185 1 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.so do-build d314 1 a314 1 .for dir in tools tools/compat lib/csu gnu/lib/libgcc lib/libc lib gnu/lib @ 1.216 log @redo previous (functionality rollback of 1.213) to retain the style of 1.213 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.215 2003/07/20 13:03:47 wiz Exp $ d227 1 a227 1 ${MAKE} postinstall-fix-obsolete @ 1.215 log @Undo revision 1.213 now that grotty is fixed. Tested by lukem, thanks! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.214 2003/07/18 08:26:01 lukem Exp $ d366 1 a366 1 ${TOOL_GROFF} -mdoc -Tascii -P-b -P-u -P-o $> >$@@ @ 1.214 log @Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined. Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no" Add MKUPDATE; if not no has the same semantics as if UPDATE was defined. Replace defined(UPDATE) tests with ${MKUPDATE} != "no" Improve documentation for these and other make flags. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.213 2003/07/18 02:15:17 lukem Exp $ d366 1 a366 1 ${TOOL_GROFF} -mdoc -Tascii -P-cbou $> >$@@ @ 1.213 log @grotty from groff 1.19 needs -c for -b, -o or -u to work. This is damn annoying, because it means the old method of "groff -P-bou" won't suppress escape codes, unless -P-c is also provided. (Mmm, quality software...) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.212 2003/07/17 07:46:11 lukem Exp $ d22 2 a23 2 # MKMAN, if set to `no', will prevent building of manual pages. # MKOBJDIRS, if not set to `no', will build object directories at d25 1 a25 1 # MKSHARE, if set to `no', will prevent building and installing d27 1 a27 1 # UPDATE, if defined, will avoid a `make cleandir' at the start of d34 3 d129 1 a129 1 .if defined(UNPRIVED) d137 1 a137 1 .if defined(UNPRIVED) && (${MKINFO} != "no") d165 1 a165 1 .if !defined(UPDATE) && !defined(NOCLEANDIR) d376 2 a377 1 MAKEOBJDIR MAKEOBJDIRPREFIX MKOBJDIRS \ d379 1 a379 1 UNPRIVED UPDATE USETOOLS @ 1.212 log @Add postinstall-fix-obsolete (to invoke "postinstall fix obsolete" - funny that :), and call in "distribution" just before the "make checkflist". Should minimise a bunch of the "I use make UPDATE= and checkflist failed" errors, but not all of them. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.211 2003/07/10 10:33:58 lukem Exp $ d363 1 a363 1 ${TOOL_GROFF} -mdoc -Tascii -P-b -P-u -P-o $> >$@@ @ 1.211 log @Rename a large chunk of the make(1) variables which refer to a program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in , provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.210 2003/07/08 04:25:21 lukem Exp $ d143 1 a143 1 sh ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ check d148 7 a154 2 sh ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ fix @@echo " ================================" d224 1 @ 1.210 log @add MAKECONF to vars that "params" target shows @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.209 2003/07/06 13:04:01 lukem Exp $ d350 1 d357 1 a357 1 groff -mdoc -Tascii -P-b -P-u -P-o $> >$@@ @ 1.209 log @Add "params" target, to display the value of various variables. This is part of a broader plan to improve diagnostics & support to end-users of build.sh. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.208 2003/07/05 04:32:58 lukem Exp $ d365 3 a367 2 MACHINE MACHINE_ARCH MAKEFLAGS MAKEOBJDIR MAKEOBJDIRPREFIX \ MKOBJDIRS RELEASEDIR TOOLCHAIN_MISSING TOOLDIR \ @ 1.208 log @update "targets invoked by make build" to match reality ... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.207 2003/06/26 17:46:56 drochner Exp $ d351 1 d357 17 @ 1.207 log @build libgcc early, if at all @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.206 2003/05/10 07:12:37 lukem Exp $ d64 2 d68 1 a68 2 # do-distrib-dirs: creates the distribution directories. # includes: installs include files. d75 1 @ 1.206 log @Add "sourcesets" argument/target, which builds source sets into RELEASEDIR/source/sets @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.205 2003/04/18 19:14:39 thorpej Exp $ d171 3 d302 2 a303 2 .for dir in tools tools/compat lib/csu lib/libc lib gnu/lib do-${dir:S/\//-/}: @ 1.205 log @.WAIT before distrib, since distrib may need things built earlier in the build process. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.204 2003/04/17 00:33:44 thorpej Exp $ d55 4 d252 1 a252 1 # Create sets from $DESTDIR into $RELEASEDIR d255 4 a258 2 sets: (cd ${.CURDIR}/distrib/sets && ${MAKE} maketars) @ 1.204 log @libcrypto no longer depends on libcrypt, so there is no need to build it early. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.203 2003/04/04 01:16:28 thorpej Exp $ d102 1 a102 1 _SUBDIR+= usr.sbin share rescue sys etc distrib regress @ 1.203 log @Fix merge botch in last. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.202 2003/04/04 01:06:00 thorpej Exp $ a65 1 # do-lib-libcrypt: builds and installs prerequisites from lib/libcrypt. d167 1 a167 1 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib-libcrypt do-lib do-gnu-lib do-ld.so do-build d293 1 a293 1 .for dir in tools tools/compat lib/csu lib/libc lib/libcrypt lib gnu/lib @ 1.202 log @Always build tools/compat, so that random host helper programs can use libnbcompat, if necessary. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.201 2003/04/03 00:41:50 mycroft Exp $ d294 1 a294 5 <<<<<<< Makefile .for dir in tools tools/compat lib/csu lib/libc lib gnu/lib ======= .for dir in tools lib/csu lib/libc lib/libcrypt lib gnu/lib >>>>>>> 1.201 @ 1.201 log @Link libcrypto against libcrypt to make sure crypt() is still there -- and therefore build it earlier in the build process as well. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.200 2003/02/22 03:20:45 lukem Exp $ d60 2 d167 1 d294 3 d298 1 @ 1.200 log @all: Use /var/db/obsolete instead of /etc/obsolete etc/Makefile: Create separate target "install-obsolete-files" to populate /var/db/obsolete, instead of using "install-etc-files". Makefile: Add do-obsolete target, to run "cd etc && make install-obsolete-files", and add this to BUILDTARGETS. This moves the "obsolete files" creation from "distribution" to "build". Per discussion with Andrew Brown. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.199 2003/01/26 06:19:12 lukem Exp $ d64 1 d165 1 a165 1 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.so do-build d291 1 a291 1 .for dir in tools lib/csu lib/libc lib gnu/lib @ 1.199 log @- Add "sets" top-level Makefile target and build.sh operation. [Latter suggested by Julio Merino in private email] - Add "help" build.sh operation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.198 2003/01/06 17:40:18 lukem Exp $ d165 1 d311 3 @ 1.198 log @Rework how KERNOBJDIR functions; now it's always determined with cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR} This is far simpler than the previous system, and more robust with objdirs built via BSDOBJDIR. The previous method of finding KERNOBJDIR when using BSDOBJDIR by referencing _SRC_TOP_OBJ_ from another directory was extremely fragile due to the depth first tree walk by , and the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be empty on the *first* pass to create fresh objdirs. This change requires adding sys/arch/*/compile/Makefile to create the objdir in that directory, and descending into arch/*/compile from arch/*/Makefile. Remove the now-unnecessary .keep_me files whilst here. Per lengthy discussion with Andrew Brown. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.197 2003/01/04 15:50:32 lukem Exp $ d242 7 @ 1.197 log @Add an obj rule to create ${KERNOBJDIR} here, at the end of the "make obj" pass. (etc/Makefile doesn't create this any more). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.196 2003/01/03 15:34:30 lukem Exp $ a325 1 .include a326 13 # # Create ${KERNOBJDIR}. # Done here to ensure that it's "last", for BSDOBJDIR uses. # .if commands(obj) obj-kernobjdir: .USE @@echo "obj ===> sys/arch/${MACHINE}/compile" @@mkdir -p ${KERNOBJDIR} obj: obj-kernobjdir .endif @ 1.196 log @Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of "${RELEASEDIR}/...". ${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only cleaned if UPDATE is not defined. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.195 2003/01/02 23:15:27 atatat Exp $ a324 8 # # we don't want the obj target in etc invoked as part of the normal # course of events because that makes it too early. therefore, define # a neutral version of the target that bsd.subdir.mk would create. # obj-etc: @@true d326 1 d330 9 a338 11 # now, make a "real" target that will recurse into etc to enact the # obj target, and .USE it onto the end of the obj handling for the # current directory. note that this is only done if we already have # commands for the obj target (we won't if we're not making objdirs), # and only if etc is a target subdirectory. # .if commands(obj) && (${SUBDIR:Metc} == "etc") real-obj-etc: .USE @@(echo "obj ===> etc"; \ cd ${.CURDIR}/etc && ${MAKE} obj) obj: real-obj-etc d340 1 @ 1.195 log @The obj target for src/etc is invoked too early for it to function properly in a clean tree (bsd.subdir.mk makes the obj target in .CURDIR depend on the recursive targets). If "make obj" is invoked a second time, the problem will correct itself. To work around this: (1) Before including bsd.subdir.mk, create a target called "obj-etc" so that the "regular" one (from bsd.subdir.mk) won't be instantiated. (2) After including bsd.obj.mk, create a "real" obj-etc target that does the required work with .USE as a "source" so that we can merely cons it onto the actual obj target. Note that this is only done if the obj target has commands (ie, NOOBJ was not set and MKOBJ was not no and whatever else you might have come up with) and we would have recursed into etc anyway (etc is in the SUBDIR list). This makes the obj target in src/etc get invoked *after* the obj target in the root of the source tree so that KERNOBJDIR will have the correct value. Reviewed by lukem. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.194 2002/12/26 12:01:48 lukem Exp $ d36 13 a48 2 # Builds a full release of NetBSD in DESTDIR. If BUILD_DONE is # set, this is an empty target. d50 3 a52 3 # Does a `make build,' and then tars up the DESTDIR files # into RELEASEDIR, in release(7) format. (See etc/Makefile for # more information on this.) @ 1.194 log @fix DESTDIR checks if !defined(DESTDIR) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.193 2002/12/21 16:43:33 lukem Exp $ d314 8 d324 14 @ 1.193 log @* Add two new (experimental) targets: buildworld Builds a distribution into DESTDIR as per "make distribution", except that DESTDIR *must* be defined and *must not* be "" or "/". installworld Copies (using distrib/sets/maketars -i ...) from ${DESTDIR} to ${INSTALLWORLDDIR} (defaults == `/'), and then runs "postinstall-check" against ${INSTALLWORLDDIR}. If ${INSTALLWORLDDIR} == "/", ensure that `uname -s` == "NetBSD" and `uname -m` == ${MACHINE}, to prevent nasty accidents... * Tweak some comments @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.192 2002/12/02 08:27:03 lukem Exp $ d187 2 a188 1 .if make(buildworld) && (${DESTDIR} == "" || ${DESTDIR} == "/") d210 1 a210 1 .if (${DESTDIR} == "" || ${DESTDIR} == "/") @ 1.192 log @improve previous; show times at end of distribution/release/snapshot as well @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.191 2002/12/02 08:23:41 lukem Exp $ d3 1 d57 1 d63 1 d68 1 d73 1 d76 1 d91 1 d93 1 d133 1 d135 1 d155 1 d157 1 d163 1 d165 1 d181 1 d183 2 a184 1 # ${RELEASEDIR}). d186 5 a190 1 distribution: d199 33 d235 1 d243 1 d245 1 d292 1 d295 1 d306 1 d308 2 @ 1.191 log @show the start time at the end of the build as well. inspired by [misc/18173] from Julio Merino. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.190 2002/11/29 23:48:37 lukem Exp $ d176 1 d186 1 @ 1.190 log @Add do-{target} aliases for: cleandir obj includes to be consistent with the other do-TARGET targets for make build. (These are not used by "make build" per se, they're just to make my life easier) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.189 2002/11/12 14:33:48 itohy Exp $ d153 2 d159 1 a159 1 @@printf "Build started at: " && date d163 1 @ 1.189 log @MKDYNAMICROOT for a.out @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.188 2002/09/21 08:19:28 lukem Exp $ d203 5 @ 1.188 log @move BUILDING.mdoc -> doc/BUILDING.mdoc @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.187 2002/09/17 23:18:25 thorpej Exp $ d54 1 a54 1 # do-ld.elf_so: builds and installs prerequisites from libexec/ld.elf_so d143 1 a143 1 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.elf_so do-build d211 1 a211 1 do-ld.elf_so: d213 4 d218 1 @ 1.187 log @* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into two variables: TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is no working in-tree toolchain (hppa, ns32k, sh5, x86_64). EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of an external toolchain (e.g. /usr/local/gnu). This enables the cross-build framework even for TOOLCHAIN_MISSING platforms. If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all unconditionally set to "no", since the bits are not there to build. If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no", since the external toolchain's compiler is not in-sync with the in-tree compiler support components (e.g. libgcc). * Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in that file can use it. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.186 2002/09/14 16:46:24 thorpej Exp $ d241 1 a241 1 ${.CURDIR}/BUILDING: BUILDING.mdoc @ 1.186 log @Add a do-lib-libc target which is processed after do-lib-csu. This ensures that the results of the libc build are available to other lib builds (notably, llib-lc.ln). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.185 2002/08/30 06:30:33 lukem Exp $ d187 5 a191 4 .if defined(USE_NEW_TOOLCHAIN) && (${USE_NEW_TOOLCHAIN} != "nowarn") @@echo '*** WARNING: Building on MACHINE=${MACHINE} with USE_NEW_TOOLCHAIN.' @@echo '*** This platform is not yet verified to work with the new toolchain,' @@echo '*** and may result in a failed build or corrupt binaries!' @ 1.185 log @print date when make {distribution,release,snapshot} finished @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.184 2002/08/26 04:40:20 lukem Exp $ d51 1 d143 1 a143 1 BUILDTARGETS+= do-lib-csu do-lib do-gnu-lib do-ld.elf_so do-build d203 1 a203 1 .for dir in tools lib/csu lib gnu/lib @ 1.184 log @add "do-ld.elf_so" target, which builds & installs libexec/ld.elf_so. call after do-gnu-lib but before do-build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.183 2002/08/22 02:23:23 lukem Exp $ d172 1 d181 1 @ 1.183 log @descend into "rescue" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.182 2002/07/10 23:44:54 uwe Exp $ d53 1 d142 1 a142 1 BUILDTARGETS+= do-lib-csu do-lib do-gnu-lib do-build d205 5 @ 1.182 log @Fix botch in previous. Actually do "build" for "distribution". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.181 2002/07/10 18:55:20 thorpej Exp $ d81 1 a81 1 _SUBDIR+= usr.sbin share sys etc distrib regress @ 1.181 log @After running the body of the "distribution" target, do a "checkflist", so that people doing fresh builds into NFS root areas will know if their builds are incomplete. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.180 2002/06/26 16:28:18 drochner Exp $ d166 1 a166 1 # (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) @ 1.180 log @find the Makefile for postinstall-check in the presence of ${.OBJDIR}s @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.179 2002/06/26 00:10:16 thorpej Exp $ d166 1 a166 1 (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) d168 3 d172 3 a174 1 # Build a release or snapshot (implies "make build"). @ 1.179 log @Fix what rev. 1.176 broke, in particular, doing a priv'd build into an NFS root area for a diskless client. In such a situation, you DO want the postinstall-check to be run. The circumstances under which postinstall-check is now run: * UNPRIVED is not set. * The original target invoked was not distribution, release, or snapshot. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.178 2002/06/20 08:21:59 enami Exp $ d109 1 a109 1 (${MAKE} postinstall-check) @ 1.178 log @Fix whitespace usage in comment. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.177 2002/06/20 08:21:23 enami Exp $ d97 4 d108 2 a109 2 .if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/" (cd ${.CURDIR} && ${MAKE} postinstall-check) d165 2 a166 1 distribution: build d171 2 a172 1 release snapshot: build @ 1.177 log @Change directory to .CURDIR before invoking ${MAKE}. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.176 2002/06/19 00:17:11 lukem Exp $ d22 1 a22 1 # MKOBJDIRS, if not set to `no', will build object directories at d27 2 a28 2 # `make build', as well as having the effects listed in # /usr/share/mk/bsd.README. d30 1 a30 1 # of the `make build'. @ 1.176 log @In afterinstall, only run postinstall check if DESTDIR == / (or equivalents). Fixes [misc/17275] from Gregory McGarry @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.175 2002/05/07 02:11:07 lukem Exp $ d105 1 a105 1 (${MAKE} postinstall-check) @ 1.175 log @Change -s srcdir and -d destdir so that they don't contain the "/etc" portion. srcdir now defaults to /usr/src (from /usr/src/etc). destdir now defaults to / (from /etc). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.174 2002/05/03 08:59:14 lukem Exp $ d97 1 a97 1 afterinstall: postinstall-check d103 3 @ 1.175.2.1 log @Pull up revision 1.176 (requested by lukem in ticket #319): In afterinstall, only run postinstall check if DESTDIR != / (or equivalents). Fixes [misc/17275] from Gregory McGarry @ text @d1 1 a1 1 # $NetBSD$ d97 1 a97 1 afterinstall: a102 3 .endif .if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/" (${MAKE} postinstall-check) @ 1.175.2.2 log @Pull up revisions 1.177 - 1.180 1.177: Change directory to .CURDIR before invoking ${MAKE}. 1.178: Fix whitespace usage in comment. 1.179: Fix what rev. 1.176 broke, in particular, doing a priv'd build into an NFS root area for a diskless client. In such a situation, you DO want the postinstall-check to be run. The circumstances under which postinstall-check is now run: * UNPRIVED is not set. * The original target invoked was not distribution, release, or snapshot. 1.180: find the Makefile for postinstall-check in the presence of ${.OBJDIR}s Resolves ticket #993 from grant (and possibly others), and some PRs @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.180 2002/06/26 16:28:18 drochner Exp $ d22 1 a22 1 # MKOBJDIRS, if not set to `no', will build object directories at d27 2 a28 2 # `make build', as well as having the effects listed in # /usr/share/mk/bsd.README. d30 1 a30 1 # of the `make build'. a96 4 .if defined(UNPRIVED) NOPOSTINSTALL= # defined .endif d104 2 a105 2 .if !defined(NOPOSTINSTALL) (cd ${.CURDIR} && ${MAKE} postinstall-check) d161 1 a161 2 distribution: (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) d166 1 a166 2 release snapshot: (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) @ 1.175.2.3 log @Pull up revision 1.186 (via patch, requested by thorpej in ticket #813): Add a do-lib-libc target which is processed after do-lib-csu. This ensures that the results of the libc build are available to other lib builds (notably, llib-lc.ln). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.175.2.2 2002/11/15 04:15:13 lukem Exp $ a50 1 # do-lib-libc: builds and installs prerequisites from lib/libc. d141 1 a141 1 BUILDTARGETS+= do-lib-csu do-lib-libc do-lib do-gnu-lib do-build d194 1 a194 1 .for dir in tools lib/csu lib/libc lib gnu/lib @ 1.174 log @Move the METALOG from ${_SRC_TOP_OBJ_} to ${DESTDIR}. There were too many synchronisation problems with using the former; including situations such as a "make clean" performed between two installs to the same DESTDIR would result in a truncated METALOG and the resultant sets would be missing stuff such as include files that don't get reinstalled if they haven't changed, even with !UPDATE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.173 2002/05/02 22:13:30 sommerfeld Exp $ d107 1 a107 1 sh ${.CURDIR}/etc/postinstall -s ${.CURDIR}/etc -d ${DESTDIR}/etc check d112 1 a112 1 sh ${.CURDIR}/etc/postinstall -s ${.CURDIR}/etc -d ${DESTDIR}/etc fix @ 1.173 log @Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1), which inherits it cooperatively through the build tree. Fix documentation so that it's shown to be deprecated. If you use build -jN, please save full build logs so that errors due to missing dependancies can be analyzed and corrected. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.172 2002/05/02 16:36:21 bjh21 Exp $ a211 3 clean: rm -f METALOG @ 1.172 log @Use printf rather than echo -n, since the former works on all POSIX systems. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.171 2002/04/29 12:14:36 lukem Exp $ a25 2 # NBUILDJOBS is the number of jobs to start in parallel during a # `make build'. It defaults to 1. a79 9 .if defined(NBUILDJOBS) .if !target(.BEGIN) .BEGIN: @@echo 'NBUILDJOBS is currently broken; see PR toolchain/14837.' @@false .endif #_J= -j${NBUILDJOBS} .endif d150 1 a150 1 @@(cd ${.CURDIR} && ${MAKE} ${_J} ${tgt}) d174 3 d188 1 a188 1 (cd ${.CURDIR}/${dir} && ${MAKE} ${_J} ${targ}) d194 1 a194 1 (cd ${.CURDIR} && ${MAKE} ${_J} ${targ} BUILD_tools=no BUILD_lib=no) @ 1.171 log @we might as well provide a handy "postinstall-fix" target whilst here @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.170 2002/04/29 12:09:13 lukem Exp $ d159 1 a159 1 @@echo -n "Build started at: " && date d163 1 a163 1 @@echo -n "Build finished at: " && date @ 1.170 log @move postinstall from afterinstall to separate "postinstall-check" target. requested by Matthias Scheler . @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.169 2002/04/27 08:11:53 lukem Exp $ d119 5 @ 1.169 log @run "./etc/postinstall check" in afterinstall: @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.168 2002/04/11 19:31:06 tv Exp $ d108 1 a108 1 afterinstall: d115 2 @ 1.168 log @Revert previous so crtbeginS and crtendS are available. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.166 2002/03/11 07:49:24 simonb Exp $ d115 4 @ 1.167 log @We don't need to do "install" of lib/csu specially. Just install it with the rest of lib. (None of lib/* needs csu installed in order to link. In the USETOOLS!=yes case, csu may even depend on a newer libc, so installing csu before compiling host tools in lib/ could break things even worse.) @ text @d52 1 d134 1 a134 1 BUILDTARGETS+= do-lib do-gnu-lib do-build d182 1 a182 1 .for dir in tools lib gnu/lib @ 1.166 log @Split the _SUBDIR assignment into two assignments so you can do things like "grep ^_SUBDIR Makefile". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.165 2002/03/05 16:17:06 pk Exp $ a51 1 # do-lib-csu: builds and installs prerequisites from lib/csu. d133 1 a133 1 BUILDTARGETS+= do-lib-csu do-lib do-gnu-lib do-build d181 1 a181 1 .for dir in tools lib/csu lib gnu/lib @ 1.165 log @Build whatis.db and infodir-meta from the commands list of the afterinstall target. Remember: inserting `dummy' targets is not equivalent of some convenient macro expansion; it has side effects! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.164 2002/03/01 06:02:41 jmc Exp $ d91 2 a92 2 _SUBDIR= tools lib include gnu bin games libexec sbin usr.bin \ usr.sbin share sys etc distrib regress @ 1.164 log @Restructure infodir-meta to call a proper submake. Put the code into the install-info gnu subdir as it's the program updating the dir file. This all has to happen because METALOG depends on _SRC_TOP_OBJ which is now not defined in the top level Makefile per tv's last commit. Which is fine as this rule should have gone into a program's Makefile anyways just like the whatis.db one does. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.163 2002/02/28 02:22:59 tv Exp $ d108 1 a108 1 whatis.db: a111 4 # Let install-info track this as it's the program creating/updating the # dir file infodir-meta: a114 2 afterinstall: whatis.db infodir-meta @ 1.163 log @If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may not be the top level objdir, because "make obj" can happen in the *middle* of "make build" (long after is calculated it). So, pre-set _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.162 2002/02/14 19:17:32 tv Exp $ d113 2 a114 2 # XXX I wish there was a more rational place to do this, but I can't # think of one. There is no one place the info/dir file gets generated. d117 1 a117 2 echo "${DESTDIR}/usr/share/info/dir type=file mode=0644 uname=root gname=wheel" | \ sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG} @ 1.162 log @Bomb if NBUILDJOBS is set, as it is badly broken in some way (as described in toolchain/14837). This is the root of some problems thought to be of different causes by users who forget to say that they are using "build.sh -j".... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.161 2002/02/08 16:11:18 lukem Exp $ d60 6 @ 1.161 log @remove METALOG in clean @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.160 2001/11/25 18:31:12 thorpej Exp $ d77 6 a82 1 _J= -j${NBUILDJOBS} @ 1.160 log @Add a wrapper for the "distribution" target, similar to the wrapper for the "release" target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.159 2001/11/24 21:53:16 perry Exp $ d205 3 @ 1.159 log @Add a new target (infodir-meta:) that synthesizes the share/info/dir file's metadata if UNPRIVED and MKINFO != no. Make afterinstall depend on it as well as whatis.db. XXX I wish there was a more rational place to synthesize the metadata, but I can't think of one. The share/info/dir file is built by all the world's install-info executions. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.158 2001/11/20 17:05:02 tv Exp $ d150 6 @ 1.158 log @No, really revert previous. Recursing to etc works, and I'm in the middle of fixing distrib right now. If something's broken, please report it via the proper channels. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.157 2001/11/20 15:20:28 thorpej Exp $ d97 1 a98 2 afterinstall: whatis.db whatis.db: d101 10 @ 1.157 log @No, really take etc and distrib out of the default subdir list. We've waited too long for the null target sweep. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.156 2001/11/15 19:32:19 tv Exp $ d80 2 a81 11 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW. Also note that # distrib does not belong here, either, as it is a very special case. _SUBDIR+= tools lib include gnu bin games libexec sbin usr.bin \ usr.sbin share sys regress .if make(cleandir) || make(clean) || make(obj) _SUBDIR+= distrib .ifdef MAKEOBJDIRPREFIX _SUBDIR+= etc .endif .endif @ 1.156 log @Warn when "make build" is started with USE_NEW_TOOLCHAIN on a platform for which USE_NEW_TOOLCHAIN is not verified to work [is not on by default]. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.155 2001/11/13 17:47:16 tv Exp $ d80 11 a90 2 _SUBDIR= tools lib include gnu bin games libexec sbin usr.bin \ usr.sbin share sys etc distrib regress @ 1.155 log @Reverse the order of "make cleandir" and "make obj" back to the way they were historically. Discrepancy noted by atatat. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.154 2001/11/13 15:56:28 tv Exp $ d105 1 d137 1 a137 1 (cd ${.CURDIR} && ${MAKE} ${_J} ${tgt}) d148 7 @ 1.154 log @Rather than build in `tools' and `lib' twice, build `tools' and `lib' completely and install them, then skip recursing into those directories on the final dependall/install. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.153 2001/11/13 03:17:12 tv Exp $ d47 1 a48 1 # cleandir: cleans the tree. d105 3 a109 3 .endif .if !defined(UPDATE) && !defined(NOCLEANDIR) BUILDTARGETS+= cleandir @ 1.153 log @The top level has an objdir now, so make sure to cd to ${.CURDIR} when recursing in-place. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.152 2001/11/12 23:16:17 tv Exp $ d86 1 a86 1 .if exists(${dir}/Makefile) d158 1 a158 1 (cd ${.CURDIR}/${dir} && ${MAKE} ${_J} MKSHARE=no MKLINT=no ${targ}) d163 3 a165 2 (cd ${.CURDIR} && ${MAKE} ${_J} dependall) (cd ${.CURDIR} && ${MAKE} ${_J} install) @ 1.152 log @Major overhaul of src/tools and host toolchain. Summary of changes: * Rewrite src/tools Make logic to work like the rest of the tree wrt "dependall" and "install". The old "make build" hack is gone. * Remove the MKTOOLS logic. This was linked to the "make build" hack, and was only needed because TOOLDIR originally had no writable default. * Redo the GNU configure/make logic to make it fit reasonably in a BSD make wrapper. Use new ${.ALLTARGETS} variable to scan for targets in $(srcdir), and mark them with .MADE: to prevent rebuilding. * Only build cross tools in src/tools; remove some messy logic in src/usr.* and src/gnu/usr.* that would do target filename rewriting (improves consistency and readability). * Add the ability to build cross gdb at tool build time by setting MKCROSSGDB (default no) to "yes" in mk.conf. * Add src/tools/groff and set up paths to work with this cross groff. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.151 2001/11/11 22:40:42 tv Exp $ d136 1 a136 1 ${MAKE} ${_J} ${tgt} d163 2 a164 2 ${MAKE} ${_J} dependall ${MAKE} ${_J} install @ 1.151 log @Create an objdir here for storage of timestamps, build-wide data, and so forth. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.150 2001/11/01 16:34:21 tv Exp $ d49 1 a49 1 # do-make-tools: builds host toolchain. d94 1 a94 1 @@cd ${.CURDIR}/regress && ${MAKE} regress d100 1 a100 1 cd ${.CURDIR}/share/man && ${MAKE} makedb d112 1 a112 1 BUILDTARGETS+= do-make-tools d144 1 a144 1 cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release a147 3 do-make-tools: cd ${.CURDIR}/tools && ${MAKE} build d150 1 a150 1 cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs d152 1 a152 1 cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs d155 1 a155 1 .for dir in lib/csu lib gnu/lib d158 1 a158 2 cd ${.CURDIR}/${dir} && \ ${MAKE} ${_J} MKSHARE=no MKLINT=no ${targ} d169 11 a179 4 includes-bin includes-games includes-libexec includes-regress \ includes-sbin includes-usr.sbin includes-tools \ dependall-tools depend-tools all-tools install-tools install-regress \ dependall-distrib depend-distrib all-distrib install-distrib includes-distrib: @ 1.150 log @By popular demand, one preformatted version of BUILDING, plaintext, no CRs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.149 2001/11/01 16:30:53 tv Exp $ d179 1 @ 1.149 log @Revert previous. already defaults MKOBJDIRS to "no". Also clean up the evaluation of ${MKOBJDIRS} later -- no need for :Uno. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.147 2001/10/31 19:41:54 jmc Exp $ d181 3 a183 14 # Rules for building the BUILDING.* documentation files. build-docs: ${.CURDIR}/BUILDING.txt ${.CURDIR}/BUILDING.html .SUFFIXES: .mdoc .html .txt .mdoc.html: ${.CURDIR}/Makefile groff -mdoc2html -Tlatin1 -P-b -P-u -P-o -ww -mtty-char $< >$@@ # The awk expression changes line endings from LF to CR-LF to make # this readable on many more platforms than just Un*x. .mdoc.txt: ${.CURDIR}/Makefile groff -mdoc -Tascii -P-b -P-u -P-o $< | \ awk 'BEGIN{ORS="\r\n"}{print}' >$@@ @ 1.148 log @Add back original behavior of MKOBJDIRS defaulting to "no" so it doesn't force people to set yet another variable to get the expected behavior @ text @a60 2 MKOBJDIRS ?= no d105 1 a105 1 .if ${MKOBJDIRS:Uno} != "no" @ 1.147 log @Add back logic which forces DESTDIR=/ for the distrib-dirs rule if it's not set or it's blank. The new toolchain rules set it to blank which can run into the sanity checks in etc/Makefile @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.146 2001/10/31 01:20:09 tv Exp $ d60 2 @ 1.146 log @* Always descend into "tools" regardless of USETOOLS setting. Instead, just don't build the tools if USETOOLS!=yes. This permits objdirs to be created even when USETOOLS=no. * Clean up use of "-m" by specifying it to .MAKEFLAGS: if needed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.145 2001/10/30 17:59:10 tv Exp $ d152 3 d156 1 @ 1.145 log @Work around parallelism lossage, because .ORDER doesn't work yet (noted in PR bin/14404). This will be fixed back to using .ORDER later. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.144 2001/10/29 19:48:35 tv Exp $ d57 5 a61 1 .include "${.CURDIR}/share/mk/bsd.own.mk" d80 1 a80 4 .if ${USETOOLS} == "yes" _SUBDIR+= tools .endif _SUBDIR+= lib include gnu bin games libexec sbin usr.bin \ d94 1 a94 1 @@cd ${.CURDIR}/regress && ${MAKE} ${_M} regress d100 1 a100 1 cd ${.CURDIR}/share/man && ${MAKE} ${_M} makedb d136 1 a136 1 ${MAKE} ${_J} ${_M} ${tgt} d144 1 a144 1 cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release d149 1 a149 1 cd ${.CURDIR}/tools && ${MAKE} ${_M} build d152 1 a152 1 cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs d158 1 a158 1 ${MAKE} ${_M} ${_J} MKSHARE=no MKLINT=no ${targ} d163 2 a164 2 ${MAKE} ${_M} ${_J} dependall ${MAKE} ${_M} ${_J} install d175 1 a175 3 .include "${.CURDIR}/share/mk/bsd.subdir.mk" _M:= -m ${.CURDIR}/share/mk @ 1.144 log @Add rules for generating plaintext and HTML versions of the "BUILDING" document automatically (to be checked in when BUILDING.mdoc is changed). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.143 2001/10/24 03:21:20 tv Exp $ d134 3 a136 1 @@${MAKE} ${_J} ${_M} ${BUILDTARGETS} @ 1.143 log @Re-add intermediate dependall/install targets (do-lib-csu, do-lib, do-gnu-lib) to permit restarting broken builds in the middle. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.142 2001/10/24 02:45:34 tv Exp $ d175 15 @ 1.142 log @Add shortcut rules to avoid going into distrib on unneeded (and in some cases, currently broken) targets. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.141 2001/10/24 01:07:13 tv Exp $ d52 3 d119 1 a119 1 BUILDTARGETS+= do-build a150 1 do-build: d152 1 d158 2 @ 1.141 log @Revert previous. etc and distrib do now belong in _SUBDIR; the correct fix for broken builds is to fix the relevant Makefiles as was done for sparc. This was done in the interest of simplicity of the system build (and the fact that there may be a need to descend into these directories in the near future). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.139 2001/10/19 14:17:52 tv Exp $ d163 2 a164 1 dependall-tools depend-tools all-tools install-tools install-regress: @ 1.140 log @Remove distrib and etc from _SUBDIR. These should never get added to the subdir list as anything building into them will access them directly (ala the make release rule or the mtree rule). There were good reasons for controlling this at the top level before and those should remain in place. On cleandir and obj builds these should get run through but that's it for the "normal" rule sets. (This was breaking the builds as make includes doesn't function inside of distrib for instance). @ text @a75 2 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW d77 1 a77 8 usr.sbin share sys regress .if make(cleandir) || make(obj) _SUBDIR+= distrib .ifdef MAKEOBJDIRPREFIX _SUBDIR+= etc .endif .endif @ 1.139 log @Add a couple more shortcut rules for the "tools" subdir to prevent recursion. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.138 2001/10/19 03:19:01 tv Exp $ d76 2 d79 8 a86 1 usr.sbin share sys etc distrib regress @ 1.138 log @Change ${USETOOLS} != "no" to ${USETOOLS} == "yes" to allow USETOOLS to be tri-state: "yes", "no", or "never". The use of these options will be documented in src/BUILDING. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.137 2001/10/19 02:35:45 tv Exp $ d163 1 a163 1 all-tools install-tools install-regress: @ 1.137 log @Overhaul and simplify the top level Makefile, and add some sanity checking. - "make build" cannot be invoked from the command line at the same time as any standard recursive target except "obj" and "cleandir", as things like "make all release" can lead to unexpected results. - Put everything in SUBDIR, and auto-weed missing directories. This allows the standard targets to work as expected (including in tools, etc, and distrib). - Leverage .for loops to simplify the prerequisite dependall/install phase of compile-time dependencies (lib/csu, lib, gnu/lib). These are now all distilled into one component rule ("do-build"). - Use the actual targets of obj, cleandir, and includes; no need for double indirection goop in this case. - GC all the deprecated "domestic" cruft. We are officially using (and fixing, where appropriate) the cryptosystem integrated into src/crypto. - Collapse the whatis.db build rule into a dependency of "afterinstall", and nuke the "_BUILD" cruft. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.136 2001/10/12 21:05:08 nathanw Exp $ d73 1 a73 1 .if ${USETOOLS} != "no" d107 1 a107 1 .if ${USETOOLS} != "no" @ 1.136 log @Use @@true instead of @@${TRUE} in includes-foo targets, since there is no variable TRUE defined in our makefile system. This prevents "make includes" from breaking with older bsd.subdir.mk, and is more consistent with the uses of "true" in the rest of the tree. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.135 2001/10/10 17:20:15 jwise Exp $ a33 1 d36 2 a37 1 # build: builds a full release of netbsd in DESTDIR. If BUILD_DONE is d39 2 a40 1 # release: does a `make build,' and then tars up the DESTDIR files d43 2 a44 1 # snapshot: a synonym for release. d46 4 a49 3 # Sub targets of `make build,' in order: # buildstartmsg: displays the start time of the build. # do-make-tools: builds host toolchain. d51 2 a52 11 # do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.) # do-cleandir: cleans the tree. # do-make-obj: creates object directories if required. # do-make-includes: install include files. # do-lib-csu: build & install startup object files. # do-lib: build & install system libraries. # do-gnu-lib: build & install gnu system libraries. # do-dependall: builds & install the entire system. # do-domestic: build & install the domestic tree (deprecated.) # do-whatisdb: build & install the `whatis.db' man database. # buildendmsg: displays the end time of the build. d56 12 a67 1 MKOBJDIRS ?= no d70 1 a70 1 _J= -j${NBUILDJOBS} a72 5 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys .if make(cleandir) || make(obj) SUBDIR+= distrib d74 1 a74 5 SUBDIR+= tools .endif .ifdef MAKEOBJDIRPREFIX SUBDIR+= etc .endif d76 2 d79 1 a79 1 includes-lib: includes-include includes-sys d81 3 a83 2 .if exists(games) SUBDIR+= games d85 1 a85 4 SUBDIR+= gnu # This is needed for libstdc++ and gen-params. includes-gnu: includes-include includes-sys a87 4 .ifmake !(install) SUBDIR+= regress .endif d90 1 a90 1 @@(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress) d93 5 a97 3 buildstartmsg: @@echo -n "Build started at: " @@date d99 1 a99 3 buildendmsg: @@echo -n "Build finished at: " @@date d101 2 a102 3 afterinstall: .if ${MKMAN} != "no" && !defined(_BUILD) ${MAKE} ${_M} whatis.db d104 2 a105 26 whatis.db: (cd ${.CURDIR}/share/man && ${MAKE} ${_M} makedb) # wrt info/dir below: It's safe to move this over top of /usr/share/info/dir, # as the build will automatically remove/replace the non-pkg entries there. .if defined(BUILD_DONE) build: @@echo "Build installed into ${DESTDIR}" .else build: @@${MAKE} ${_M} buildstartmsg @@${MAKE} ${_M} do-make-tools @@${MAKE} ${_M} do-distrib-dirs @@${MAKE} ${_M} do-force-domestic @@${MAKE} ${_M} do-cleandir @@${MAKE} ${_M} do-make-obj @@${MAKE} ${_M} do-make-includes @@${MAKE} ${_M} do-lib-csu @@${MAKE} ${_M} do-lib @@${MAKE} ${_M} do-gnu-lib @@${MAKE} ${_M} do-dependall @@${MAKE} ${_M} do-domestic @@${MAKE} ${_M} do-whatisdb @@${MAKE} ${_M} buildendmsg a106 2 do-make-tools: d108 1 a108 2 .if ${MKOBJDIRS} != "no" cd ${.CURDIR}/tools && ${MAKE} ${_M} obj d110 2 a111 9 cd ${.CURDIR}/tools && ${MAKE} ${_M} build .endif do-distrib-dirs: .ifndef NODISTRIBDIRS .ifndef DESTDIR (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs) .else (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs) d113 2 d116 1 d118 1 a118 7 do-force-domestic: .if defined(FORCE_DOMESTIC) @@echo '*** CAPUTE!' @@echo ' The FORCE_DOMESTIC flag is not compatible with "make build".' @@echo ' Please correct the problem and try again.' @@false .endif d120 3 a122 4 do-cleandir: .if !defined(UPDATE) && !defined(NOCLEANDIR) ${MAKE} ${_J} ${_M} cleandir .endif d124 1 a124 4 do-make-obj: .if ${MKOBJDIRS} != "no" ${MAKE} ${_J} ${_M} obj .endif d126 7 a132 3 do-make-includes: .if !defined(NOINCLUDES) ${MAKE} ${_M} includes d135 1 a135 4 do-lib-csu: (cd ${.CURDIR}/lib/csu && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) d137 2 a138 4 do-lib: (cd ${.CURDIR}/lib && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) d140 1 a140 4 do-gnu-lib: (cd ${.CURDIR}/gnu/lib && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) d142 2 a143 2 do-dependall: ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install d145 2 a146 4 do-domestic: .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build) .endif d148 9 a156 2 do-whatisdb: ${MAKE} ${_M} whatis.db d158 2 a159 2 release snapshot: build (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release) a160 1 # Speedup stubs for some subtrees that don't need to run these rules d162 2 a163 1 includes-sbin includes-usr.sbin: a164 6 .if !exists(${.CURDIR}/share/mk) .BEGIN: @@echo 'BUILD ABORTED: share/mk does not exist, cannot run make.' @@false .endif @ 1.135 log @Do not descend into `tools' on make clean{dir,} if USETOOLS=no, as doing so without TOOLDIR set will blow up. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.134 2001/10/08 23:42:21 tv Exp $ d213 1 a213 1 @@${TRUE} @ 1.134 log @Add "tools" to the list of subdirs for an explicit "make obj" or "make cleandir". Fixes PR bin/14177. "make build"'s logic and the conventional logic probably need to be split apart here at some point to prevent these kinds of things from causing odd problems in the future.... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.133 2001/10/04 17:59:49 tv Exp $ d72 4 a75 1 SUBDIR+= distrib tools @ 1.133 log @Use ${.CURDIR}/share/mk to include bsd.own.mk and bsd.subdir.mk into this file in order to get proper definitions for a build. (Temporary; this Makefile will be moved to a new name and replaced with a bootstrap Makefile in the near future.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.132 2001/10/01 17:19:17 mason Exp $ d72 1 a72 1 SUBDIR+= distrib @ 1.132 log @UPDATING (1.38) says: i386 platform builds must now set TOOLDIR in mk.conf or the environment in order to build the system. This is a pathname where host build tools will be installed, and must NOT be the same as src/tools. (Optionally, USETOOLS=no can be set in the environment if you wish to avoid using the separate host toolchain for building a subtree. Otherwise, this will default to "yes" automatically.) However, building with USETOOLS=no set and no defined TOOLDIR ends up with breakage, as the do-make-tools target is run regardless of whether or not USETOOLS is set. Hence, a wrapper around the body of the do-make-tools target: .if ${USETOOLS} != "no" ... .endif ...which makes the build work when USETOOLS=no, with no TOOLDIR set. This would seem to more accurately match the description put forth in UPDATING. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.131 2001/09/22 12:30:13 tv Exp $ d60 1 a60 1 .include d218 1 a218 1 .include @ 1.131 log @Put do-make-tools before creating distrib-dirs (as binstall has to be available before making distrib-dirs). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.130 2001/09/22 05:37:17 tv Exp $ d139 1 d144 1 @ 1.130 log @Always use src/share/mk as the source of the system .mk files for a build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.129 2001/09/21 21:01:13 tv Exp $ d46 2 a47 1 # beforeinstall: creates the distribution directories. a50 1 # do-make-tools: builds host toolchain. a105 9 beforeinstall: .ifndef NODISTRIBDIRS .ifndef DESTDIR (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs) .else (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs) .endif .endif d123 2 a124 1 @@${MAKE} ${_M} beforeinstall a127 1 @@${MAKE} ${_M} do-make-tools d138 15 a168 1 cd ${.CURDIR}/tools && ${MAKE} ${_M} obj a169 3 do-make-tools: cd ${.CURDIR}/tools && ${MAKE} ${_M} build @ 1.129 log @- Remove the include of Makefile.tools; this will be done elsewhere. - Skip the "includes" phase of bin, games, libexec, regress, sbin, and usr.sbin. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.128 2001/08/17 15:05:50 thorpej Exp $ a47 1 # do-share-mk: installs /usr/share/mk files. a67 4 .if defined(DESTDIR) _M=-m ${DESTDIR}/usr/share/mk .endif a105 4 # If sharesrc is around, use its share/mk files to bootstrap until the # mk files are installed (first step of make build). If installing to # DESTDIR, don't bother, since the build will fail later on anyway. d109 1 a109 3 .if exists(share/mk) (cd ${.CURDIR}/etc && \ ${MAKE} -m ${.CURDIR}/share/mk DESTDIR=/ distrib-dirs) d111 1 a111 4 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) .endif .else (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs) a133 1 @@${MAKE} ${_M} do-share-mk a154 5 do-share-mk: .if ${MKSHARE} != "no" (cd ${.CURDIR}/share/mk && ${MAKE} install) .endif a162 1 .if defined(USE_NEW_TOOLCHAIN) a164 1 .endif a166 1 .if defined(USE_NEW_TOOLCHAIN) a167 1 .endif d208 6 d215 2 @ 1.128 log @Make sure DESTDIR is always set when calling the distrib-dirs target. In the new build world order, DESTDIR is set to "" (in Makefile.tools) if not already set, to ensure correct include/library handling. This caused the top-level to not set DESTDIR=/, which confused distrib-dirs, since it doesn't include Makefile.tools, and thus didn't see the same DESTDIR that the top-level did. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.127 2001/08/14 14:04:35 tv Exp $ a62 4 .if defined(USE_NEW_TOOLCHAIN) .include "${.CURDIR}/tools/Makefile.tools" .endif d226 5 @ 1.127 log @The final step -- hook src/tools into the main build. If USE_NEW_TOOLCHAIN is set, will descend into "tools" to build a toolchain, and use that toolchain explicitly for the build (via tools/Makefile.tools). While here, GC all the "egcs-detection" logic; it's not needed anymore, since nothing is on gcc 2.7 any longer. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.126 2001/08/02 06:13:33 enami Exp $ d129 1 a129 1 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) @ 1.126 log @Wrap a long line. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.125 2001/06/10 13:15:29 mrg Exp $ d27 1 a27 1 # 'make build'. It defaults to 1. d49 3 a51 3 # do-cleandir: clean's the tree. # do-make-obj: create's object directories if required. # do-check-egcs: check's that we have a modern enough compiler (deprecated.) d63 4 a67 1 HAVE_EGCS!= ${CXX} --version | egrep "^(2\.[89]|egcs)" ; echo d155 1 a155 1 @@${MAKE} ${_M} do-check-egcs d187 3 d192 3 a194 12 do-check-egcs: .if empty(HAVE_EGCS) .if defined(DESTDIR) @@echo "*** CAPUTE!" @@echo " You attempted to compile the world without egcs. You must" @@echo " first install a native egcs compiler." @@false .else (cd ${.CURDIR}/gnu/usr.bin/egcs && \ ${MAKE} ${_M} ${_J} dependall MKMAN=no && \ ${MAKE} ${_M} MKMAN=no install && ${MAKE} ${_M} cleandir) .endif @ 1.125 log @clarify some variable documentation; from cagney @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.124 2001/06/10 13:12:32 mrg Exp $ d120 2 a121 1 (cd ${.CURDIR}/etc && ${MAKE} -m ${.CURDIR}/share/mk DESTDIR=/ distrib-dirs) @ 1.124 log @make previous work with -j. idea from cagney @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.123 2001/06/10 13:02:54 mrg Exp $ d28 5 a32 4 # UPDATE will avoid a `make cleandir' at the start of `make build', # as well as having the effects listed in /usr/share/mk/bsd.README. # NOCLEANDIR will avoid a `make cleandir' at the start of `make build', # but without having the effects listed in /usr/share/mk/bsd.README. d34 1 @ 1.123 log @fix PR#12832: split `make build' up into these steps (from new the comments in src/Makefile): # Sub targets of `make build,' in order: # buildstartmsg: displays the start time of the build. # beforeinstall: creates the distribution directories. # do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.) # do-share-mk: installs /usr/share/mk files. # do-cleandir: clean's the tree. # do-make-obj: create's object directories if required. # do-check-egcs: check's that we have a modern enough compiler (deprecated.) # do-make-includes: install include files. # do-lib-csu: build & install startup object files. # do-lib: build & install system libraries. # do-gnu-lib: build & install gnu system libraries. # do-dependall: builds & install the entire system. # do-domestic: build & install the domestic tree (deprecated.) # do-whatisdb: build & install the `whatis.db' man database. # buildendmsg: displays the end time of the build. this is something i've wanted to do for years.... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.122 2001/05/08 02:04:08 sommerfeld Exp $ d142 16 a157 1 build: buildstartmsg beforeinstall do-force-domestic do-share-mk do-cleandir do-make-obj do-check-egcs do-make-includes do-lib-csu do-lib do-gnu-lib do-dependall do-domestic do-whatisdb buildendmsg @ 1.122 log @parallelize the obj pass, too @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.121 2000/10/07 17:18:17 deberg Exp $ d41 17 d102 1 a102 1 buildmsg: d106 4 d142 4 a145 1 build: buildmsg beforeinstall d152 2 d157 2 d162 2 d167 2 d181 2 d186 2 d191 2 d196 2 d201 2 d204 2 d209 2 a211 3 @@echo -n "Build finished at: " @@date .endif @ 1.121 log @if building w/o a DESTDIR, grab the system make files from the source tree until they've been installed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.120 2000/08/19 22:09:08 fredb Exp $ d135 1 a135 1 ${MAKE} ${_M} obj @ 1.120 log @Descend into distrib on "make cleandir", too. This will let "make build" with "MKOBJDIRS" set do the right thing in distrib. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.119 2000/08/05 10:17:35 toddpw Exp $ d89 4 d96 3 d100 1 @ 1.119 log @Document the cool NOCLEANDIR/NOINCLUDES options that somebody added. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.118 2000/06/20 06:00:24 thorpej Exp $ d58 1 a58 1 .if make(obj) @ 1.118 log @Merge a bunch of things from crypto-us and crypto-intl into basesrc, adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate bsd.crypto.mk. There is still a bunch more work to do, but crypto is now more-or-less fully merged into the base NetBSD distribution. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.117 2000/05/21 07:33:05 mrg Exp $ d30 3 @ 1.118.2.1 log @file Makefile was added on branch netbsd-1-5 on 2000-08-24 02:19:59 +0000 @ text @d1 162 @ 1.118.2.2 log @Pull up 1.119->1.120: Descend into "distrib" on cleandir, too, so that setting MKOBJDIRS does the right thing in "distrib". Approved by jhawk and thorpej. @ text @a0 162 # $NetBSD: Makefile,v 1.118.2.1 2000/08/24 02:19:59 fredb Exp $ # This is the top-level makefile for building NetBSD. For an outline of # how to build a snapshot or release, as well as other release engineering # information, see http://www.netbsd.org/developers/releng/index.html # # Not everything you can set or do is documented in this makefile. In # particular, you should review the files in /usr/share/mk (especially # bsd.README) for general information on building programs and writing # Makefiles within this structure, and see the comments in src/etc/Makefile # for further information on installation and release set options. # # Variables listed below can be set on the make command line (highest # priority), in /etc/mk.conf (middle priority), or in the environment # (lowest priority). # # Variables: # DESTDIR is the target directory for installation of the compiled # software. It defaults to /. Note that programs are built against # libraries installed in DESTDIR. # MKMAN, if set to `no', will prevent building of manual pages. # MKOBJDIRS, if not set to `no', will build object directories at # an appropriate point in a build. # MKSHARE, if set to `no', will prevent building and installing # anything in /usr/share. # NBUILDJOBS is the number of jobs to start in parallel during a # 'make build'. It defaults to 1. # UPDATE will avoid a `make cleandir' at the start of `make build', # as well as having the effects listed in /usr/share/mk/bsd.README. # # Targets: # build: builds a full release of netbsd in DESTDIR. If BUILD_DONE is # set, this is an empty target. # release: does a `make build,' and then tars up the DESTDIR files # into RELEASEDIR, in release(7) format. (See etc/Makefile for # more information on this.) # snapshot: a synonym for release. .include MKOBJDIRS ?= no HAVE_EGCS!= ${CXX} --version | egrep "^(2\.[89]|egcs)" ; echo .if defined(NBUILDJOBS) _J= -j${NBUILDJOBS} .endif .if defined(DESTDIR) _M=-m ${DESTDIR}/usr/share/mk .endif # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys .if make(cleandir) || make(obj) SUBDIR+= distrib .ifdef MAKEOBJDIRPREFIX SUBDIR+= etc .endif .endif includes-lib: includes-include includes-sys .if exists(games) SUBDIR+= games .endif SUBDIR+= gnu # This is needed for libstdc++ and gen-params. includes-gnu: includes-include includes-sys .if exists(regress) .ifmake !(install) SUBDIR+= regress .endif regression-tests: @@echo Running regression tests... @@(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress) .endif buildmsg: @@echo -n "Build started at: " @@date beforeinstall: .ifndef NODISTRIBDIRS .ifndef DESTDIR (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) .else (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) .endif .endif afterinstall: .if ${MKMAN} != "no" && !defined(_BUILD) ${MAKE} ${_M} whatis.db .endif whatis.db: (cd ${.CURDIR}/share/man && ${MAKE} ${_M} makedb) # wrt info/dir below: It's safe to move this over top of /usr/share/info/dir, # as the build will automatically remove/replace the non-pkg entries there. .if defined(BUILD_DONE) build: @@echo "Build installed into ${DESTDIR}" .else build: buildmsg beforeinstall .if defined(FORCE_DOMESTIC) @@echo '*** CAPUTE!' @@echo ' The FORCE_DOMESTIC flag is not compatible with "make build".' @@echo ' Please correct the problem and try again.' @@false .endif .if ${MKSHARE} != "no" (cd ${.CURDIR}/share/mk && ${MAKE} install) .endif .if !defined(UPDATE) && !defined(NOCLEANDIR) ${MAKE} ${_J} ${_M} cleandir .endif .if ${MKOBJDIRS} != "no" ${MAKE} ${_M} obj .endif .if empty(HAVE_EGCS) .if defined(DESTDIR) @@echo "*** CAPUTE!" @@echo " You attempted to compile the world without egcs. You must" @@echo " first install a native egcs compiler." @@false .else (cd ${.CURDIR}/gnu/usr.bin/egcs && \ ${MAKE} ${_M} ${_J} dependall MKMAN=no && \ ${MAKE} ${_M} MKMAN=no install && ${MAKE} ${_M} cleandir) .endif .endif .if !defined(NOINCLUDES) ${MAKE} ${_M} includes .endif (cd ${.CURDIR}/lib/csu && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) (cd ${.CURDIR}/lib && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) (cd ${.CURDIR}/gnu/lib && \ ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ ${MAKE} ${_M} MKSHARE=no install) ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build) .endif ${MAKE} ${_M} whatis.db @@echo -n "Build finished at: " @@date .endif release snapshot: build (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release) .include @ 1.117 log @remove two of the previous ${_M}; they were invoked before $DESTDIR/share/mk may have existed. add one more. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.116 2000/05/18 23:16:28 thorpej Exp $ d39 1 a39 6 SRCTOP=. .include # for configuration variables. .if defined(CRYPTOPATH) .sinclude "${CRYPTOPATH}/Makefile.frag" .endif a149 3 .if target(cryptobuild) ${MAKE} ${_M} ${_J} cryptobuild .endif @ 1.117.2.1 log @Sync w/ netbsd-1-5-base. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.118 2000/06/20 06:00:24 thorpej Exp $ d39 6 a44 1 .include d155 3 @ 1.116 log @Add ${_M} where it was missing in a few places. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.115 2000/05/09 00:17:10 thorpej Exp $ d96 1 a96 1 (cd ${.CURDIR}/etc && ${MAKE} ${_M} distrib-dirs) d123 1 a123 1 (cd ${.CURDIR}/share/mk && ${MAKE} ${_M} install) d126 1 a126 1 ${MAKE} ${_M} cleandir @ 1.115 log @HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9, as well. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.114 2000/05/06 07:53:53 sjg Exp $ d96 1 a96 1 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) d123 1 a123 1 (cd ${.CURDIR}/share/mk && ${MAKE} install) d129 1 a129 1 ${MAKE} obj @ 1.114 log @if MAKEOBJDIRPREFIX defined, include etc in make obj @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.113 2000/04/11 08:21:41 mrg Exp $ d47 1 a47 1 HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo d131 1 a131 1 .if empty(HAVE_GCC28) @ 1.113 log @use MKSHARE=no instead. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.112 2000/04/10 14:47:22 mrg Exp $ d62 3 @ 1.112 log @fix long standing bug in `make build' with $DESTDIR: - during `make build' after /usr/share/mk has been installed, call make with `-m $DESTDIR/usr/share/mk'. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.111 2000/04/09 02:09:49 simonb Exp $ d144 2 a145 2 ${MAKE} ${_M} ${_J} MKMAN=no dependall && \ ${MAKE} ${_M} MKMAN=no install) d147 2 a148 2 ${MAKE} ${_M} ${_J} MKMAN=no MKINFO=no dependall && \ ${MAKE} ${_M} MKMAN=no MKINFO=no install) d150 2 a151 2 ${MAKE} ${_M} ${_J} MKMAN=no MKINFO=no dependall && \ ${MAKE} ${_M} MKMAN=no MKINFO=no install) @ 1.111 log @At least one crypto-intl lib has an info file(s) - add MKINFO=no to the early build of ../src/lib ala ../src/gnu/lib. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.110 2000/03/11 00:10:20 jlam Exp $ d53 4 d81 1 a81 1 @@(cd ${.CURDIR}/regress && ${MAKE} regress) d89 1 d95 1 d99 1 a99 1 ${MAKE} whatis.db d103 1 a103 1 (cd ${.CURDIR}/share/man && ${MAKE} makedb) d122 2 a123 2 .if !defined(UPDATE) ${MAKE} cleandir d136 3 a138 2 ${MAKE} ${_J} dependall MKMAN=no && \ ${MAKE} MKMAN=no install && ${MAKE} cleandir) d140 2 a142 1 ${MAKE} includes d144 2 a145 2 ${MAKE} ${_J} MKMAN=no dependall && \ ${MAKE} MKMAN=no install) d147 2 a148 2 ${MAKE} ${_J} MKMAN=no MKINFO=no dependall && \ ${MAKE} MKMAN=no MKINFO=no install) d150 2 a151 2 ${MAKE} ${_J} MKMAN=no MKINFO=no dependall && \ ${MAKE} MKMAN=no MKINFO=no install) d153 1 a153 1 ${MAKE} ${_J} cryptobuild d155 1 a155 1 ${MAKE} ${_J} dependall && ${MAKE} _BUILD= install d157 1 a157 1 (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_J} _SLAVE_BUILD= build) d159 1 a159 1 ${MAKE} whatis.db d165 1 a165 1 (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release) @ 1.110 log @Handle new make variable BUILD_DONE which creates an empty build target if it is set. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.109 2000/03/08 00:50:05 cjs Exp $ d139 2 a140 2 ${MAKE} ${_J} MKMAN=no dependall && \ ${MAKE} MKMAN=no install) @ 1.109 log @When you type `make obj', make obj dirs in distrib whether or not you have MKOBJDIRS variable set. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.108 2000/02/29 21:54:03 erh Exp $ d32 2 a33 1 # build: builds a full release of netbsd in DESTDIR. d102 4 d154 1 @ 1.108 log @Add a buildmsg target for build to depend upon instead of using an ifmake block. "make snapshot" now echos the start of build time. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.107 2000/02/26 17:42:53 mycroft Exp $ d55 3 a115 1 (cd ${.CURDIR}/distrib && ${MAKE} obj) @ 1.107 log @share/tmac is now installed by `make includes', so don't do it again. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.106 2000/02/19 17:49:49 aidan Exp $ d76 1 a76 2 beforeinstall: .ifmake build d79 2 a80 1 .endif d98 1 a98 1 build: beforeinstall @ 1.106 log @Make 'make build' hook into crypto-tree for crypto specific build-time dependencies. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.105 2000/02/01 01:22:05 assar Exp $ d129 1 a129 1 ${MAKE} ${_J} dependall MKMAN=no && \ d132 1 a132 1 ${MAKE} ${_J} dependall MKMAN=no && \ d135 1 a135 1 ${MAKE} ${_J} dependall MKMAN=no MKINFO=no && \ a136 3 .if ${MKSHARE} != "no" (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) .endif @ 1.105 log @make sure include and include/sys are populated before starting to make includes in lib @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.104 1999/12/05 22:53:53 simonb Exp $ d38 6 a43 1 .include # for configuration variables. d139 3 @ 1.104 log @After ${MAKE} obj, explicitly make obj dirs in ${.CURDIR}/distrib as well. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.103 1999/12/04 03:52:28 simonb Exp $ d50 2 @ 1.103 log @Revert previous but move "cd share/tmac" later down so that any generated files will go in obj dirs if they are created. After discussion with the two Bill's on tech-userlevel. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.101 1999/11/30 17:48:11 sommerfeld Exp $ d106 1 @ 1.102 log @Move the "${MAKE} obj" above the share/tmac stage so that the generated files in that directory don't pollute the source tree before the obj dirs are created. @ text @a99 4 .if ${MKOBJDIRS} != "no" ${MAKE} obj .endif (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) d104 3 d129 3 @ 1.101 log @Document MKOBJDIRS here, and sort the variable list in the comments into alphabetical order. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.100 1999/11/30 16:16:41 sommerfeld Exp $ d100 3 a106 3 .endif .if ${MKOBJDIRS} != "no" ${MAKE} obj @ 1.100 log @Add MKOBJDIRS make variable to bsd.own.mk, defaulting to "no" but overrideable in mk.conf Document in bsd.README; this is distinct from "MKOBJ", which controls whether "make obj" does anything. In the top-level makefile, if MKOBJDIRS != "no", do a "make obj" at an appropriate point during a "make build". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.99 1999/09/14 01:32:43 perry Exp $ d18 3 a20 2 # NBUILDJOBS is the number of jobs to start in parallel during a # 'make build'. It defaults to 1. d22 2 d26 2 a29 3 # DESTDIR is the target directory for installation of the compiled # software. It defaults to /. Note that programs are built against # libraries installed in DESTDIR. @ 1.99 log @use new dependall target instead of depend then all in make build @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.98 1999/07/12 21:53:52 thorpej Exp $ d38 1 a38 1 d102 3 @ 1.99.4.1 log @Pull up to last week's -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.104 1999/12/05 22:53:53 simonb Exp $ d18 2 a19 3 # DESTDIR is the target directory for installation of the compiled # software. It defaults to /. Note that programs are built against # libraries installed in DESTDIR. a20 2 # MKOBJDIRS, if not set to `no', will build object directories at # an appropriate point in a build. a22 2 # NBUILDJOBS is the number of jobs to start in parallel during a # 'make build'. It defaults to 1. d25 3 d38 1 a38 1 MKOBJDIRS ?= no d98 1 a102 4 .if ${MKOBJDIRS} != "no" ${MAKE} obj (cd ${.CURDIR}/distrib && ${MAKE} obj) .endif a124 3 .if ${MKSHARE} != "no" (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) .endif @ 1.98 log @Remove all of the domestic/crypto-us glue from this file. It is handled differently now. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.97 1999/05/27 21:03:31 christos Exp $ d111 1 a111 1 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ d117 1 a117 1 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ d120 1 a120 1 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ d123 1 a123 1 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no MKINFO=no && \ d125 1 a125 1 ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} _BUILD= install @ 1.97 log @Handle crypto-us just like domestic @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.96 1999/04/25 19:13:05 scottr Exp $ a27 9 # EXPORTABLE_SYSTEM, when set, ensures that non-exportable crypto code # is not compiled or installed. EXPORTABLE_SYSTEM is ignored if # the `domestic/crypto-us' subtree does not exist. # FORCE_DOMESTIC, when set, forces a descent into the domestic/crypto-us tree # when handling the `all', `includes', and `install' targets. This # flag is incompatible with the `build' target. It's generally a # bad idea to use FORCE_DOMESTIC unless the ramifications are well # understood, and should never be enabled by default. FORCE_DOMESTIC # is ignored if the `domestic/crypto-us' subtree does not exist. a55 25 # Descend into the domestic/crypto-us tree if it exists AND # 1) the target is clean, cleandir, or obj, OR # 2) the the target is install or includes AND # NOT compiling only "exportable" code AND # doing it as part of installing a distribution, OR # 3) we Really Know what we're doing. (Really!) # # NOTE: due to the use of the make(foo) construct here, using the # clean, cleandir, and obj targets on the command line in conjunction # with any other target may produce unexpected results. .if exists(domestic) DOMESTIC=domestic .elif exists(crypto-us) DOMESTIC=crypto-us .endif .if defined(DOMESTIC) && \ (make(clean) || make(cleandir) || make(obj) || \ ((make(includes) || make(install)) && \ !defined(EXPORTABLE_SYSTEM) && defined(_DISTRIB)) || \ defined(FORCE_DOMESTIC)) SUBDIR+= ${DOMESTIC} .endif @ 1.96 log @Add the FORCE_DOMESTIC flag to force the 'all', 'includes', and 'install' targets to descend into the domestic subtree. This is generally a bad idea unless one knows precisely what they're doing, but we'll provide the rope anyway (with the appropriate warnings). Document both EXPORTABLE_SYSTEM and FORCE_DOMESTIC at the top of the file. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.95 1999/04/01 02:49:12 cjs Exp $ d30 2 a31 2 # the `domestic' subtree does not exist. # FORCE_DOMESTIC, when set, forces a descent into the domestic tree d36 1 a36 1 # is ignored if the `domestic' subtree does not exist. d66 1 a66 1 # Descend into the domestic tree if it exists AND d77 7 a83 1 .if exists(domestic) && \ d88 1 a88 1 SUBDIR+= domestic d160 2 a161 2 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic && ${MAKE} ${_J} _SLAVE_BUILD= build) @ 1.95 log @Improve documentation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.94 1999/03/10 19:18:59 scottr Exp $ d28 9 d69 3 a71 2 # NOT compiling only "exportable" code AND # doing it as part of installing a distribution. d80 2 a81 1 !defined(EXPORTABLE_SYSTEM) && defined(_DISTRIB))) d118 6 @ 1.95.2.1 log @Pull up revisions 1.109 and 1.120 (via patch, requested by fredb): Make it easier on release builders -- descend into "distrib" directory whenever "obj" or "cleandir" targets are invoked. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.95 1999/04/01 02:49:12 cjs Exp $ a4 4 .PHONY: release TARGETS+= release a47 4 .if make(cleandir) || make(obj) SUBDIR+= distrib .endif @ 1.95.2.2 log @Apply patch (requested by he): Back out ``TARGETS+= release'' part of last change; the rest of the tree is not ready for this change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.95.2.1 2000/08/26 19:00:36 he Exp $ d5 4 @ 1.94 log @Make a note of a subtle lossage mode pointed out by Mycroft. @ text @d1 34 a34 1 # $NetBSD: Makefile,v 1.93 1999/03/10 19:10:14 scottr Exp $ a37 9 # Configurations variables (can be set either in /etc/mk.conf or # as environement variable # NBUILDJOBS: the number of jobs to start in parallel in a 'make build'. # defaults to 1 # MKMAN: if set to no, don't build and install man pages # MKSHARE: if set to no, don't build or install /usr/share stuffs # UPDATE: if set to 1, don't do a 'make cleandir' before compile # DESTDIR: The target directory for installation (default to '/', # which mean the current system is updated). @ 1.93 log @Make the includes and install targets consistent, and shove the ugly hack into the etc/Makefile distribution target instead of the top-level build target. Problem noted by Mycroft. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.92 1999/02/20 09:10:41 scottr Exp $ d38 4 @ 1.92 log @Back out rev 1.90: The need for texinfo is a one-shot event. This was announced in a reasonable forum. Further, it adds significant overhead to the build process, and doesn't work correctly when a non-root DESTDIR build is attempted (unless texinfo is already available, which of course makes this change unnecessary). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.91 1999/02/19 23:22:14 scottr Exp $ d35 3 a37 3 # 2) the the target is install or includes AND NOT # a) compiling only "exportable" code OR # b) doing it as part of build. d42 1 a42 1 !(defined(EXPORTABLE_SYSTEM) || defined(_BUILD)))) d98 1 a98 1 ${MAKE} _BUILD= includes @ 1.91 log @make -> ${MAKE} @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.90 1999/02/18 14:49:59 mellon Exp $ a105 3 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no MKINFO=no && \ ${MAKE} MKMAN=no MKINFO=no install) (cd ${.CURDIR}/gnu/usr.bin/texinfo && \ @ 1.90 log @Build and install texinfo before building and installing the world. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.89 1999/02/18 03:19:44 mellon Exp $ d120 1 a120 1 (cd ${.CURDIR}/etc && make INSTALL_DONE=1 release) @ 1.89 log @Don't try to run makeinfo when doing preliminary GNU library builds. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.88 1999/02/17 08:00:52 scottr Exp $ d106 3 @ 1.88 log @Revert 1.83; it doesn't work. A different fix for his problem is in the pipeline. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.87 1999/02/16 03:37:26 cjs Exp $ d106 2 a107 2 ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ ${MAKE} MKMAN=no install) @ 1.87 log @Add release and snapshot targets. (They do the same thing.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.86 1999/02/13 02:54:17 lukem Exp $ a107 5 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic/lib && \ ${MAKE} depend && ${MAKE} ${_J} MKMAN=no && \ ${MAKE} MKMAN=no install) .endif @ 1.86 log @convert from NOxxx= to MKxxx=no. include if testing a MKxxx variable. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.85 1999/02/11 17:56:46 tv Exp $ d120 3 @ 1.85 log @Back out the info dir changes; /usr/share/info was not in pkgsrc's info path, which confused me to no end. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.84 1999/02/11 14:49:49 tv Exp $ d7 7 a13 7 # NBUILDJOBS: the number of jobs to start in parallel in a 'make build'. # defaults to 1 # NOMAN: if set to 1, don't build and install man pages # NOSHARE: if set to 1, don't build or install /usr/share stuffs # UPDATE: if set to 1, don't do a 'make cleandir' before compile # DESTDIR: The target directory for installation (default to '/', # which mean the current system is updated). d68 1 a68 1 .if !defined(NOMAN) && !defined(NOSHARE) && !defined(_BUILD) d79 1 a79 1 .if !defined(NOSHARE) d94 2 a95 2 ${MAKE} depend && ${MAKE} ${_J} NOMAN= && \ ${MAKE} NOMAN= install && ${MAKE} cleandir) d100 2 a101 1 ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) d103 2 a104 1 ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) d106 2 a107 1 ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) d110 2 a111 1 ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) @ 1.84 log @If updating from a system which has a /usr/pkg/info/dir, move that to /usr/share/info/dir and make a symlink in /usr/pkg/info. This allows systems with the gtexinfo pkg installed to work "properly". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.83 1999/02/09 19:52:50 christos Exp $ a81 6 if [ -f ${DESTDIR}/usr/pkg/info/dir ]; then \ ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \ ${DESTDIR}/usr/pkg/info/dir ${DESTDIR}/usr/share/info/dir; \ rm -f ${DESTDIR}/usr/pkg/info/dir; \ ln -s /usr/share/info/dir ${DESTDIR}/usr/pkg/info/dir; \ fi @ 1.83 log @Build the domestic libraries first, before building programs. Unfortunately some programs like /usr/libexec/ftpd, need the kerberos etc libraries. XXX: In reality programs like these should be moved to the domestic tree! I would have assumed that if I make install in the exportable tree, I will not install any domestic binaries!!! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.82 1999/01/29 05:42:35 scottr Exp $ d75 3 d82 6 d95 1 a95 1 @@echo " You attempted to compile the world with egcs. You must" d97 1 a97 1 false @ 1.82 log @Once more, from the beginning: we really, really don't want to descend into the domestic tree if we are building an EXPORTABLE_SYSTEM. Translate the conditional to English so as to avoid future problems when people are tempted to modify it. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.81 1999/01/28 15:36:48 scottr Exp $ d102 4 @ 1.81 log @If doing a "domestic" build, make sure whatis.db is built _after_ the domestic tree. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.80 1999/01/24 19:18:54 scottr Exp $ d33 6 a38 2 # This little mess makes the includes and install targets # do the expected thing. d41 2 a42 1 (!defined(_BUILD) && (make(includes) || make(install)))) @ 1.80 log @Sigh. The last change was too clever. Instead of using EXPORTABLE_SYSTEM, which has side effects, use _BUILD to determine whether we ought to install things in the domestic subtree. Otherwise, the core idea from the last revision is unchanged. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.79 1999/01/24 07:42:34 scottr Exp $ d63 5 a67 1 .if !defined(NOMAN) && !defined(NOSHARE) a68 1 .endif d101 1 @ 1.79 log @When I split the build target into the top-level and "domestic" pieces, I failed to account for how a 'make distribution' would get the proper bits into the distribution tree. To correct this, we set EXPORTABLE_SYSTEM while doing a 'make build' in order to avoid trying to install not-yet- generated headers and binaries. I've also made the required adjustment to the condition that adds "domestic" to SUBDIR. This is too hairy and needs to die, but I don't see how it can until we integrate the crypto bits into the main body of the tree. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.78 1999/01/05 07:09:58 scottr Exp $ d37 1 a37 1 (!defined(EXPORTABLE_SYSTEM) && (make(includes) || make(install)))) d87 1 a87 1 ${MAKE} EXPORTABLE_SYSTEM= includes d94 1 a94 1 ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} EXPORTABLE_SYSTEM= install @ 1.78 log @Don't build domestic bits directly; use the domestic 'build' target to do them for us. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.77 1999/01/03 22:17:19 cjs Exp $ d33 5 a37 1 .if exists(domestic) && (make(clean) || make(cleandir) || make(obj)) d87 1 a87 1 ${MAKE} includes d94 1 a94 1 ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} install @ 1.77 log @Even if EXPORTABLE_SYSTEM is defined, descend into domestic for targets obj, clean, cleandir and distclean. This reduces the chance of problems (and the need to re-run make obj) if one is switching back and forth between EXPORTABLE_SYSTEM and not, as US/Canadian developers tend to do. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.76 1998/12/22 11:21:09 bouyer Exp $ d33 1 a33 2 .if exists(domestic) && (!defined(EXPORTABLE_SYSTEM) ||\ make(obj) || make(clean) || make(cleandir) || make(distclean)) d90 1 d92 1 a92 5 # libtelnet depends on libdes and libkrb. libkrb depends on # libcom_err. .if exists(domestic/lib/libdes) (cd ${.CURDIR}/domestic/lib/libdes && \ ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) a93 12 .if exists(domestic/lib/libcom_err) (cd ${.CURDIR}/domestic/lib/libcom_err && \ ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) .endif .if exists(domestic/lib/libkrb) (cd ${.CURDIR}/domestic/lib/libkrb && \ ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) .endif (cd ${.CURDIR}/domestic/lib && \ ${MAKE} depend && ${MAKE} ${_J} NOMAN= && ${MAKE} NOMAN= install) .endif ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} install @ 1.76 log @Add a 'NBUILDJOBS' variable which control the number of jobs started in parallel for a 'make build' (using make's -j flag). Only CPU-intensive jobs are started in parallel. Document the variables useable at the begining of the makefile (NBUILDJOBS NOMAN NOSHARE UPDATE DESTDIR). Feel free to add documentation for the ones I forgot ! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.75 1998/12/12 23:44:22 tv Exp $ d33 2 a34 1 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) @ 1.75 log @GC old gcc 2.7.2.2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.74 1998/12/07 01:42:34 simonb Exp $ d5 10 d17 4 d79 2 a80 2 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install && \ ${MAKE} cleandir) d85 1 a85 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d87 1 a87 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d89 1 a89 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d95 1 a95 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d99 1 a99 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d103 1 a103 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d106 1 a106 1 ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) d108 1 a108 1 ${MAKE} depend && ${MAKE} && ${MAKE} install @ 1.74 log @Let make do the NOMAN= variable assignments instead of the shell so us csh/tcsh weenies can cut and paste "make -n build" lines. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.73 1998/12/02 22:53:06 thorpej Exp $ d57 1 a57 1 .if defined(USE_EGCS) && empty(HAVE_GCC28) a75 7 .if !defined(USE_EGCS) .if (${MACHINE_ARCH} != "alpha") && \ (${MACHINE_ARCH} != "powerpc") (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \ ${MAKE} depend && ${MAKE} NOMAN= && ${MAKE} NOMAN= install) .endif .endif @ 1.73 log @It is no longer necessary to run ldconfig in the build: target. It is handled by bsd.lib.mk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.72 1998/10/18 20:41:39 thorpej Exp $ d65 1 a65 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install && \ d71 1 a71 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d73 1 a73 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d75 1 a75 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d80 1 a80 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d88 1 a88 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d92 1 a92 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d96 1 a96 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d99 1 a99 1 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) @ 1.72 log @Only ldconfig if it's there (ELF systems don't use ldconfig). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.71 1998/10/16 05:05:09 mycroft Exp $ a99 5 .endif .if !defined(DESTDIR) if [ -f /sbin/ldconfig ]; then \ /sbin/ldconfig -m /usr/lib; \ fi @ 1.71 log @Do not build libgcc 3 times. Instead: * If upgrading the compiler, build it *first*, before anything else. * If upgrading the compiler and DESTDIR is set, barf. This guarantees that libgcc is built during the library stage. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.70 1998/10/15 02:50:00 mycroft Exp $ d102 3 a104 1 ldconfig -m /usr/lib @ 1.70 log @When doing a `make build' without DESTDIR, run ldconfig(8) after updating the libraries. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.69 1998/10/07 02:35:38 tv Exp $ d57 12 d76 1 a76 4 .if defined(USE_EGCS) && !empty(HAVE_GCC28) (cd ${.CURDIR}/gnu/lib/libgcc && \ ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) .else a104 11 .if defined(USE_EGCS) .if defined(DESTDIR) && (${HAVE_GCC28} == "") @@echo '***** WARNING ***** Your system compiler is not GCC 2.8 or higher' @@echo 'and you have built a distribution with GCC 2.8 and DESTDIR set.' @@echo 'You will need to rebuild libgcc from gnu/usr.bin/egcs/libgcc' @@echo 'in order to have full C++ support in the binary set.' .else (cd ${.CURDIR}/gnu/lib/libgcc &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif # DESTDIR && !HAVE_GCC28 .endif # USE_EGCS @ 1.69 log @Fix libgcc on alpha; shouldn't build 2.7 libgcc when bootstrapping. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.68 1998/09/29 06:59:53 lukem Exp $ d91 3 @ 1.68 log @don't install in /usr/share if NOSHARE is defined @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.67 1998/09/27 18:18:42 christos Exp $ d68 2 a69 1 .if (${MACHINE_ARCH} != "powerpc") @ 1.67 log @Test gcc2.8 and egcs properly @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.66 1998/08/27 14:11:45 tv Exp $ d45 1 a45 1 .ifndef NOMAN d50 1 d53 1 @ 1.66 log @No need to shield alpha from gcc 2.7 libgcc any longer. Default is egcs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.65 1998/08/22 22:06:23 tv Exp $ d62 1 a62 1 .if defined(USE_EGCS) && (${HAVE_GCC28} != "") @ 1.65 log @Only build the egcs libgcc if the current ${CXX} is actually egcs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.64 1998/08/22 22:05:00 tv Exp $ d66 1 a66 2 .if (${MACHINE_ARCH} != "alpha") && \ (${MACHINE_ARCH} != "powerpc") @ 1.64 log @Re-enable libgcc from egcs and RE-ADD the warning & libgcc rebuild at the end of the build - it is needed for gcc 2.7->egcs bootstraps! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.63 1998/08/16 17:25:30 tv Exp $ d62 1 a62 1 .if defined(USE_EGCS) @ 1.63 log @Turn off the egcs bits while the 1.1 import is taking place. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.62 1998/07/28 18:55:41 thorpej Exp $ d63 2 a64 2 # (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc && \ # ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) d91 11 @ 1.62 log @Don't try and build non-EGCS libgcc on Alpha and PowerPC. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.61 1998/07/26 17:28:58 mycroft Exp $ d63 2 a64 2 (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc && \ ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) @ 1.61 log @During the initial library pass, do not install man pages. Also, GC the weird egcs stuff in here. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.60 1998/07/25 10:35:53 mycroft Exp $ d66 2 d70 1 @ 1.60 log @Do not blow away my egcs libgcc at the beginning of a build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.59 1998/07/24 16:51:33 tv Exp $ d56 6 a61 3 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) d64 1 a64 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) d67 1 a67 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) d74 1 a74 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) d78 1 a78 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) d82 1 a82 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) d85 1 a85 1 ${MAKE} depend && ${MAKE} && ${MAKE} install) a87 11 .if defined(USE_EGCS) .if defined(DESTDIR) && (${HAVE_GCC28} == "") @@echo '***** WARNING ***** Your system compiler is not GCC 2.8 or higher,' @@echo 'and you have built a distribution with GCC 2.8 and DESTDIR set.' @@echo 'You will need to rebuild libgcc from gnu/usr.bin/egcs/libgcc' @@echo 'in order to have full C++ support in the binary set.' .else (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif # DESTDIR && !HAVE_GCC28 .endif # USE_EGCS @ 1.59 log @Fix flawed logic: I'm not all here today. (.if's werten't doing what the commit comment said they would do. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.58 1998/07/24 16:48:47 tv Exp $ d59 7 a65 1 (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && ${MAKE} depend && ${MAKE} && ${MAKE} install) d81 2 a82 2 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \ ${MAKE} install) @ 1.58 log @Fix the rebuild of libgcc: - If USE_EGCS is set, rebuild egcs's libgcc and install it (unless DESTDIR is set and system compiler is not gcc 2.8, in which case print a warning message and do nothing). - Do not rebuild gcc 2.7's libgcc. egcs can build this fine. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.57 1998/07/21 23:13:13 perry Exp $ d80 1 a80 2 .if defined(DESTDIR) .if (${HAVE_GCC28} == "") a84 1 .endif # HAVE_GCC28 d88 1 a88 1 .endif # DESTDIR @ 1.57 log @build libgcc during make build; also, don't build lex and yacc first any more. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.56 1998/05/27 06:38:37 scottr Exp $ d5 2 a78 7 .if (${MACHINE_ARCH} == "arm32") || \ (${MACHINE_ARCH} == "i386") || \ (${MACHINE_ARCH} == "mips") || \ (${MACHINE_ARCH} == "m68k") || \ (${MACHINE_ARCH} == "ns32k") || \ (${MACHINE_ARCH} == "sparc") || \ (${MACHINE_ARCH} == "vax") d80 8 d90 1 a90 3 .else (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) a91 1 .endif # MACHINE_ARCH @ 1.56 log @Revert 1.44 and associated changes; you can't prebuild anything without includes, which is the case if you are building to an empty $DESTDIR. Fixes PR 5497. NOTE: This reverts us to the 1.3 behavior of requiring the secr set to be installed for non-exportable builds. While unfortunate, this allows a user to start with existing binary sets, rather than requiring special knowledge of how to build a domestic tree to $DESTDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.55 1998/05/21 11:53:49 tv Exp $ d57 1 a57 6 (cd ${.CURDIR}/usr.bin/lex &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/usr.bin/yacc && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/usr.bin/xlint && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) @ 1.55 log @Move (re)build of libgcc to end of build list (after gcc/egcs would be installed/updated). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.54 1998/05/21 01:40:19 thorpej Exp $ a49 12 .if exists(domestic) && !defined (EXPORTABLE_SYSTEM) .if exists(domestic/usr.bin/compile_et) (cd ${.CURDIR}/domestic/usr.bin/compile_et && \ ${MAKE} depend && ${MAKE} && \ ${MAKE} install) .endif .if exists(domestic/usr.bin/make_cmds) (cd ${.CURDIR}/domestic/usr.bin/make_cmds && \ ${MAKE} depend && ${MAKE} && \ ${MAKE} install) .endif .endif @ 1.54 log @Gack, don't try to build libgcc if it wouldn't be appropriate. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.53 1998/05/12 01:59:54 thorpej Exp $ a68 15 .if (${MACHINE_ARCH} == "arm32") || \ (${MACHINE_ARCH} == "i386") || \ (${MACHINE_ARCH} == "mips") || \ (${MACHINE_ARCH} == "m68k") || \ (${MACHINE_ARCH} == "ns32k") || \ (${MACHINE_ARCH} == "sparc") || \ (${MACHINE_ARCH} == "vax") .if defined(USE_EGCS) (cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) .else (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif # USE_EGCS .endif # MACHINE_ARCH d94 15 @ 1.53 log @Build the appropriate libgcc, so that build-to-destdir works. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.52 1998/05/10 10:37:59 mycroft Exp $ d69 7 d82 2 a83 1 .endif @ 1.52 log @Make sure system includes are installed before descending into gnu. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.51 1998/04/15 13:44:55 tv Exp $ d69 7 @ 1.51 log @Do the cleandir before the includes, so rpcgen doesn't build includes twice. (Should build and install rpcgen before the includes, but it's not too clear whether to do this before or after the cleandir.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.50 1998/02/20 01:39:38 mellon Exp $ d7 1 a7 1 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share d14 2 a15 2 SUBDIR+= sys @ 1.50 log @Print date after build completes as well as before. Previous code failed because make build depends on beforeinstall but not afterinstall. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.49 1998/02/16 10:07:31 lukem Exp $ a61 1 ${MAKE} includes d65 1 @ 1.49 log @fix make build for non-usa domestic a better way @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.48 1998/02/16 07:57:19 lukem Exp $ a45 4 .ifmake build @@echo -n "Build finished at: " @@date .endif d94 2 @ 1.48 log @don't assume domestic/usr.bin/compile_et exists for make build (eg: the user has a non-USA domestic subtree) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.47 1998/02/15 00:33:03 thorpej Exp $ d54 2 a55 1 .if exists(domestic) && exists(domestic/usr.bin/compile_et) && !defined (EXPORTABLE_SYSTEM) d59 2 d65 1 d82 1 d85 2 d89 2 d93 1 @ 1.47 log @In the build targer, make sure the troff macros are installed before attempting to build manual pages. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.46 1998/02/10 04:38:13 thorpej Exp $ d54 1 a54 1 .if exists(domestic) && !defined (EXPORTABLE_SYSTEM) @ 1.46 log @Domestic library build fix: libtelnet depends on libdes and libkrb. libkrb depends on libcom_err. So, build libdes, libcom_err, libkrb in that order before building domestic/lib. (Geez, this stuff is a mess.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.45 1998/02/06 23:11:57 perry Exp $ d53 1 @ 1.45 log @add date printout at beginning and end of 'make build's @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.44 1998/01/30 07:10:31 mellon Exp $ d75 6 @ 1.44 log @Prebuild some things that the build depends on *before* they are needed so that fresh builds don't die prematurely @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 1997/10/27 18:06:39 thorpej Exp $ d32 4 d45 4 @ 1.43 log @Make the "build" target depend on "beforeinstall", ensuring that all directories have been created for the installation of the include files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42 1997/05/31 21:21:13 cjs Exp $ d45 8 d60 6 d67 2 @ 1.42 log @Back out BUILDDIR and NOINSTALL changes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 1997/03/24 22:22:15 christos Exp $ d43 1 a43 1 build: @ 1.42.2.1 log @Pull up from trunk: Make the "build" target depend on "beforeinstall", ensuring that all directories have been created for the installation of the include files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 1997/10/27 18:06:39 thorpej Exp $ d43 1 a43 1 build: beforeinstall @ 1.42.2.2 log @Pull up 1.44 (mellon) and 1.45 (perry) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42.2.1 1997/10/27 18:09:59 thorpej Exp $ a31 4 .ifmake build @@echo -n "Build started at: " @@date .endif a41 4 .ifmake build @@echo -n "Build finished at: " @@date .endif a44 8 .if exists(domestic) && !defined (EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic/usr.bin/compile_et && \ ${MAKE} depend && ${MAKE} && \ ${MAKE} install) (cd ${.CURDIR}/domestic/usr.bin/make_cmds && \ ${MAKE} depend && ${MAKE} && \ ${MAKE} install) .endif a51 6 (cd ${.CURDIR}/usr.bin/lex &&\ ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/usr.bin/yacc && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd ${.CURDIR}/usr.bin/xlint && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) a52 2 (cd ${.CURDIR}/domestic/lib/libkrb && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) @ 1.42.2.3 log @Pull up 1.45-1.50: make build fails! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42.2.2 1998/02/07 00:49:34 mellon Exp $ d46 4 a52 1 (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) a53 1 .if exists(domestic/usr.bin/compile_et) a56 2 .endif .if exists(domestic/usr.bin/make_cmds) a60 1 .endif a74 11 # libtelnet depends on libdes and libkrb. libkrb depends on # libcom_err. .if exists(domestic/lib/libdes) (cd ${.CURDIR}/domestic/lib/libdes && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif .if exists(domestic/lib/libcom_err) (cd ${.CURDIR}/domestic/lib/libcom_err && \ ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif .if exists(domestic/lib/libkrb) a76 1 .endif a80 2 @@echo -n "Build finished at: " @@date @ 1.41 log @Add a cleandir to make build, to make it more like it was before. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.40 1997/05/26 03:55:19 cjs Exp $ d43 1 a43 1 oldbuild: a56 15 build: @@# can't do domestic includes until crt0.o, etc. is built. ${MAKE} EXPORTABLE_SYSTEM=1 includes .if !defined(UPDATE) ${MAKE} cleandir .endif (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE}) (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE}) (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE}) .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic && ${MAKE} includes) (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE}) .endif ${MAKE} depend && ${MAKE} @ 1.40 log @These updates to the build allow building against include files and libs in the object tree, if you use a separate object tree, while maintaining backward compatability with other build methods. See the notes in src/share/mk/bsd.README for full details. Note that the `make includes' target now only installs the include files in the build directory (if you use one--otherwise they go in DESTDIR just like before); `make install' will install include files in DESTDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 1997/03/24 22:22:15 christos Exp $ d61 3 @ 1.39 log @Don't cleandir on make build when UPDATE is set. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.38 1997/03/10 23:46:12 cgd Exp $ d43 1 a43 1 build: d57 12 @ 1.38 log @when doing 'make build', build lib/csu & install it before building lib itself. On the Alpha (and other ELF systems), shared library builds require files built/installed by the csu build, so if lib/csu isn't built/installed before lib is, DESTDIR builds won't work and normal builds can mistakenly use old versions of some csu files. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.37 1996/11/27 02:04:06 cjs Exp $ d46 1 d48 1 @ 1.37 log @All of domestic/lib now builds without errors, so we build it all. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 1996/08/10 23:29:00 explorer Exp $ d47 1 @ 1.36 log @allow builds to work if directory games is missing. Closes pr misc/1921 and misc/2294 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 1996/04/25 01:09:33 jtc Exp $ d50 1 a50 2 # XXX should do the whole of domestic/lib (cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && \ @ 1.35 log @Headers in src/domestic/include are now installed by the includes target @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 1996/04/25 01:02:27 jtc Exp $ d7 6 a12 1 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games @ 1.34 log @Headers in src/include are now installed by the includes target @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 1996/04/25 00:47:25 jtc Exp $ a40 3 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) (cd ${.CURDIR}/domestic/include && ${MAKE} install) .endif @ 1.33 log @Added "${MAKE} includes" to build target @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 1996/04/13 06:36:15 cgd Exp $ a40 1 (cd ${.CURDIR}/include && ${MAKE} install) @ 1.32 log @pull in bsd.own.mk earlier, to get configuration variables. if people define EXPORTABLE_SYSTEM, they REALLY don't want to do stuff in 'domestic'. Pay attention to it when doing 'make build'. in 'make build', install share/mk _first_, because include dirs may require new make templates. in 'make build', install domestic includes after normal includes, so they can previously-installed includes if necessary. Note that all of domestic/lib should be built in 'make build' during the library build stage. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 1996/03/18 09:55:25 tls Exp $ d40 1 @ 1.31 log @behaviour of 'make build' should not change if DESTDIR is set; this is an artifact of an ancient mistake of mine. @ text @d1 3 a3 1 # $NetBSD: Makefile,v 1.30 1996/03/18 09:53:11 tls Exp $ a25 2 .include # for NOMAN, if it's there. d39 3 a41 1 .if exists(domestic) a43 2 (cd ${.CURDIR}/include && ${MAKE} install) (cd ${.CURDIR}/share/mk && ${MAKE} install) d47 4 a50 2 .if exists(domestic) (cd ${.CURDIR}/domestic/lib/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) @ 1.30 log @a futile nod to ease-of-upgrade: make build now installs new rules from share/mk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 1996/03/18 09:21:33 tls Exp $ d29 2 @ 1.29 log @removed obsolete src/kerberosIV reference, albeit commented out @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 1995/12/15 18:13:41 jtc Exp $ d41 1 @ 1.28 log @fix typo @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 1995/12/09 23:07:02 tls Exp $ a46 3 #.if exists(kerberosIV) # (cd ${.CURDIR}/kerberosIV && ${MAKE} depend && ${MAKE} && ${MAKE} install) #.endif @ 1.27 log @libcrypt has moved @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 1995/12/09 22:39:46 tls Exp $ d38 1 a38 1 {cd ${.CURDIR}/domestic/include && ${MAKE} install) @ 1.26 log @get krb4 includes installed, do distrib-dirs if DESTDIR not set @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $ d45 1 a45 1 (cd ${.CURDIR}/domestic/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) @ 1.25 log @New-style RCS id. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 1995/10/07 22:58:52 pk Exp $ d26 4 a29 2 #beforeinstall: # (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) d37 3 d47 3 a49 3 .if exists(kerberosIV) (cd ${.CURDIR}/kerberosIV && ${MAKE} depend && ${MAKE} && ${MAKE} install) .endif @ 1.24 log @Comment out last change as it interferes with distribution building. @ text @d1 1 a1 1 # $Id: Makefile,v 1.23 1995/10/06 12:05:36 tls Exp $ @ 1.23 log @stick distrib-dirs in beforeinstall -- should be cleaner? @ text @d1 1 a1 1 # $Id: Makefile,v 1.22 1995/02/26 01:10:19 cgd Exp $ d26 2 a27 2 beforeinstall: (cd $.{CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) @ 1.22 log @work in the face of a /usr/src/obj directory @ text @d1 1 a1 1 # $Id: Makefile,v 1.21 1995/02/19 12:20:06 cgd Exp $ d25 3 @ 1.21 log @add 'domestic' to subdirs list, if it exists. @ text @d1 1 a1 1 # $Id: Makefile,v 1.20 1994/12/22 12:43:45 cgd Exp $ d21 1 a21 1 @@(cd regress && ${MAKE} regress) d28 1 a28 1 (cd share/man && ${MAKE} makedb) d32 1 a32 1 (cd include && ${MAKE} install) d34 2 a35 2 (cd lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) (cd gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install) d37 1 a37 1 (cd domestic/libcrypt && ${MAKE} depend && ${MAKE} && ${MAKE} install) d40 1 a40 1 (cd kerberosIV && ${MAKE} depend && ${MAKE} && ${MAKE} install) @ 1.20 log @explicitly pull in bsd.own.mk, so that it's there for afterinstall. @ text @d1 1 a1 1 # $Id: Makefile,v 1.19 1994/06/14 04:40:29 cgd Exp $ d10 4 d36 3 @ 1.19 log @if not installing man pages, don't remake whatis db @ text @d1 1 a1 1 # $Id: Makefile,v 1.18 1994/02/10 08:50:06 cgd Exp $ d19 2 @ 1.18 log @light style cleanup @ text @d1 1 a1 1 # $Id: Makefile,v 1.17 1994/02/10 01:50:17 cgd Exp $ d21 1 d23 1 @ 1.17 log @don't use 'make' explicitly @ text @d1 1 a1 1 # $Id: Makefile,v 1.16 1994/02/08 23:20:40 cgd Exp $ d17 1 a17 1 @@( cd regress; ${MAKE} regress ) @ 1.16 log @kill typo @ text @d1 1 a1 1 # $Id: Makefile,v 1.15 1994/02/07 05:08:57 cgd Exp $ d17 1 a17 1 @@( cd regress; make regress ) d21 1 a21 1 (cd share/man && make makedb) d24 4 a27 4 (cd include && make install) make cleandir (cd lib && make depend && make && make install) (cd gnu/lib && make depend && make && make install) d29 1 a29 1 (cd kerberosIV && make depend && make && make install) d31 1 a31 1 make depend && make && make install @ 1.15 log @add some new targets to DTRT when installing/building @ text @d1 1 a1 1 # $Id: Makefile,v 1.14 1993/12/08 04:51:25 cgd Exp $ d24 1 a24 1 (cd install && make install) @ 1.14 log @do "lib" first. otherwise you can be *really* screwed by a 'make install' on a system with shared libraries... @ text @d1 1 a1 1 # $Id: Makefile,v 1.13 1993/07/07 12:55:48 brezak Exp $ d19 13 @ 1.13 log @Make regress only if directory exists. It can be optional. @ text @d1 1 a1 1 # $Id: Makefile,v 1.12 1993/07/04 14:02:11 cgd Exp $ d5 1 a5 1 SUBDIR+= bin include lib libexec sbin usr.bin usr.sbin share games @ 1.12 log @allow toplevel makefile to descend into sys @ text @d1 1 a1 1 # $Id: Makefile,v 1.11 1993/05/22 07:15:52 cgd Exp $ d10 1 d18 1 @ 1.11 log @change from rcs "Header" to "Id" @ text @d1 1 a1 1 # $Id: /b/source/CVS/src/Makefile,v 1.10 1993/05/22 07:15:13 cgd Exp $ d7 2 @ 1.10 log @oops, clean that up a bit @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.9 1993/05/22 07:10:28 cgd Exp $ @ 1.9 log @add regress, but not for install. also, add "regress" target @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.8 1993/04/29 12:42:00 cgd Exp $ d12 3 a14 2 regress: cd regress ; make regress @ 1.8 log @put all of the gnu stuff in one place @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.7 1993/04/29 11:48:50 cgd Exp $ d7 7 @ 1.7 log @added gnulibexec gnugames @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.6 1993/04/10 15:49:55 cgd Exp $ d6 1 a6 1 SUBDIR+= gnulib gnulibexec usr.gnubin gnugames @ 1.6 log @added `usr.gnubin' for new gnu binaries necessary for the distribution. @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.5 1993/04/08 01:05:57 cgd Exp $ d5 2 a6 2 SUBDIR= bin include lib libexec sbin usr.bin usr.sbin share games \ gnulib usr.gnubin @ 1.5 log @added gnulib, for gnu libraries that for whatever reason need to go into the main tree @ text @d1 1 a1 1 # $Header: /b/source/CVS/src/Makefile,v 1.4 1993/03/22 08:43:59 cgd Exp $ d5 2 a6 1 SUBDIR= bin include lib libexec sbin usr.bin usr.sbin share games gnulib @ 1.4 log @change "Id" to "Header" in rcsid, and noted why etc was not in subdirs @ text @d1 1 a1 1 # $Header: Makefile,v 1.3 93/03/22 08:05:02 cgd Exp $ d5 1 a5 1 SUBDIR= bin include lib libexec sbin usr.bin usr.sbin share games @ 1.3 log @added rcs ids to all files @ text @d1 3 a3 1 # $Id$ @ 1.2 log @after 0.2.2 "stable" patches applied @ text @d1 1 a1 8 # # PATCHES MAGIC LEVEL PATCH THAT GOT US HERE # -------------------- ----- ---------------------- # CURRENT PATCH LEVEL: 1 00101 # -------------------- ----- ---------------------- # # 10 Mar 93 Rodney W. Grimes Added user.share to SUBDIR # @ 1.1 log @Initial revision @ text @d1 10 a10 1 SUBDIR= bin include lib libexec sbin usr.bin usr.sbin @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@