summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
Commit message (Collapse)AuthorAgeFilesLines
* Update for Perl 5.6.1markm2002-03-161-1/+1
|
* Allow the use of NO_PERL as well as NOPERL. The latter is going tomarkm2002-03-161-2/+3
| | | | be removed.
* 1-true-AWK has a build-tool target.obrien2002-03-061-1/+1
|
* Obviate the need to set the COMPILER_PATH and LIBRARY_PATH in Makefile.inc1ru2002-02-211-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to pick up the correct cross-tools (the compiler executables and binutils) and special linker files (crt*.o). This is now controlled by a single knob, TOOLS_PREFIX, when building cross-tools. Fixed regression in Makefile.inc1,v 1.203 (-nostdinc). This clobbered target architecture's CFLAGS with building host's CPUTYPE setting in /etc/make.conf, and had a nice but nasty side effect of exposing some (normally hidden) bugs in system headers. (Attempt to move the "-nostdinc -I..." part of CFLAGS into the new CINCLUDES (modeled after a similar CXXINCLUDES) eventually failed because hard-coding ${WORLDTMP}/usr/include to be the first in the include list does not always work, e.g. lib/libbind.) Compensate the -nostdinc removal by making cpp(1) built in the cross-tools stage to not look for <> header files in the building host's /usr/include (already committed as gnu/usr.bin/cc/cc_tools/freebsd-native.h, revisions 1.10-1.12, STANDARD_INCLUDE_DIR). : $ /usr/obj/usr/src/i386/usr/bin/cpp -v /dev/null : : Before: : : #include <...> search starts here: : /usr/obj/usr/src/i386/usr/include : /usr/include : End of search list. : : After: : : #include <...> search starts here: : /usr/obj/usr/src/i386/usr/include : /usr/obj/usr/src/i386/usr/include (Disabling the use of GCC_INCLUDE_DIR in the FREEBSD_NATIVE case would fix the duplicate above.) Get rid of the (now unneeded) -I${DESTDIR}/usr/include magic in bsd.prog.mk and bsd.lib.mk. Finish the removal of LDDESTDIR in bsd.lib.mk,v 1.55 -- we no longer have users of it. The required changes to gcc were already committed as contrib/gcc.295/gcc.c, revisions 1.23 and 1.24. Basically, this allows for the changes above plus makes gcc(1) persistent about path configuration, whether it's configured as a native or a cross compiler: : $ /usr/obj/usr/src/i386/usr/bin/cc -print-search-dirs : install: /usr/obj/usr/src/i386/usr/libexec/(null) : programs: /usr/obj/usr/src/i386/usr/libexec/elf/:/usr/obj/usr/src/i386/usr/libexec/ : libraries: /usr/obj/usr/src/i386/usr/lib/ : : $ /usr/obj/alpha/usr/src/i386/usr/bin/cc -print-search-dirs : install: /usr/obj/alpha/usr/src/i386/usr/libexec/(null) : programs: /usr/obj/alpha/usr/src/i386/usr/libexec/elf/:/usr/obj/alpha/usr/src/i386/usr/libexec/ : libraries: /usr/obj/alpha/usr/src/i386/usr/lib/ Reviewed by: bde, obrien
* The previous fix for broken -DMAKE_KERBEROS5 world was incomplete.ru2002-02-141-2/+2
| | | | | | | | | | Finish it by adding kerberos5/lib/libvers to the build-tools list. (I didn't notice it before because I tested my fix in a -DNOCLEAN environment, and static libc.a was already in ${WORLDTMP}/usr/lib, and libvers's make-print-version build tool used it for linking.) Spotted by: John Indra <maverick@office.naver.co.id>
* Fixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/librokenru2002-02-111-1/+2
| | | | | | | | | | | | | | | (make-roken is a build tool). This bug was hiding itself after a just fixed bug in cross-linker (binutuils/ld/Makefile,v 1.20). The bug was fatal for cross builds; for example, an alpha binary (make-roken) was attempted to be run on i386. Added make-roken to the list of build-tools in libasn1. It only worked because another build tool needs make-roken implicitly: (build-tools: asn1_compile: print_version.o: roken.h: make-roken). Spotted by: nectar
* Now that cross-tools ld(1) has been fixed to look for dynamicru2002-02-081-4/+8
| | | | | | | | | | dependencies in the correct place, record the fact that -lssh depends on -lcrypto and -lz. Removed false dependencies on -lz (except ssh(1) and sshd(8)). Removed false dependencies on -lcrypto and -lutil for scp(1). Reviewed by: markm
* FreeBSD 4.1 bootstrapping aid (setproctitle(3) is in -lutil).ru2002-02-081-1/+1
| | | | | | | | | | | This backs out (sort of) delta 1.18 to perl/miniperl/Makefile. Update to the ld(1) comment by peter in this revision: ld(1) built as part of the cross-tools stage of buildworld has been fixed to look for dynamic dependencies in the right place, ${WORLDTMP}/usr/lib, effective binutils/ld/Makefile,v 1.20. Approved by: markm
* gnu/libexec has gone so remove it from the most targets.paul2001-12-281-2/+0
|
* Specify the full path to mktempjedgar2001-12-231-1/+1
|
* Use a more secure method of creating the temporaryjedgar2001-12-211-3/+1
| | | | install directory.
* Move NO_WERROR from CROSSENV to BMAKE. In CROSSENV it disables it forimp2001-12-131-3/+3
| | | | | | the entire build. We only want it for the bootstrap process. Submitted by: ru
* Add NO_WERROR to the cross building environment so that we do not bail onimp2001-12-131-2/+3
| | | | | | | | warnings generated by earlier versions of the compilers when bootstrapping. Also a minor formatting nit in the tools list. Reviewed by: markm
* Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.phantom2001-12-111-12/+4
| | | | | | Also replace internal make variable _libm with hardcoded path to lib/msun Reviewed by: bde
* Just to be pedantic and more aesthetically pleasing, move the secure/jhb2001-12-061-3/+3
| | | | | top-level subdirectory prior to share/ so that the top-level directories are processed in alphabetical order.
* Add the CVS knob so it may be overridden (or have options added).obrien2001-11-191-1/+2
| | | | Submitted by: Andrea Campi <andrea@webcom.it>
* Don't cleandir also if MODULES_WITH_WORLD.matusita2001-11-161-1/+1
| | | | MFC after: 3 days
* Typo fix (my test version doesn't have this...)matusita2001-11-151-1/+1
|
* Run "make cleandir" if NO_MODULES are set, or there is no sys/modulesmatusita2001-11-151-0/+5
| | | | | | | directory. Previous commit breaks buildkernel if NO_MODULES was set. Sorry... Noticed by: mike
* "make cleandir" before building a kernel and modules.matusita2001-11-141-1/+1
| | | | | | | This will hopefully fix the recent 'I cannot compile linux module with buildworld' problem. MFC will come shortly. Submitted by: imura@ryu16.org
* Set full-path of cvsup.matusita2001-11-131-1/+1
| | | | | | | | | | | | | | | In src/Makefile rev 1.232, environment variable PATH is set explicitly to /sbin:/bin:/usr/sbin:/usr/bin. As a result, binaries located on non-standard path cannot be executed without full-path (it's the change of this revision). However, cvsup is not in our base system -- you lose if you try to "make update" without setting SUP in make.conf or command line argument. I think it is safe to assume that cvsup is located at /usr/local/bin, and it would help other people who first try to do "make update". PR: 31932 MFC after: 1 day
* Bring Gawk back. There just isn't any other POSIX compliant AWK out there.obrien2001-11-021-1/+1
| | | | The biggest thing missing from Bell-Labs AWK is the character class regexes.
* Add 'awk' to the build-tools, so that the small utility used to buildobrien2001-11-011-2/+2
| | | | one of the source files is made for the host, not target.
* Fix cross-building further.ru2001-10-251-13/+15
| | | | | | | | | | | | | | | | | | | | | | Introduce ${TARGET} defaulting to ${MACHINE} which should be set to whatever your target ${MACHINE} is, and use that with world-related stages. That is, to build pc98 on alpha, one now needs to set both TARGET_ARCH=i386 and TARGET=pc98. The scope of ${TARGET} is limited to Makefile.inc1 and cross-tools. In particular, this change was tested to fix: 1. Cross building of "alpha" on i386. The breakage was introduced by rev. 1.10 to sbin/i386/Makefile (missing <machine/cronyx.h>). 2. Descending into machine-specific subdirs for a different arch. Previously, sbin/i386 and usr.sbin/boot0cfg were descended into when cross-building "alpha" or pc98 on i386. 3. Fixes pc98 cross-building which was horribly broken, caused by not setting MACHINE correctly (most ${MACHINE} == pc98 checking Makefiles put -DPC98 to CFLAGS).
* Fix cross-building, etc:ru2001-09-291-55/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Removed touch(1) from the list of installworld tools thatru2001-09-251-1/+1
| | | | | | was added in previous revision for no apparent reason. Submitted by: bde
* Add which(1) the stuff that we need early on. The perl build needs itmarkm2001-09-201-1/+1
| | | | to find miniperl.
* Run the `bootstrap-tools' and `cross-tools' stages with BOOTSTRAPPINGru2001-09-171-5/+5
| | | | | flag defined. This replaces the WORLD flag that got lost in revision 1.96.
* Fixed world breakage. mkdir was not copied to ${INSTALLTMP}, but it isbde2001-08-291-1/+1
| | | | used by src/include/Makefile in the SHARED=symlinks case.
* Change the name of KRNLDEFDIR to KERNCONFDIR.paul2001-08-271-3/+4
| | | | | | | Suggested by Bruce, since the latter is more acceptable for a variable that is externally visible. Fix a style nit with a long line.
* Add a variable KRNLDEFDIR that specifies where to find the kernelpaul2001-08-261-2/+3
| | | | | | config files. It defaults to KRNLCONFDIR.
* More libss removal.markm2001-08-261-1/+1
|
* Adjust dependancies; now that a PAM module (pam_unix) can changemarkm2001-08-261-3/+3
| | | | NIS passwords, libpam needs rpc dependancies.
* Say goodbye to libss, which somehow managed to crouch hidden in the treekris2001-08-191-2/+0
| | | | for long after it was used.
* Use a build-tool to create the .mgc files.obrien2001-08-171-1/+2
| | | | | | Submitted by: ru (partial) Obtained from: NetBSD (basic idea) Reviewed by: bde, ru
* Add some features to libdevstat, and overhaul the interface a bit:tmm2001-08-041-1/+2
| | | | | | | | | | | | | | | | | | | | | 1.) prefix all functions in the library with devstat_ (compatability functions are available for all functions that were chaned in an incompatible way, but are deprecated). 2.) Add a pointer to a kvm_t as the first argument to functions that used to get their information via sysctl; they behave the same as before when NULL is passed as this argument, otherwise, the information is obtained via libkvm using the supplied handle. 3.) Add a new function, devstat_compute_statistics(), that is intended to replace the old compute_stats() function. It offers more statistics data, and has a more flexible interface. libdevstat does now require libkvm; a library depedency is added, so that libkvm only needs to be explicitely specified for statically linked programs. The library major version number is bumped. Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>, ken (3) Reviewed by: ken
* Enable the new libmp in the build, and disable libgmp and itsdd2001-07-291-2/+1
| | | | henchmen.
* Axe S/Key. OPIE is the true and faithful successor.markm2001-07-091-4/+2
|
* Part 2 of gensetdefs de-orbit burn. linker sets are now self containedpeter2001-06-141-1/+1
| | | | for ELF, see src/sys/linker_set.h log.
* WARNS= is fully functional again.ru2001-06-131-1/+1
|
* - Restore -nostdinc that got lost in rev.1.105; we don'tru2001-06-111-2/+3
| | | | | | | | | | | | | | | | want host headers during `buildworld'. - During `buildworld', install headers in a "copy" mode until we decide what to do with the (currently broken) SHARED=symlinks. - Temporarily run `buildworld' with -DNO_WERROR, which effectively disabled the -Werror bit of recently added WARNS=X feature. This is required because adding the -nostdinc bit back revealed bugs in some header files that were hiding after not using -nostdinc. It is unclear currently how exactly (and why) -nostdinc affects gcc(1) warnings.
* Bootstrap install(1).ru2001-05-281-3/+3
|
* Add kbdcontrol(1) to bootstrap-tools.ru2001-05-141-0/+1
| | | | This fixes the upgrade path breakage in usr.sbin/sysinstall.
* Remove xlint from build-tools. This needs to be fixed in a different way.asmodai2001-04-261-2/+1
|
* Add usr.bin/xlint to build-tools.asmodai2001-04-241-1/+2
|
* ${MAKEOBJDIRPREFIX}/usr/src/i386/usr/include/isc was being created as a plaingshapiro2001-04-241-1/+1
| | | | | | file during the bootstrapping process of a buildworld and contained the last isc include file to be installed. It was meant to be a directory for the isc include files.
* Add groff to bootstrap-tools.ru2001-04-181-4/+23
|
* Rewrite of the CAM error recovery code.ken2001-03-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add missing NOSECURE check for `includes' target.ru2001-03-261-1/+1
| | | | Reviewed by: markm
* Enhancement to 1.99 -> 1.100.ru2001-03-221-2/+1
| | | | Avoid EPERM from ln(1) in a different (proper) way.
OpenPOWER on IntegriCloud