summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* Change the ownership of the symbolic link for hidden gameru2001-05-311-1/+1
| | | | | | | rather than /usr/games/dm wrapper. Spotted by: bde Reviewed by: bde
* Do not clobber COPY, it may be set differently in /etc/make.conf.ru2001-05-301-2/+0
| | | | | This is not the problem for NOMANCOMPRESS, as install(1) does not delete the originals anymore (-c is the default now).
* Fixed `objwarn' so that it doesn't issue spurious warnings,ru2001-05-201-3/+18
| | | | | | | especially now that ${.OBJDIR} is canonicalized by make(1). Urged by: bde Reviewed by: bde
* Only add -Werror if in fact we have set WARNS or WFORMAT to >0kris2001-05-191-4/+6
|
* Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mkkris2001-05-195-1/+44
| | | | | | | | | 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
* Kerberos updates for PAM.markm2001-05-141-3/+13
|
* Fixed some bitrot:bde2001-05-121-11/+10
| | | | | | | | | | | | | | - the changes that renamed libf2c to libg2c had not reached here - there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO, LIBUSB or LIBVGL. LIBUSB was used without it being defined, and LIBDEVINFO and LIBVGL should have been used. - the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD, LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage. Fixed some old bugs: - LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=". - the definition of LIBC_R was disordered. - LIBFORM was misspelled LIBFORMS (but not actually used).
* Cleaner method of making PAMable apps static (in the optional case ofmarkm2001-04-281-2/+3
| | | | wanting static apps).
* ... and do it make(1) way.ru2001-04-261-5/+5
|
* Fix the fix in rev.1.34.ru2001-04-231-1/+1
| | | | | Makes `cleandir' DTRT if MAKEOBJDIRPREFIX set and not empty, like in `buildworld' case.
* Who ever came up with the ${CFLAGS} need to be passed to lint?asmodai2001-04-191-1/+1
| | | | | | We can now run make lint on src/bin at least. I am sure Mark Murray has way more interesting fixes up his sleeve.
* Add missing -mtty-char for MANBUILDCAT.ru2001-04-181-1/+1
|
* Introduce SCRIPTS for bsd.prog.mk. See bsd.README for details.ru2001-04-072-2/+34
| | | | | | Idea stolen from NetBSD. Reviewed by: bde
* Remove the recently-depricated LIBPOSIX1Ejedgar2001-04-051-1/+0
|
* Introduce ${PROGNAME}, the name that the program will be installed as,ru2001-04-022-0/+8
| | | | | | if different from ${PROG}. (The name PROGNAME was stolen from NetBSD.) Reviewed by: bde
* - Document recent MAN[1-9] -> MAN changes.ru2001-03-281-10/+11
| | | | - Backout part of revision 1.4 (../Makefile.inc -> bsd.inc.mk change).
* Define MAN to ${PROG}.1 if no manpages were specified, but stillru2001-03-281-1/+2
| | | | | | | provide MAN1 for backwards compatibility. Third party software may still have dependancy lines of this form: ${MAN1}: foo.man
* - Removed `n' from the list of manpage sections.ru2001-03-281-5/+5
| | | | | - Only support the old syntax for manpage declarations (MAN1...MAN9) if no MAN is defined.
* Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.ru2001-03-281-1/+0
| | | | Approved by: markm
* Make it possible to build manpages for the entire source tree.ru2001-03-276-5/+23
|
* Rewrite of the CAM error recovery code.ken2001-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the major changes include: - The SCSI error handling portion of cam_periph_error() has been broken out into a number of subfunctions to better modularize the code that handles the hierarchy of SCSI errors. As a result, the code is now much easier to read. - String handling and error printing has been significantly revamped. We now use sbufs to do string formatting instead of using printfs (for the kernel) and snprintf/strncat (for userland) as before. There is a new catchall error printing routine, cam_error_print() and its string-based counterpart, cam_error_string() that allow the kernel and userland applications to pass in a CCB and have errors printed out properly, whether or not they're SCSI errors. Among other things, this helped eliminate a fair amount of duplicate code in camcontrol. We now print out more information than before, including the CAM status and SCSI status and the error recovery action taken to remedy the problem. - sbufs are now available in userland, via libsbuf. This change was necessary since most of the error printing code is shared between libcam and the kernel. - A new transfer settings interface is included in this checkin. This code is #ifdef'ed out, and is primarily intended to aid discussion with HBA driver authors on the final form the interface should take. There is example code in the ahc(4) driver that implements the HBA driver side of the new interface. The new transfer settings code won't be enabled until we're ready to switch all HBA drivers over to the new interface. src/Makefile.inc1, lib/Makefile: Add libsbuf. It must be built before libcam, since libcam uses sbuf routines. libcam/Makefile: libcam now depends on libsbuf. libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the sbuf sources from sys/kern. bsd.libnames.mk: Add LIBSBUF. camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically linked, we can't depend on the dynamic linker to pull in libsbuf. camcontrol.c: Use cam_error_print() instead of checking for CAM_SCSI_STATUS_ERROR on every failed CCB. sbuf.9: Change the prototypes for sbuf_cat() and sbuf_cpy() so that the source string is now a const char *. This is more in line wth the standard system string functions, and helps eliminate warnings when dealing with a const source buffer. Fix a typo. cam.c: Add description strings for the various CAM error status values, as well as routines to look up those strings. Add new cam_error_string() and cam_error_print() routines for userland and the kernel. cam.h: Add a new CAM flag, CAM_RETRY_SELTO. Add enumerated types for the various options available with cam_error_print() and cam_error_string(). cam_ccb.h: Add new transfer negotiation structures/types. Change inq_len in the ccb_getdev structure to be "reserved". This field has never been filled in, and will be removed when we next bump the CAM version. cam_debug.h: Fix typo. cam_periph.c: Modularize cam_periph_error(). The SCSI error handling part of cam_periph_error() is now in camperiphscsistatuserror() and camperiphscsisenseerror(). In cam_periph_lock(), increase the reference count on the periph while we wait for our lock attempt to succeed so that the periph won't go away while we're sleeping. cam_xpt.c: Add new transfer negotiation code. (ifdefed out) Add a new function, xpt_path_string(). This is a string/sbuf analog to xpt_print_path(). scsi_all.c: Revamp string handing and error printing code. We now use sbufs for much of the string formatting code. More of that code is shared between userland the kernel. scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly useful in the first place. Add a new error action, SS_REQSENSE. (Send a request sense and then retry the command.) This is useful when the controller hasn't performed autosense for some reason. Change the default actions around a bit. scsi_cd.c, scsi_da.c, scsi_pt.c, scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection timeouts shouldn't be covered by a sense flag. scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Get rid of the last vestiges of a read/write interface. libkern/bsearch.c, sys/libkern.h, conf/files: Add bsearch.c, which is needed for some of the new table lookup routines. aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if CAM_NEW_TRAN_CODE is defined. sbuf.h, subr_sbuf.c: Add the appropriate #ifdefs so sbufs can compile and run in userland. Change sbuf_printf() to use vsnprintf() instead of kvprintf(), which is only available in the kernel. Change the source string for sbuf_cpy() and sbuf_cat() to be a const char *. Add __BEGIN_DECLS and __END_DECLS around function prototypes since they're now exported to userland. kdump/mkioctls: Include stdio.h before cam.h since cam.h now includes a function with a FILE * argument. Submitted by: gibbs (mostly) Reviewed by: jdp, marcel (libsbuf makefile changes) Reviewed by: des (sbuf changes) Reviewed by: ken
* Backout botched attempt to introduce MANSECT feature; itru2001-03-261-4/+1
| | | | doesn't work in "developer" mode (single module checkout).
* Removed _MANPAGES, MANDEPEND and MANSRC.ru2001-03-262-47/+48
| | | | | | | Added MAN which will eventually replace MAN[0-9] and MAN1aout. For now, the old syntax is still supported. Reviewed by: bde
* Do not depend on ``all-man'' if -DNOMAN.ru2001-03-261-1/+4
|
* Pentium II's do not support SSE, that came in with the PIIIkris2001-03-211-1/+1
| | | | Submitted by: sf
* List libfetch.des2001-03-201-0/+1
| | | | Submitted by: bde
* If the MANSECT variable is specified, it will override the defaultru2001-03-201-1/+4
| | | | | | | | manual section. If, for example, MANSECT is set to 8, the default MAN1=${PROG}.1 feature of bsd.prog.mk becomes MAN8=${PROG}.8. Useful for games, libexec, sbin and usr.sbin subtrees. Reviewed by: bde
* Add LIBPOSIX1Ejedgar2001-03-201-0/+1
|
* Use CPUTYPE to add appropriate compiler flags to COPTFLAGS for kernelkris2001-03-121-18/+24
| | | | | | builds. This may be disabled using the NO_CPU_COPTFLAGS variable. Reviewed by: arch
* AMD K6/K6-2/Duron/Athlon CPUs support MMX too.sobomax2001-03-101-3/+3
| | | | Missed by: kris
* Add definitions and support for the AMD k6-2, Pentium MMX (i586/MMX),kris2001-02-271-1/+21
| | | | | | | | | and Pentium II, III and IV processors (p2, p3, p4), as well as 'mmx' and '3dnow' MACHINE_CPU tags as appropriate. In the near future this will be used to control various ports which have MMX/3dNow optimizations, instead of the ad-hoc methods currently used. Reviewed by: peter
* Make ``groff -man'' work again for both man(7) and mdoc(7) manpages.ru2001-02-231-1/+1
| | | | | | The new Groff release will support this feature. Requested by: peter
* 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
* Overhaul the MACHINE_CPU behaviour:kris2001-02-222-10/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Turns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won'tkris2001-02-201-0/+10
| | | | | | | set the variable until you rebuild it, and the alternative is to be stuck playing games with ``.if defined(MACHINE_CPU) && ... '' for all eternity. We now set up the reasonable default for i386 and alpha here -- given this it probably makes sense to remove the corresponding code from make(1).
* Remove bogus setting of MACHINE_CPU here. There is no need for it.kris2001-02-191-3/+1
| | | | Submitted by: bde
* Introduce support for using OpenSSL ASM optimizations. This is donekris2001-02-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | through the use of a new build directive, MACHINE_CPU, which contains a list of the CPU generations/features for which optimizations are desired. This feature will be extended to cover the ports tree in the future. Currently OpenSSL provides optimizations for i386, i586 and i686-class CPUs. Currently it has not been tested on an i386 or i486. Teach make(1) to provide sensible defaults for MACHINE_CPU if it is not defined (namely, the lowest common denominator CPU we support for each architecture). Currently this is i386 for the i386 architecture and ev4 for the alpha. sys.mk also sets the variable as a last resort for consistency with MACHINE_ARCH and bootstrapping from very old versions of make. Benchmarks show a significant speed increase even in the i386 case, with additional improvements for i586 and i686 systems. For maximum performance define MACHINE_CPU=i686 i586 i386 in /etc/make.conf. Based on a patch submitted by: Mike Silbersack <silby@silby.com> Reviewed by: current
* Zap LIBTCL, it's been superfluous for several years.kris2001-02-181-1/+0
|
* Add $FreeBSD$peter2000-12-292-0/+4
|
* Do not check for existence of ${_dir}/kern/ , because for modules that setjasone2000-12-081-2/+2
| | | | | | | | | | | | | | | .PATH to ${.CURDIR}/[...]/kern , the "exists" expression will fail for the form exists(${.CURDIR}/[...]/kern/). This appears to be happening because make is searching for the argument to "exists" by using .PATH rather than a relative search, because .PATH and the argument match at the beginning. Additionally, make appears to consider a path that starts with ${.CURDIR} as relative, even though it expands to an absolute path. The reason that most people aren't seeing this problem is that the absolute paths of /usr/src/sys and /sys are also searched, so as long as the kernel source can be found in at least one of those places, no problems surface. This problem was inadvertently introduced on 1 December 2000, with the addition of the sysvipc modules.
* Install the stock (as supplied by groff(1) distribution) tmac.anru2000-12-061-1/+1
| | | | | and tmac.andoc files. The man(1), catman(1) and bsd.man.mk have been modified to call groff(1) with -mandoc argument.
* groff does not use MANDEPEND anymore.ru2000-12-051-1/+1
|
* Add ${LIBC_R}brian2000-11-261-0/+1
|
* Use test -z rather than -n.obrien2000-11-011-1/+1
| | | | Submitted by: bde
* Build the ISC library as libisc. This library comes as part of thearchie2000-10-241-0/+1
| | | | | | | | | bind distribution, but until now was not being built as a separate entity. For documentation, see these man pages: assertions(3), eventlib(3), heap(3), logging(3), memcluster(3), tree(3). Reviewed by: jdp
* Add section for building ia64 kernels.dfr2000-10-161-0/+8
|
* Remove LIBRSAGLUE, add LIBSSLgshapiro2000-10-101-1/+1
| | | | Reviewed by: kris
* Change "building the standard ${LIB} library" to "building the staticpeter2000-10-021-1/+1
| | | | | | | ${LIB} library". "standard" tends to imply the one that is normally used... but by default it is not the case - the .so would be the "standard" library. Therefore, change this to 'static'. Another option might be "conventional ${LIB} library".
* Replace ${LIBMYTINFO} with warningache2000-09-161-2/+2
|
* The kernel is now known as `kernel.ko' and it and its matching modulesobrien2000-09-051-2/+2
| | | | live in ``/boot/kernel/''.
OpenPOWER on IntegriCloud