summaryrefslogtreecommitdiffstats
path: root/share/mk/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a new make variable COMPILER_TYPE that specifies whatbrooks2012-09-131-1/+2
| | | | | | | | | | | | | | | | | | | | type of compiler is being used (currently clang or gcc). COMPILER_TYPE is set in the new bsd.compiler.mk file based on the value of the CC variable or, should it prove informative, by running ${CC} --version and examining the output. To avoid negative performance impacts in the default case and correct value for COMPILER_TYPE type is determined and passed in the environment of submake instances while building world. Replace adhoc attempts at determining the compiler type by examining CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE. This eliminates bootstrapping complications when first setting WITH_CLANG_IS_CC. Sponsored by: DARPA, AFRL Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon (with some modifications post review) MFC after: 2 weeks
* .. and then notice that the list of mk files is ordered, and update to suit.adrian2010-11-161-2/+2
|
* Add in forgotten install rule.adrian2010-11-161-1/+1
|
* Add bsd.dtrace.mk. This allows userland programs and libraries torpaulo2010-09-101-1/+2
| | | | | | | | | define USDT probes on a provider.d file and then use this new make infrastructure to build the corresponding header file and object file. This will only take effect when the user defines WITH_DTRACE when building. Sponsored by: The FreeBSD Foundation
* Also install the new bsd.arch.inc.mk filed. Missed in r204020.bz2010-07-061-0/+1
| | | | Reviewed by: imp
* Break long linepav2007-06-011-2/+3
| | | | Submitted by: ru
* Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handlepav2007-06-011-1/+1
| | | | | | | | | | OPTIONS resolving. This will allow us to load bsd.port.mk in port Makefiles in three steps (options, pre, post), allowing us to manipulate USE_* flags conditionally on OPTIONS values. With hat: portmgr Reviewed by: ru MFC after: 1 week
* Add entry for bsd.symver.mk.kan2007-04-031-1/+1
| | | | Pointed out by: ru
* Add version_gen.awk to the installed files.deischen2006-03-161-1/+1
|
* Add a .mk file for building modules for the SNMP daemon. This may beharti2005-11-101-1/+1
| | | | | | | | use in-tree as well as for 3rd party modules. This file is more or less what was in usr.sbin/bsnmpd/modules/Makefile.inc with some modifications and omissions. Usage examples can be found under usr.sbin/bsnmpd/modules/*. Idea by: phk
* Add endianness support to cap_mkdb(1), useful for cross builds.ru2005-02-221-2/+2
|
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-211-2/+2
| | | | OK'ed by: core
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* GC port.mkversion.des2004-02-051-3/+0
|
* Fixed sys/boot/pc98/boot2/Makefile to use kern.mk andru2003-03-021-1/+1
| | | | | | get rid of bsd.kern.mk completely. OK'ed by: bde
* Sort FILES.ru2002-07-171-1/+1
|
* Handle installation of hard and symbolic links via a seperate .mk file.ru2002-07-021-1/+2
|
* Reimplement FILES support using bsd.files.mk with theru2002-06-031-1/+2
| | | | | | | | 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).
* Added new bsd.incs.mk which handles installing of header filesru2002-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* GC bsd.docb.mk. It has never apparently been used.ru2002-04-241-1/+1
|
* GC bsd.sgml.mk. Nothing in the src/ tree uses it, and two doc/ru2002-04-241-1/+1
| | | | | instances that still use it are unconnected from the build and have corresponding DocBook replacements.
* Install bsd.init.mk.ru2002-04-181-1/+2
| | | | Submitted by: "Peter S. Housel" <housel@acm.org>
* Add basic infrastructure for building and installing Message Catalogs (NLS ↵phantom2002-03-041-1/+1
| | | | | | | Catalogs) Idea obtained from: NetBSD Reviewed by: silence at -hackers
* FILES support for bsd.prog.mk. See bsd.README for details.ru2001-12-171-2/+1
| | | | Stolen from: NetBSD
* Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mkkris2001-05-191-1/+1
| | | | | | | | | to avoid polluting sys.mk. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. The idea is that WARNS can be set in Makefile.inc or in individual Makefiles as they become clean, to prevent the introduction of new warnings in the code. -Werror is added by default
* Overhaul the MACHINE_CPU behaviour:kris2001-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rip out MACHINE_CPU stuff from sys.mk and include a new <bsd.cpu.mk> after we pull in /etc/make.conf. We need to do it afterwards so we can react to the user setting of the: * CPUTYPE variable, which contains the CPU type which the user wants to optimize for. For example, if you want your binaries to only run on an i686-class machine (or higher), set this to i686. If you want to support running binaries on a variety of CPU generations, set this to the lowest common denominator. Supported values are listed in make.conf. * bsd.cpu.mk does the expansion of CPUTYPE into MACHINE_CPU using the (hopefully) correct unordered list of CPU types which should be used on that CPU. For example, an AMD k6 CPU wants any of the following: k6 k5 i586 i486 i386 This is still an unordered list so the client makefile logic is simple - client makefiles need to test for the various elements of the set in decreasing order of priority using ${MACHINE_CPU:M<foo>}, as before. The various MACHINE_CPU lists are believed to be correct, but should be checked. * If NO_CPU_CFLAGS is not defined, add relevant gcc compiler optimization settings by default (e.g. -karch=k6 for CPUTYPE=k6, etc). Release builders and developers of third-party software need to make sure not to enable CPU-specific optimization when generating code intended to be portable. We probably need to move to an /etc/world.conf to allow the optimization stuff to be applied separately to world/kernel and external compilations, but it's not any worse a problem than it was before. * Add coverage for the ia64/itanium MACHINE_ARCH/CPUTYPE. * Add CPUTYPE support for all of the CPU types supported by FreeBSD and gcc (only i386, alpha and ia64 first, since those are the minimally-working ports. Other architecture porters, please feel free to add the relevant gunk for your platform). Reviewed by: jhb, obrien
* Add bsd.kmod.mk back.peter2000-05-271-1/+1
|
* Oops. I forgot to remove bsd.kmod.mk from the list of files installed. :-(peter2000-05-041-1/+1
| | | | Submitted by: Scott Flatman <sf@aracnet.com>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Create /var/db/port.mkversion rather than /var/db/pkg/.mkversion to be inobrien1999-04-151-2/+2
| | | | | | sync with bsd.port.mk rev 1.309. Submitted by: make world
* Add ${DESTDIR} to installation path. Move target to under beforeinstall:.asami1999-03-311-4/+2
| | | | Submitted by: bde
* I'm sorry, this was already fixed in etc/mtree/BSD.var.dist.sada1999-03-311-2/+1
| | | | Submitted by: asami@FreeBSD.ORG
* Sometimes we have to make `/var/db/pkg' directory before we createsada1999-03-311-1/+2
| | | | | `.mkversion' :) Submitted by: YAMAMOTO Shigeru <shigeru@bremen.or.jp>
* Create /var/db/pkg/.mkversion file with datestamp.asami1999-03-291-1/+4
|
* Make bsd.port.mk includable in two phases. bsd.port.pre.mk defines onlyasami1998-11-111-2/+3
| | | | | | | | | | | a few variables that could be used in the port Makefile for ".if exists()" tests. bsd.port.post.mk defines the rest. Note: if you define USE_X_PREFIX or USE_IMAKE, put it before including bsd.port.pre.mk. These are the only two variables used in the first part. In reality, bsd.port.pre.mk and bsd.port.post.mk just include bsd.port.mk with special variables to turn part of it off.
* Fixed disordering and misformatting in previous commit.bde1998-09-091-8/+4
| | | | | | | Don't override correct default targets. Don't use afterinstall for installing things; it is for fixups after installing things.
* bsd.docb.mk handles installing SGML/docbook documents.wosch1998-08-291-1/+3
|
* Complete back-out of the bsd.locale.mk change.jkh1998-05-201-3/+3
| | | | OK'd by: asami
* Add bsd.locale.mk to the list of files. Whether bsd.locale.mk ismph1998-05-201-4/+4
| | | | | | | | | | | the right solution or not, bsd.port.mk is broken unless bsd.locale.mk is installed. Note that if LOCALE is not defined, port-building explodes: "/usr/share/mk/bsd.locale.mk", line 135: if-less elif "/usr/share/mk/bsd.locale.mk", line 135: Need an operator (For each .if testing LOCALE)
* Undo rev 1.11, the cd is null since NOOBJ is set.wosch1998-01-031-2/+2
| | | | 444 -> ${SHAREMODE}
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Centralized the definition of CWARNFLAGS into bsd.kern.mk.bde1996-10-081-4/+4
|
* Moved definitions of library names from bsd.prog.mk to a new centralbde1996-09-051-2/+2
| | | | | file bsd.libnames.mk and include this file where necessary. This fixes null library names in ${DPADD}'s in library makefiles.
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-241-2/+2
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* install bsd.obj.mkwosch1996-04-121-2/+2
| | | | Submitted by: Asami
* Add bsd.sgml.mkjfieber1995-09-081-2/+2
|
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-2/+2
| | | | specified in the top level Makefiles.
* Change install: to afterinstall: to be more consistent.rgrimes1995-05-091-2/+2
|
* Install bsd.info.mk.bde1995-01-031-4/+6
|
OpenPOWER on IntegriCloud