summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* TARGET_CPUTYPE should exist solely in Makefile.inc1, similar toru2002-08-021-7/+1
| | | | | | | | | | | | | | | | TARGET_ARCH and TARGET. This is problematic when one has the = (unconditional) type of assigment for CPUTYPE in /etc/make.conf. (This would override what was set on the command line to "make buildworld".) Add a (horrible) kludge to Makefile.inc1 to check the type of assignment for CPUTYPE (only for those who attempts to set it to a different value). Fix an example make.conf. Fix the kernel's build-tools target (aicasm only at the moment) to catch up with bsd.cpu.mk,v 1.15 (BOOTSTRAPPING replaced with NO_CPU_CFLAGS in Makefile.inc1's BMAKE). Reviewed by: jhb
* Add a libnames entry for libugidfw.rwatson2002-08-021-0/+1
| | | | | | Add a DPADD line for ${LIBUGIDFW} for ugidfw. Submitted by: ru
* - Define NO_CPU_CFLAGS during BMAKE and TMAKE (and thus XMAKE) so thatjhb2002-07-311-5/+7
| | | | | | | | | | | bsd.cpu.mk doesn't have to worry about compilers other than the current version. - Allow TARGET_CPUTYPE to override CPUTYPE in bsd.cpu.mk. - Treat an empty CPUTYPE the same as an undefined CPUTYPE. - For buildworld, buildkernel, etc., define TARGET_CPUTYPE to CPUTYPE for native builds and define it to be empty for cross-builds. TARGET_CPUTYPE is only defined if it is not already defined via the commandline or environment.
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-297-22/+14
| | | | | | for a long time now. Approved by: bde
* - Fixup whitespace after previous commit.jhb2002-07-271-12/+10
| | | | | | - To minimize whitespace changes, remove a test that didn't define _CPUCFLAGS if both NO_CPU_CFLAGS and NO_CPU_COPTFLAGS were defined since it is redundant (we don't use _CPUCFLAGS if those are defined).
* If there is not a CPUTYPE defined by default, then allow for _CPUCFLAGSjhb2002-07-271-6/+14
| | | | | | | | | | | | | | to tune for more advanced processors while still supporting the minimum processor in an architecture. We can do this with the '-mtune=' option to gcc for alpha, sparc64, and powerpc and with the mis-named '-mcpu=' option for i386. This defaults to tuning i386 builds for i686 machines though not using any instructions that aren't found on an 80386. For alpha it defaults to tuning for an EV5. Approved by: peter Peril sensitive sunglasses borrowed from: peter
* 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.
OpenPOWER on IntegriCloud