summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* Moved `clean:' below, just before the inclusion of bsd.obj.mk,ru2002-07-211-36/+36
| | | | so that CLEANFILES from bsd.man.mk and bsd.dep.mk are honored.
* Only define SHLIB_LINK if SHLIB_NAME matches the *.so.* pattern.ru2002-07-191-1/+1
| | | | (Useful for RELENG_4's lib/libpam/modules.)
* Correction to the previous revision: define SHLIB_LINK if SHLIB_NAMEru2002-07-181-1/+3
| | | | is defined (whether or not LIB is defined).
* Sort FILES.ru2002-07-171-1/+1
|
* Moved the `distribute' target from bsd.obj.mk to bsd.subdir.mk,ru2002-07-122-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to make it call `install' in the bsd.subdir.mk-driven makefiles too. (share/examples/Makefile,v 1.29 changed the bsd.prog.mk to bsd.subdir.mk and many stuff was lost during "make release". I then merged this change in rev. 1.28.2.2 to work around the namespace pollution (FILES) in this makefile.) There was an added complexity here. Both the `distribute' and `install' targets are recursive (they propagate to SUBDIRs). So `distribute' first calls `install' in the ${.CURDIR}, then calls `distribute' in each SUBDIR, etc. The problem is that `install' (being also recursive) causes the stuff from SUBDIR to be installed twice, first time thru `install' in ${.CURDIR} triggered by `distribute', second time by `distribute' run in the SUBDIR. This problem is not new, but it became apparent only after I moved the `distribute' target from bsd.obj.mk to bsd.subdir.mk. My first attempt testing the fix failed due to this, because the whole world was distributed twice, causing all the imaginable mess (kerberos5 stuff was installed into both "base" and "krb5" dists, there was /sbin/init.bak, etc.) I say the problem is not new because bsd.prog.mk and bsd.lib.mk makefiles with SUBDIR (even without this fix) had this problem for years. Try e.g. running ``make distribute DISTDIR=/foo'' from usr.bin/bzip2 or from lib/libcom_err (without the fix) and watch the output. So the solution was to make `install' behave non-recursive when executed by `distribute'. My first attempt in passing SUBDIR= to the `install' in the `distribute' body failed because of the way how src/Makefile and src/Makefile.inc1 communicate with each other. SUBDIR='s assignment precedence on the "make install SUBDIR=" command line is lowered after src/Makefile wrapper calls "make ... -f ${.CURDIR}/Makefile.inc1 install" because SUBDIR= is moved into environment, and Makefile.inc1's assignments now take higher precedence. This may be fixed someday when we merge Makefile with Makefile.inc1. For now, this is implemented as a NO_SUBDIR knob. Spotted by: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> Prodded by: des MFC after: 3 days
* Be more strict with WARNS now -- the GCC 3.1 turmoil is behind us.obrien2002-07-071-0/+6
|
* Part 1/2 of kerberos5/doc/ "make release" breakage fix:ru2002-07-061-1/+1
| | | | | Finish the fix of rev. 1.28 changes in rev. 1.47 (removed gross dir file bootstrap rule again).
* Make it possible (again) to build and install shared library only.ru2002-07-031-19/+38
| | | | | | One needs to define SHLIB_NAME for this to work. Prodded by: mi
* Moved checkdpadd target to where it logically belongs.ru2002-07-032-25/+22
|
* Try really hard to fix parallel installs. Add a bunch of .ORDERru2002-07-035-0/+8
| | | | | | | | | | | | | | | | | | | | | directives to ensure that all realinstall sub-tasks are executed after beforeinstall, similarly ensure that all afterinstall sub- tasks are executed after realinstall. Demonstration: all: task1 task2 .ORDER: task1 task2 task2: task2_subtask .ORDER: task1 task2_subtask task1 task2 task2_subtask: @sleep `jot -r 1 0 1.0` @echo ${.TARGET} Without the second .ORDER directive, task2_subtask can be run in parallel with task1. Spotted by: Andrea Campi <andrea@webcom.it>
* Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk.ru2002-07-022-77/+28
| | | | | | | | | | | | Provided the (previously missing) dependency on source files for intermediate .msg files. Provided the default for NLSSRCDIR (defaults to .CURDIR). Slightly changed the API: NLS should now list plain locale names, without the .msg suffix. When included from bsd.prog.mk, NLSNAME defaults to PROG.
* Handle installation of hard and symbolic links via a seperate .mk file.ru2002-07-024-49/+34
|
* bsd.subdir.mk already has these dependencies coded.ru2002-07-011-11/+0
|
* Get rid of the bogus dependencies between beforeinstall, realinstall,ru2002-07-011-3/+2
| | | | | | | | | | and afterinstall targets. Make sure they are run in sequence in the -j case. This fixes the recent breakage with beforeinstall being run _after_ realinstall. Reported by: knu
* Fixed typos.ru2002-07-011-4/+4
|
* If CLEANFILES is nil or not defined, do not try to remove it. This happensjmallett2002-06-261-0/+2
| | | | | | | when SRCS is entirely files which produce only one compiled form, and when NOMAN is defined. This does not seem to happen in STABLE. Approved by: ru
* Quiet ``make objlink'' when NOOBJ is defined.ru2002-06-211-1/+3
| | | | | PR: bin/21142 Submitted by: Craig Leres <leres@ee.lbl.gov>
* In gcc 3.1 Pentium/MMX now has its own -march=XXX option.sobomax2002-06-131-1/+1
|
* Reimplement FILES support using bsd.files.mk with theru2002-06-035-30/+74
| | | | | | | | same set of features as in recently added bsd.incs.mk (FILESGROUPS, accessibility from both bsd.prog.mk and bsd.lib.mk, de-pessimized typical installation path, etc.) New standard targets: buildfiles, installfiles, and files (buildfiles + installfiles).
* Bootstrapping aid for those with Athlon upgrading from gcc 2.95.x.ru2002-05-311-0/+4
| | | | Prodded by: gordon
* For now, make the .ifdef GCC3 case default. We should change -Wno-formatpeter2002-05-241-7/+1
| | | | | | back to -fformat-extensions (or whatever) when we have the functionality. We are gaining warnings again that should be fixed but the are being hidden by NO_WERROR and all the -Wformat noise.
* Revision 1.39 made filtering of CFLAGS unnecessary.ru2002-05-221-6/+6
|
* Tweak the WARNS levels a tad.obrien2002-05-191-6/+0
|
* Default Alpha compiles to ev5.obrien2002-05-151-1/+1
| | | | | | | EV5 binaries will run on EV4[5], but the timing assumptions do pessimize running on EV4[5]. Tested by: ticso
* Rename `includes' to `buildincludes'.ru2002-05-154-19/+24
| | | | | | Rename `incsinstall' to `installincludes'. Make `includes' a -j safe shortcut for `buildincludes' + `installincludes'. `buildincludes' and `installincludes' are SUBDIR friendly, if run directly.
* CLEANFILES are too long for libc.ru2002-05-131-11/+24
|
* Ensure manpages are built with the all-man in theru2002-05-131-0/+2
| | | | | | | NOMANCOMPRESS && !MANFILTER && !MANBUILDCAT case. PR: bin/37360 Prodded by: cjc
* Major cleanup of bsd.lib.mk.ru2002-05-131-79/+71
| | | | | | | Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB.
* Added new bsd.incs.mk which handles installing of header filesru2002-05-126-40/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
* Back out rev 1.118.obrien2002-05-121-12/+5
|
* Add pointers to GCC's allowable values for -march, and restore structureobrien2002-05-111-6/+10
| | | | | of rev 1.7 until someone can sit down and think thru all the GCC 3.1 related changes.
* With GCC 3.1, we can now treat AMD Athlon and an Athlon.obrien2002-05-111-5/+5
| | | | Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
* [Ab]use LDFLAGS rather than CFLAGS.obrien2002-05-101-1/+1
| | | | BDE tells me POSIX pretends `ld' as a directly callable entity does not exist.
* Gcc 3.1 has different -Wx flags.obrien2002-05-101-2/+5
|
* Add the beginnings of Sparc64 support.obrien2002-05-101-0/+2
|
* Pass CFLAGS to {CC} when using it as an `ld' replacement.obrien2002-05-101-1/+1
|
* Pay attention to LDFLAGS when linking.obrien2002-05-091-8/+8
|
* Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB.obrien2002-05-091-5/+12
| | | | | INTERNALLIB now implies NOPROFILE, NOMAN, and don't install anything. Add a NOLIB knob.
* Added internal, non-recursive (SUBDIR) versions of the `all-man'ru2002-05-074-14/+16
| | | | | | | | and `maninstall' targets. This fixes the issue where each subdir was descended into twice during "make all", and also resurrects the standardization of `maninstall'. Urged by: bde
* Install PROG before SCRIPTS and FILES, but make sureru2002-05-071-4/+8
| | | | | | | LINKS are still processed last. This backs out part of the backout in previous revision. Install the manpages before descending into SUBDIRs.
* Install the manpages before descending into SUBDIRs.ru2002-05-071-3/+4
|
* Fixed missing quotes in the default for MKDEPCMD in the CC != cc case.bde2002-05-071-1/+1
| | | | "CC='cc -Dfoo' make depend" was very broken.
* Use -ffreestanding for kernel bits unconditionally.obrien2002-05-041-2/+0
|
* Splitting "realinstall" into parts was a (failed) part of the workru2002-04-291-5/+4
| | | | | | | | | | in progress, and should not have been committed in revision 1.114. This broke gnu/usr.bin/binutils/strip and usr.bin/strip makefiles; they were now attempting to install and strip "strip" from objdir. Pointed out by: bde This has nothing to do with PR misc/37516.
* Milestone #1 in cross-arch make releases.ru2002-04-261-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not install games and profiled libraries to the ${CHROOTDIR} with the initial installworld. Eliminate the need in the second installworld. For that, make sure _everything_ is built in the "world" environment, using the right tool chain. Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1. Split the buildworld process into stages, and skip some stages when SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5 dists). Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running makewhatis(1) at the end of installworld (used when making crypto, krb4, and krb5 dists). In release/scripts/doFS.sh, ensure that the correct boot blocks are used. Moved the creation of the "crypto" dist from release.5 to release.2. In release.3 and doMFSKERN, build kernels in the "world" environment. KERNELS now means "additional" kernels, GENERIC is always built. Ensure we build crunched binaries in the "world" environment. Obfuscate release/Makefile some more (WMAKEENV) to achieve this. Inline createBOOTMFS target. Use already built GENERIC kernel modules to augment mfsfd's /stand/modules. GC doMODULES as such. Assorted fixes: Get rid of the "afterdistribute" target by moving the single use of it from sys/Makefile to etc/Makefile's "distribute". Makefile.inc1: apparently "etc" no longer needs to be last for "distribute" to succeed. gnu/usr.bin/perl/library/Makefile.inc: do not override the "install" and "distribute" targets, do it the "canonical" way. release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and catpages appear in the right dists. Note that because Perl does not respect the MANBUILDCAT (and NOMAN), this results in a loss of /usr/share/perl/man/cat* empty directories. This will be fixed soon. Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it means "make KerberosIV"), as documented in the make.conf(5) manpage. Most of the userland makefiles did not test it for "YES" anyway. XXX Should specialized kerberized libpam versions be included into the krb4 and krb5 dists? (libpam.a would be incorrect anyway if both krb4 and krb5 dists were choosen.) Make sure "games" dist is made before "catpages", otherwise games catpages settle in the wrong dist. Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>
* GC bsd.docb.mk. It has never apparently been used.ru2002-04-242-49/+1
|
* Abuse bsd.obj.mk for defining default distribute target.ru2002-04-246-47/+10
|
* GC bsd.sgml.mk. Nothing in the src/ tree uses it, and two doc/ru2002-04-242-209/+1
| | | | | instances that still use it are unconnected from the build and have corresponding DocBook replacements.
* The install.debug and reinstall.debug targets are needed solelyru2002-04-241-2/+1
| | | | | | | | | | to build kernel and kernel modules so stop supporting them in bsd.subdir.mk and reimplement them in kern.post.mk and kmod.mk as special versions of the install and reinstall targets, and only define them if DEBUG is also defined (when debug versions are really built). Prompted by: bde
* Change the name of the 'bin' distribution to 'base'.obrien2002-04-235-6/+6
| | | | | | | This is done since it contains much more than /bin, and also gets in the way when making a combined install+fixit CD. OK'ed by: jkh
OpenPOWER on IntegriCloud