1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Tony Finch 3f220dd51a Upgrade unifdef:
* It now knows about the existence of #elif which would have
    caused it to produce incorrect results in some situations.

  * It can now process #if and #elif lines according to the
    values of symbols that are specified on the command line.
    The expression parser is only a simple subset of what C
    allows but it should be sufficient for most real-world
    code (it can cope with everything it finds in xterm).

  * It has an option for printing all of the symbols that might
    control #if processing. The unifdefall script uses this
    option along with cpp -dM to strip all #ifs from a file.

  * It has much larger static limits.

  * It handles nested #ifs much more completely.

There have also been many style improvements: KNF; ANSI function
definitions; all global stuff moved to the top of the file; use
stdbool instead of h0h0bool; const-correctness; err(3) instead
of fprintf(stderr, ...); enum instead of #define; commentary.

I used NetBSD's unifdef as the basis of this since it has received
the most attention over the years.

PR:		37454
Reviewed by:	markm, dwmalone
Approved by:	dwmalone (mentor)
MFC after:	3 weeks
2002-05-15 16:30:28 +00:00
bin Make 'user' and 'group' const as to not discard the qualifier from the 2002-05-15 09:49:59 +00:00
contrib Merge c-common.c rev 1.10 into GCC 3.1 2002-05-14 01:53:53 +00:00
crypto Remove _PATH_CP now that it is defined in paths.h 2002-05-12 01:52:11 +00:00
etc It is dangerous to use globbing like so in startup scripts: 2002-05-08 14:47:44 +00:00
games Correctly attribute a Douglas Adams quote, and remove a duplicate of 2002-05-15 04:35:27 +00:00
gnu Make sure to not yet build the GNU C++, but still allow 2002-05-15 16:29:45 +00:00
include Rename includes' to buildincludes'. 2002-05-15 16:19:54 +00:00
kerberos5 Make this -j safe. 2002-05-14 15:27:13 +00:00
kerberosIV This code is no longer WARNS level 2 OK. 2002-05-15 06:32:29 +00:00
lib `all-man' now creates manpages in the -DNOMANCOMPRESS case too. 2002-05-15 12:59:54 +00:00
libexec Understand the new NGM_PPPOE_SESSIONID message and set SESSIONID 2002-05-14 12:33:40 +00:00
release Fix description of uuencode(1)/uudecode(1) base64 abilities. 2002-05-15 03:43:44 +00:00
sbin Use fgetln to remove the static limit on the length of lines in 2002-05-14 23:24:28 +00:00
secure for OpenSSL 0.9.5a 2002-05-15 09:17:27 +00:00
share Rename includes' to buildincludes'. 2002-05-15 16:19:54 +00:00
sys Remove an extraneous ) 2002-05-15 12:25:11 +00:00
tools Add a regression test for bin/5297, regarding sysv substitution with a nil 2002-05-05 19:02:30 +00:00
usr.bin Upgrade unifdef: 2002-05-15 16:30:28 +00:00
usr.sbin Explicitly cast NCONTINENTS to int to silence an overflow warning. 2002-05-15 09:39:31 +00:00
COPYRIGHT
MAINTAINERS Document my willingness in maintaining share/mk infrastructure. 2002-05-12 13:41:28 +00:00
Makefile Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
Makefile.inc1 Make sure to not yet build the GNU C++, but still allow 2002-05-15 16:29:45 +00:00
Makefile.upgrade
README Spell "FreeBSD" correctly. 2002-03-26 12:35:49 +00:00
UPDATING Check that kldxref(8) exists before running it. 2002-05-14 07:49:12 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.FreeBSD.org/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

kerberosIV	KerberosIV (eBones) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.FreeBSD.org/handbook/synching.html