summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* Support the "install.debug" and "reinstall.debug" targets for kernel modules.des2001-10-271-1/+2
| | | | | | | | | Small tweaks to kldxref may be necessary to avoid the surprising (but harm- less) behaviour of 'kldload foo' loading foo.ko.debug instead of foo.ko if it is present in the kernel directory. Approved by: a week of silence on -arch MFC after: 2 weeks
* Fix cross-building, etc:ru2001-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. To cross-build, one now needs to set TARGET_ARCH, and not the MACHINE_ARCH. MACHINE_ARCH should never be changed manually! 2. Initialize DESTDIR= explicitly for bootstrap-tools, build-tools, and cross-tools stages. This fixes broken header and library dependencies problem. We build them in the host environment, and obviously want them to depend on host headers and libraries. The problem with broken header dependencies for bootstrap-tools and cross-tools was already partially solved (see BOOTSTRAPPING tests in bsd.prog.mk and bsd.lib.mk), but it was still there for build-tools if the user ran "make world DESTDIR=/foo". Also, for all of these stages, the library dependencies were broken because of how bsd.libnames.mk define DPADD members. We still provide a glue to install bootstrap- and cross-tools under the ${WORLDTMP}. Removed PATH overrides for bootstrap-, build-, and cross-tools stages. There is just no reason why we would need to override it, and the hacks to clean up the ${WORLDTMP} in the -DNOCLEAN case are no longer needed with fixes from this step. That is, we now never use ${WORLDTMP} headers and libraries, and we don't use any ${WORLDTMP} installed binaries during these stages. Again, these stages depend solely on the host environment, including compiler, headers, and libraries. 3. Moved "miniperl" back from cross-tools (it has nothing to do with a cross-compiler) to build-tools where it belongs. The change from step 1 let to do this. Also, to make this work, build-tools targets of "cc_tools" and "miniperl" were modified to call "depend". Here follow the detailed explanations. There are two categories of build tools, for now. In the first category there are "cc_tools" and "miniperl". They occupy the whole (sub)directory, and nothing needs to be done in this subdirectory later during the "all" stage. They are also constructed using system makefiles. We must build the .depend early in the build-tools stage because: 1) They use (and depend on) the host environment. 2) If we don't do this in build-tools, the "depend" stage of buildworld will do this for us; wrong library and header dependencies will be recorded (DESTDIR=${WORLDTMP}) and, what's worse, the "all" stage may then clobber the build-architecture format tools (that we built in the build-tools stage) with the target-architecture format ones, breaking cross build. In the second category there are all other build-tools. They share their directory with the "main" module that needs them in the "all" stage, and they don't show up themselves in the .depend file. The portion of this fix was already committed in gnu/usr.bin/cc/cc_tools/Makefile,v 1.52. 4. "libperl" is no longer a build tool, and "miniperl" is the stand-alone application. I had to make this change because build-tools and "all" stages share the same object directory. Without this change, if we cross compile, libperl.a is first built for the build architecture during the build-tools stage (for the purposes of immediate linkage with "miniperl"). Later on, the "all" stage sees this library as up-to-date, and doesn't rebuild it. The effect is that the wrong format static libperl library is installed with installworld. 5. Fixed "includes" to install secure/lib/libtelnet headers if required. Reviewed by: bde
* When bootstrapping (build-tools and cross-tools), avoidru2001-09-212-2/+2
| | | | | | | including the ${WORLDTMP}/usr/include headers that may not match the installed host libraries. This should fix the 20010919 UPDATING entry.
* This will have to be revised, but allow putting 'makeoptions GCC3=true'peter2001-09-101-0/+15
| | | | | in a kernel config file. This should minimize the tearing-out-hair process while updating the kernel for gcc-3 compliance.
* There is a better way to suppress groff(1) output.ru2001-09-051-2/+2
| | | | Submitted by: okazaki
* Implement the `manlint' target, for minimal validity checking ofru2001-09-052-2/+19
| | | | | | the manual pages. Mostly useful with mdoc(7) formatted manuals. Requested by: murray
* Final way: Don't include /etc/defaults/make.conf at all. It wasn'talex2001-08-311-4/+0
| | | | | | | | supposed to be edited by the user and didn't define important things, thus we can just skip it (that's where it differs from the make.conf.local change). Submitted by: ru
* Don't .error, if /etc/defaults/make.conf exists. This breaks -CURRENTalex2001-08-311-1/+0
| | | | | | buildworlds on a -STABLE machine. Reminded by: ru
* Move /etc/defaults/make.conf to /usr/share/examples/etc/make.conf asalex2001-08-301-1/+2
| | | | | | | | | | | | | | discussed on the arch@ mailinglist (after repo-copy). sys.mk will .error if it finds /etc/defaults/make.conf but include it anyways (this is the same behaviour as with the make.conf.local removal). /usr/share/examples/etc/make.conf has BDEFLAGS commented out now, since it's only an example file. Adjust all textes that talk about make.conf or defaults/make.conf to match the new situation.
* Fixed world breakage in ftpd, rshd, login, su, telnetd and telnet. LIBPAMbde2001-08-291-3/+3
| | | | | | | | and MINUSLPAM must be kept in sync with the libraries linked to by libpam to support static linkage. Moved libmd to the end of LIBPAM and MINUSLPAM. It was before libopie, but libopie references it, so static linkage only worked accidentally.
* Removed some garbage (LIBGMP, LIBSKEY). Using LIBSKEY in LIBPAM shouldbde2001-08-291-5/+2
| | | | | | | | have been fatal since it gave a dependency on a nonexistent file, but it worked because of an undocumented bugfeature in make(1): missing source files named *.a are silently assumed to be up to date. Fixed some style bugs (formatting).
* Zap LIBSSkris2001-08-191-1/+0
|
* revert previous accidental commitassar2001-07-221-1/+5
|
* get rid of some printf and pointer type warningsassar2001-07-221-5/+1
|
* Always preprocess manpages with tbl(1).ru2001-07-121-1/+1
|
* Add LIBBZ2.obrien2001-07-091-0/+1
|
* Add the ".FreeBSD" symbol so we can do things like ".if define(.FreeBSD)"obrien2001-06-161-0/+1
| | | | in Makefile's shared with NetBSD.
* Style nits:ru2001-06-141-2/+2
| | | | | | | GBINDIR -> ORIGBINDIR GBINGRP -> ORIGBINGRP Submitted by: bde
* Games ownership cleanup.ru2001-06-132-4/+2
| | | | Urged by: bde
* Clean up the PAM lib lists. Particularly relevant to the KRB5 case.markm2001-06-071-6/+6
|
* Add the single suffix rules for FORTRAN.obrien2001-06-061-0/+4
|
* Add the single suffix rules for C++.obrien2001-06-061-3/+6
| | | | | | | | (While there, I also moved the single suffix C rules beside the double suffix ones so they are easier to find) PR: 24438 Submitted by: Georg-W. Koltermann <gwk@sgi.com>
* 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
|
OpenPOWER on IntegriCloud