Commit Graph

2265 Commits

Author SHA1 Message Date
macallan c5214d8b2d add xgi to the list of known Xorg drivers just to make sure I don't forget
to add it here when I actually import it
2012-07-19 15:16:31 +00:00
spz 67d12f6407 more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets
2012-07-14 16:04:04 +00:00
abs 5659783547 Whatever "-Wl,--fatal-warnings" get-out-of-jail-free card gcc-4.5 gets,
give the same treatment to gcc-4.1.
2012-06-25 16:48:55 +00:00
abs 86aebb49c7 Switch -current vax back to gcc 4.1 to match netbsd-6 - until someone has
time to look at the gcc 4.5 codegen issues we should at least have a usable
-current for vax.
2012-06-22 20:32:34 +00:00
plunky f46033d093 since we seem to have grown a WARNS=5, list it here 2012-06-19 06:20:13 +00:00
uwe e431c4fada Switch sh3 ports to our own csu (USE_COMPILERCRTSTUFF?= no). 2012-06-17 22:59:48 +00:00
wiz f6eeb323a5 Document MKREPRO here as well. 2012-05-25 10:48:48 +00:00
joerg b757af438b Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
joerg 3c1c42ed5f Make it easier to specify the list of checkers to enable for the static
analyzer.
2012-04-04 10:37:18 +00:00
matt a969b57018 Add WARNS=5 to enable -Wold-style-definitions 2012-03-20 21:48:20 +00:00
christos 4254cd9bee allow file-specific lint flag additions 2012-03-17 18:02:41 +00:00
joerg f03aabbcc7 Don't error out for non-literal format strings with Clang until the rest
of the __printflike changes are in the tree.
2012-03-15 15:04:23 +00:00
joerg 17cb70e7b4 Decouple HAVE_LLVM from HAVE_GCC. For GCC, add -Wno-format-zero-length
when -Wformat is used.
2012-03-15 02:00:52 +00:00
tron df92d05dec Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.
2012-02-29 20:07:51 +00:00
matt f5d3f68d54 Remove another ${SIZE} 2012-02-21 01:41:09 +00:00
matt 0bf8cdb842 Remove ${SIZE} 2012-02-20 18:23:50 +00:00
matt 47c982a38d Add support for --combine with gcc. 2012-02-19 23:19:37 +00:00
joerg 23782b5c2b Derive MANINSTALL from MKCATPAGES and MKHTML. 2012-02-17 00:00:02 +00:00
christos 110af54a7b use osrelease -k to avoid that the path is 6.0_BETA 2012-02-16 23:58:15 +00:00
matt 47dd0a4489 Switch VAX to use GCC 4.5 and GDB 7.
Change VAX to use DBG=-O2 like most other ports.
2012-02-10 05:57:42 +00:00
joerg 6c39547510 Sync with reality for MKCATPAGES and MKMANDOC. 2012-02-07 22:58:49 +00:00
joerg 849ff56477 Switch to using mandoc for formatting man pages as new default.
Stop building catpages by default.
2012-02-07 19:33:19 +00:00
joerg 410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
christos dfa5043919 rename to OBJCOPYLIBFLAGS 2012-01-28 23:13:24 +00:00
christos c37ad7ee66 Provide a way to override the default objcopy flags for library modules. 2012-01-28 21:32:13 +00:00
njoly 1d7281ae96 For xkb_base, do not use ${libdir} (xkeyboard-config.pc does not define
it) but its value ${prefix}/lib instead.
2012-01-17 19:40:08 +00:00
skrll 0df379aa98 Switch hppa to gdb 7. 2011-11-25 22:03:42 +00:00
apb 6c03a4739d Use :Q to deal with the case that CLEANFILES or CLEANDIRFILES
contains quoted substrings (such as file names with spaces).
Problem reported by Joseph Koshy, who also provided the
important part of the fix.
2011-11-22 18:25:48 +00:00
jdc 39bd26a295 Switch alpha to gdb 7. 2011-11-15 22:55:28 +00:00
christos 50a5b513a2 Add libtre 2011-11-05 22:56:30 +00:00
uwe d36863b6ce Switch sh3 to gdb7. 2011-11-02 00:10:08 +00:00
joerg ac992c4949 Hook up nbperf into the normal tool build. 2011-11-01 21:16:28 +00:00
chs 8c0bc12273 switch everything except vax to gcc 4.5.
switch m68k to -Os since -O2 produces much bigger code
with gcc 4.5 than it did with gcc 4.1.
2011-10-31 14:20:11 +00:00
mrg c23dc553e9 obsolete now useless (and wrongly set to "219" :-) HAVE_BINUTILS.
switch the sense of the gdb and gcc tests to list the platforms not
switched to gcc 4.5 or gdb 7, which is now:

GCC 4.1:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_CPU}  == "arm"	|| \
    ${MACHINE_CPU}  == "m68k"	|| \
    ${MACHINE_CPU}  == "vax"

GDB 6:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_ARCH} == "hppa"	|| \
    ${MACHINE_CPU}  == "mips"	|| \
    ${MACHINE_CPU}  == "sh3"	|| \
    ${MACHINE_ARCH} == "vax"

let's go, people!  (-:
2011-10-31 08:14:43 +00:00
mrg 796bd71eac switch powerpc64 to GCC 4.5 and GDB 7. untested, but it builds which
is a step forward from a week ago.
2011-10-30 08:50:14 +00:00
mrg 0f88387d2b switch m68* to GDB 7.3.1. tested on sun2 and sun3 in TME. works
at least reasonably on sun3.  GCC 4.1 barely runs on sun2 and GCC
4.5 doesn't run...
2011-10-28 06:28:48 +00:00
mrg 22a1ab187f switch sparc, sparc64, arm and powerpc to GDB 7. 2011-10-25 05:54:15 +00:00
christos e4a5483fe0 rump not rum 2011-10-16 01:28:35 +00:00
christos fa86ae90df - no need to special-case libraries with weird characters.
- add a note about adding new libraries.
2011-10-16 01:24:05 +00:00
christos c4fb05f751 fix list of libraries to reflect reality. 2011-10-16 01:14:33 +00:00
mbalmer 6ec0bc5690 Uncomment LUA_DPLIBS processing, but do not auto-include liblua.so,
under the assumption that programs that load Lua modules already have
loaded it.
2011-10-16 00:45:09 +00:00
joerg ac86ba952c Hook up SQLite into the build 2011-10-13 22:08:16 +00:00
joerg 9aa0541bdf Update LLVM/Clang snapshot to r141658. This primarily fixes a regression
preventing Qt4 from building.
2011-10-11 13:53:56 +00:00
christos d9f8f2e0cc Switch i386 and amd64 to gdb7. 2011-10-08 21:55:16 +00:00
mbalmer 82b798e8a5 Comment out the '##### Libraries that modules may depend upon.' for now,
so that modules written in C can be built.
2011-10-08 08:35:56 +00:00
apb 5181f2fcf2 Use bsd.clean.mk instead of defining our own "clean" target. 2011-10-07 17:53:03 +00:00
plunky 6d2e84eb2c install bsd.lua.mk into DESTDIR 2011-10-07 16:29:40 +00:00
plunky 8b59e8109b Add a bsd.lua.mk for building Lua modules 2011-10-07 16:25:37 +00:00
mrg 4a9d1308c3 obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
2011-10-07 09:15:21 +00:00
apb 3c4ccf5215 Add MKCLEANSRC and MKCLEANVERIFY variables, defaulting to "yes".
You may set them to "no" to get the old behaviour of "make clean"
and "make cleandir".
2011-10-05 12:34:04 +00:00
christos 8d68885ceb No point on keeping hp700 on the old gcc; it is produces broken assembly
according to the new binutils.
2011-10-02 22:10:10 +00:00
dholland 2a481dca6b Fix the setting of "xcbincludedir" in .pc files (where the xcb XML
files live) so that anything that needs to find them can. Fixes build
of pkgsrc libxcb, not that that in particular is terribly important.
2011-09-29 10:59:26 +00:00
apb c850a5ae67 If the number of entries in CLEANFILES is too large, then the
commands in bsd.clean.mk encounter errors like "exec(/bin/sh)
failed (Argument list too long)".  Avoid that by splitting the
files to clean into several lists using different variable names.

This should fix PR 45397, at least until the number of files
grows much larger.
2011-09-25 11:20:41 +00:00
apb 18b764946f * use a :M* modifier when testing whether the expanded list of
files is empty.  Sometimes the variable contains one or more spaces,
  and testing against "" gave the wrong result, but applying the
  :M* modifier discards the spaces.  This should fix PR 45396.
* Instead of using "-" to ignore the exit status from the rm command,
  use ||true.  This should work around the bug in PR 45356, but that
  bug is not fixed.
* Suppress the ${MKMSG} command with .if 0.  People who build with
  MAKEVERBOSE=1 don't want to see the message, and people who build
  with MAKEVERBOSE=2 or higher will see the actual rm command.  The
  message may be useful for debugging this makefile itself, so it's
  only disabled, not deleted.
2011-09-23 21:13:14 +00:00
joerg 9b296e99bc Decouple clang and gcc handling a bit. Add -Wmissing-noreturn for clang
builds. GCC complains about about non-void functions not returning,
which is quite a bit more bogus, so don't enable it for that.
2011-09-20 09:11:06 +00:00
mbalmer d3aee14626 Move SYSCTL_USE_DESCR to a better place. 2011-09-11 18:38:02 +00:00
mbalmer fc1f4a87c4 Install new shiny bsd.clean.mk 2011-09-11 16:03:49 +00:00
apb 87213f7215 Don't automatically load ".depend" files during "make clean"
or "make cleandir".
2011-09-10 19:25:10 +00:00
apb 386a389aab Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.
2011-09-10 16:57:35 +00:00
apb f6a28000e5 Document the FILESBUILD variable, which was added in
bsd.files.mk revision 1.41 dated 2010-02-03.
2011-09-09 10:08:14 +00:00
plunky fa3d1b9a20 pcc cpp(1) does not understand the '-undef' and '-traditional' long form
arguments, use $(CC) -E instead of $(CPP) for these
2011-09-01 16:41:48 +00:00
joerg 03242f8218 Simplify, --analyze gives the same settings as default 2011-09-01 12:25:10 +00:00
joerg ba5a5a1119 Add new "analyze" command to run clang's static analyzer in a directory
on all C/C++ files.
2011-08-27 18:35:19 +00:00
uwe d4eba6a9b8 Switch sh3 to GCC 4.5. Tested on landisk (including doing build.sh on it). 2011-08-25 00:01:25 +00:00
christos 875018bf8a add -Wformat=2 2011-08-23 05:22:25 +00:00
mrg 8188255310 switch sparc to GCC 4.5.3. 2011-08-17 09:18:37 +00:00
mrg f2baad49fd switch x86 to GCC 4.5. 2011-08-07 08:15:02 +00:00
plunky 67e53d37bc NOPATH the lib we are making, rather than HOSTPROG which is irrelevant 2011-08-05 09:36:28 +00:00
matt c3bb2a6aa0 Switch mips and powerpc to GCC 4.5 2011-08-05 00:24:12 +00:00
mrg 7941c10dff switch sparc64 to GCC 4.5.3. 2011-08-04 00:52:49 +00:00
mrg e740c47eb7 updates for xorg-server 1.10.3 2011-08-02 07:44:39 +00:00
mrg d4bb67a86f update to xorg-server 1.9.5 2011-07-24 01:40:40 +00:00
mrg 4cdc33f137 updates for freetype 2.4.5 2011-07-24 00:33:38 +00:00
tsutsui ce89d25111 Add definitions for elf2aout tools. 2011-07-16 23:42:42 +00:00
matt dff840eccd VAX kernel modules need to be built with -fno-pic 2011-07-14 18:12:35 +00:00
matt 573c9331e5 Add more links for evbmips
Add ${MACHINE} link
2011-07-10 23:50:24 +00:00
tsutsui 0684fd552b Add OBJCOPY_ELF2AOUT_FLAGS for some arm ports to create a.out binaries
using objcopy(1) for old firmware, shared among src/distrib and
src/sys/arch/${MACHIHNE}/conf/Makefile.${MACHINE}.inc.

Discussed with mrg@ and matt@ on source-changes-d@.
2011-07-10 04:36:13 +00:00
uwe cc65ce8e22 Augment previous. Use -Wno-uninitialized for sh3 in general, not just
dreamcast.  The problem is not sh3 per-se, but the fact that for sh3
we use -Os by default.  That causes false positives since gcc doesn't
detect that e.g. a variable is set and used under the same condition
in different "if" statements.

XXX: This should probably check for optimization level instead,
though, for all I know, phase of moon might be a contributing cause
too.

XXX2: MACHINE_CPU is set in bsd.own.mk and is not available here, so
we have to spell the test in terms of MACHINE_ARCH.
2011-07-08 20:59:53 +00:00
mrg 5f311ecb4a # XXX GCC 4.5 for dreamcast is extra noisy for cases it should be better with
workaround via: CFLAGS+=      -Wno-uninitialized
2011-07-08 03:29:52 +00:00
dholland 5d43254f4a Fix the value of "appdefaultdir" that ends up in native X .pc files.
(It should be "app-defaults" but was "app-default", probably because
of a typo; it's been wrong ever since this logic was put in two and a
half years ago, and as app-defaults files are a legacy mechanism it
took this long for anyone to notice.) Should be pulled up to -5.
2011-07-03 22:59:46 +00:00
matt 9233f8063e Switch powerpc to USE_COMPILERCRTSTUFF=no 2011-07-02 20:21:16 +00:00
matt dd0507a9a5 Replace gzip with ${TOOL_GZIP} in manual compression.
Modify the description of USE_PIGZGZIP.
2011-06-30 18:13:51 +00:00
matt 65fe75b53f After making sure USE_PIGZGZIP is defined, add a TOOL_GZIP which will be
gzip or ${TOOL_PIGZ}.  Use of gzip can be replaced with ${TOOL_GZIP} and
automatically get to use pigz if USE_PIGZGZIP is defined as "yes".  This
avoid having to special case each of gzip.
2011-06-30 18:09:54 +00:00
mrg f53e78abc3 XXX: for now, disable fatal linker warnings for GCC 4.5. 2011-06-29 08:10:05 +00:00
mrg 75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
mrg 8f161cd6d3 remove all the code that supported HAVE_GCC=3. mostly from chuq. 2011-06-20 06:52:36 +00:00
mrg a2c4975d63 build evbppc modules in 3 different flavours:
- oea (default)
	- ibm4xx
	- booke

this, together with earlier machine_module[] work, should allow evbppc
platforms to use modules.
2011-06-15 09:45:58 +00:00
christos 7e3e66b16b add libgcc_pic dependency. 2011-06-05 23:09:15 +00:00
joerg 78ec0254df Reorder CWARNFLAGS and -Werror in CFLAGS to allow CWARNFLAGS and by
extension CWARNFLAGS.${SOURCE} to override it selectively.
2011-05-30 13:56:34 +00:00
joerg 70e887f5ec Add an alternative to NOGCCERROR for clang. 2011-05-30 13:47:01 +00:00
drochner 53cdf0b54e make the "tags" target non-.PHONY because it reflects a real file,
and remove some nonsense in libc Makefile which caused that
a "tags" file was written in my source tree
2011-05-27 17:06:54 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg 7e217e1f53 Restrict -Wno-non-template-friend and -Wno-pmf-conversions to GCC. 2011-05-25 15:02:25 +00:00
joerg 175c50ac7e Add support for compiler specific warning flags with
CWARNFLAGS.${COMPILER}
2011-05-25 15:01:08 +00:00
joerg 0cd1e39abe Disable Clang's array boundary checker for now (hits e.g. in GCC and BDB) 2011-05-23 14:32:05 +00:00
joerg 1742cf8828 Simplify a bit 2011-05-22 20:52:12 +00:00
joerg 7cfd64c6f6 Split SSP parameters on a per-compiler base 2011-05-22 20:49:16 +00:00
joerg e7d3de7e55 No -Wno-traditional for clang. 2011-05-22 20:24:46 +00:00
plunky 762c58f13a simplify PCC inclusion; MKPCCDMDS is not really required 2011-05-20 16:02:21 +00:00
joerg 00f0e17e85 Fully support per-target AFLAGS. 2011-05-20 14:27:48 +00:00
joerg 1fe45e28aa Add fine-grained compiler selection, including clang support. 2011-05-19 14:29:27 +00:00
adam dde94184d6 Reverting last change; joerg has a better approach 2011-05-19 06:09:36 +00:00
adam 84862a28ce Add support for LLVM/Clang 2011-05-18 13:08:14 +00:00
christos 6bbebf8328 Enable c99 mode by default.
This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.
2011-05-17 01:12:34 +00:00
jmmv 21bb82bc2e Remove any stale .fifo files when doing 'test'. These may be leaked if
the user aborts the execution of atf-run with Ctrl+C, which will prevent
a subsequent 'make test' from working at all.
2011-05-14 17:47:28 +00:00
haad 1d514c3d24 Add MKPERFUSE flag to those who are enabled by default. 2011-05-09 14:36:48 +00:00
he ae7d1665f4 The new Heimdal adds -lwind and -lheimbase to the set of libraries,
so define the corresponding LIB* variables.
These are also needed in the PAM_STATIC_* variables, so add them there too.
2011-04-26 08:22:17 +00:00
joerg 0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
joerg cad1e2593b Fix --sysroot usage. 2011-04-18 02:16:55 +00:00
christos afb74ce0eb Revert previous, breaks builds completely (cd /usr/src/bin/test && make clean &&
make)
2011-04-17 15:03:37 +00:00
tron 7d762fda62 Don't use "--sysroot=/" for host builds as "nbhost-mkdep" doesn't
understand that option. This should unbreak tool builds.
2011-04-17 12:54:22 +00:00
mrg 19625811ee prepare for evbppc modules, and allow overriding the ${MACHINE} for
installed modules.
2011-04-17 09:47:40 +00:00
mrg 3776a6678e it's spelled CPPFLAGS not CPPFLAGGS. 2011-04-17 00:05:36 +00:00
christos 62ee277445 Need --sysroot=/ otherwise ld does not find crt0.o and friends. 2011-04-16 22:45:23 +00:00
christos 640ac4b1c5 Simplify and correct (previous did not work for !defined(DESTDIR) 2011-04-16 21:41:24 +00:00
elric 98fbe74f8c Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal.  The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
joerg 5e3fd2e02b Adjust --sysroot related usage:
-Wl,-rpath does not expand =, so just drop it.

Drop -Wl,-rpath-link entries that duplicate the -Wl,-rpath entries, this
is done implicitly now that ld is built with sysroot support.

Use ${DESTDIR} explicitly for the remaining -Wl,-rpath-link entries.
2011-04-11 23:03:38 +00:00
joerg c033559e42 GCC 4.1 doesn't have the support code for -I =... yet, so don't use it
for now.
2011-04-11 21:04:11 +00:00
joerg 31ba4e2954 Use ?: operator to determine when to add --sysroot. Unbreaks clang
bootstrap.
2011-04-10 21:03:17 +00:00
joerg c28ff146c9 For USETOOLS=yes, use the --sysroot support of the compiler to cut down
the number of hard-coded pathes and magic invocations.
2011-04-10 16:52:36 +00:00
joerg 8f1068802c Compute the build seed using :hash. 2011-04-07 01:40:32 +00:00
plunky bbe1bca01a if not including <bsd.prog.mk> then we need to clean up our own mess 2011-03-27 14:22:02 +00:00
bouyer d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
plunky b34a9665c8 CLEANFILES is not processed by <bsd.files.mk> so don't assume that
anything assigned there will be cleaned up; handle clean up of the
PKGCONFIG files explicitly. (eg lib/dri/dri.pc was not cleaned)
2011-03-12 13:22:03 +00:00
njoly 2198134aa6 Adjust html link template and css location for man pages in arch
subdirs.
2011-03-08 12:20:17 +00:00
jmmv 8de5cd3354 Revert previous (revision 1.261): it broke the build because PROG_CXX is
defined in terms of PROG, so later on we would end up with target duplicates
because both PROG_CXX and PROG were being converted to PROGS_CXX and PROGS.

Did not catch this earlier because the test build I did was not clean and
thus the duplicate targets did not have nasty effects.
2011-03-08 07:53:43 +00:00
jmmv 18b629ec58 Always convert PROG to its plural form independently of whether PROG_CXX
is defined or not.  From Garrett Cooper in private mail.
2011-03-07 19:05:03 +00:00
jmmv 07be9009b6 Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.
2011-02-20 20:16:01 +00:00
jmcneill 20ae4ea372 add 'i386' to CLEANFILES on amd64, thanks mrg! 2011-02-20 04:05:14 +00:00
jmmv 814b005f0c Miscellaneous improvements from Garrett Cooper:
- Add to variables only once, instead of from within a loop.
- Use :tl instead of :M to match against strings for readability.
- Use CLEANFILES instead of a custom clean target.

Full release built successfully after this change.
2011-02-16 10:13:00 +00:00
christos efe059951d add saslc 2011-02-13 00:42:45 +00:00
matt 94810ded7b Only define DPLIBC if LIBC_SO is not empty otherwise we an errant
dependency on DESTDIR.
2011-02-10 21:55:33 +00:00
mrg 1051ab1175 add missing SRCDIR for synaptics. 2011-02-07 21:23:47 +00:00
jmmv 3b500cc2c3 Fix the 'test' target to force atf to use its own files from DESTDIR instead
of the installed ones.  This is achieved by overriding all ATF_* environment
variables and making them point inside DESTDIR.
2011-02-06 19:38:48 +00:00
joerg 48360965f3 Add LLVM and clang build system. It is enabled by MKLLVM=yes.
Upstream sources can be fetched by running "make checkout" in
src/external/bsd/llvm, they will be properly imported once the
integration and missing features are sorted out.
2011-02-06 01:13:42 +00:00
joerg afe7317d58 Don't use -nostdinc or -nostdinc++ if this is included in a HOSTLIB. 2011-02-06 01:08:37 +00:00
joerg 5c52343643 Allow HOSTLIB to use C++ by not specifying -nostdinc++. 2011-02-06 00:52:49 +00:00
matt a66016ab15 Add TOOL_MKUBOOTIMAGE 2011-01-31 03:42:01 +00:00
pooka 5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
he a73bf0c204 Default MKREPRO to "no", so that the tests in stand/ etc. don't need
to add ":Uno" to the variable expansion inside the test to avoid errors
from nbmake.
2011-01-25 10:28:56 +00:00
joerg 19b23810a0 Switch remaining platforms to modern CPP for assembler. 2011-01-21 15:59:04 +00:00
matt c17daf3806 Default mips64e[bl] to SOFTFLOAT. 2011-01-18 08:31:18 +00:00
joerg 13d8b2b89c Move SPARC and SPARC64 to modern CPP. Update UPDATING note for this and
Alpha.
2011-01-17 18:11:09 +00:00
pooka 14c8789b8c Add rump bits to DPSRCS so that update builds work correctly. 2011-01-17 18:05:52 +00:00
joerg 66ef8e5b14 Alpha doesn't need -traditional-cpp for assembler. 2011-01-16 19:29:59 +00:00
joerg d3a052c472 Allow use of traditional CPP to be set on a per platform base in sys.mk.
Honour this for dependency processing in bsd.dep.mk.  Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.
2011-01-12 23:12:10 +00:00
joerg 681aec7b5a USETBL no longer disables mandoc processing. 2011-01-12 23:05:31 +00:00
joerg 6518b0c675 mandoc now supports tbl(1) formatting, so adjust rules.
Use -Wstop in lintmanpages.
2011-01-12 23:03:24 +00:00
matt d24d5902b3 Kernels modules are c99 (gnu99) just like the kernel.
Add(move) -std=gnu99 to CPPFLAGS (from COPTS).
2011-01-02 19:24:47 +00:00
joerg 762325586d If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor.  This avoids leaking the source
path into the final binaries.
2010-12-25 18:56:44 +00:00
pooka 43673c5e38 befriend RUMPPRG with CRUNCHEDPRG 2010-12-13 21:47:04 +00:00
pooka 84d9317cb6 Define RUMPPRG, which is just like PROG, except it additionally
builds a rump client with the name rump.${PROG}.  The rump client
is not installed suid/sgid by default even if BINMODE is defined.
2010-12-13 17:22:26 +00:00
martin f6c30c513f Revert last, gcc(1) checks explicitly for -r on some platforms to disable
passing down --relax as well.
2010-12-11 18:42:33 +00:00
joerg f360555e8a Revert last, gcc(1) checks explicitly for -r on some platforms to disable
passing down --relax as well.
2010-12-10 20:08:17 +00:00
joerg 49755c474a gcc passes down -r directly to ld, so make it explicitly a linker option. 2010-12-08 02:04:13 +00:00
joerg d9da1368fc Don't depend on ${CC} passing down -R to ld, use -Wl,-rpath explicitly. 2010-12-08 01:57:22 +00:00
mrg aa6fd2d6fa switch ofppc to xorg. 2010-12-05 09:54:34 +00:00
wiz 36c0ebae6f Remove HTMLDEPS; was only used by nroff.
Ok joerg@
2010-12-02 23:08:04 +00:00
skrll 1f561df24f Fix a comment 2010-11-28 18:44:13 +00:00
skrll 15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
mrg 5efc132dce - always include <xorg-config.h> for DIX components
- update stuff to xorg-server 1.9.2
2010-11-23 09:49:30 +00:00
mrg a69630cac3 add transforms for dri.pc. 2010-11-23 00:02:20 +00:00
pooka ebb5797af8 add LIBRUMPCLIENT 2010-11-22 11:29:07 +00:00
tsutsui 33a2e12125 Switch NetBSD/dreamcast to X11FLAVOUR=Xorg.
No particular comments on port-dreamcast@ and
tested with JP (HKT-7600) and US (HKT-7620) keyboards.
2010-11-12 16:05:49 +00:00
lukem 44f36b23ab Preserve date on original shared library or program when stripping
the debug symbols and adding the debug-link to .debug.
Use '(rm -f file; false)' in the failure path to force failure.
Based on solution proposed by Nicolas Joly on tech-toolchain in July 2010.
Should fix PR toolchain/44046 from Andreas Gustafsson.
2010-11-08 06:54:52 +00:00
joerg afd3226f0e Add LIBLZMA. 2010-11-02 19:13:58 +00:00
mbalmer aa94cc597c Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.
2010-10-31 11:52:50 +00:00
yhardy acec8b0574 Fix pkg-config substitution for glu 2010-10-22 16:48:38 +00:00
ahoka 82e82fca50 Add libc glue for libtre.
tre will be compiled without approx and wchar/mulibyte support to
only match the minimum requirement to replace our spencer regex.

This needs a lot of testing.

Only enabled when USE_LIBTRE is set to `yes'.
2010-09-04 12:17:58 +00:00
reed db8c589cdc For MLINKS description, remove sentence saying they
are soft-linked (as it is not accurate).
2010-08-25 15:24:29 +00:00
joerg 09dba18788 Simplify. 2010-08-23 16:03:03 +00:00
rmind 2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
christos 0479cf6528 PR/43772: enami tsugutomo: __XCONFIGFILEMAN__ is left unexpaneded in
xinit(1)/startx(1)
2010-08-17 08:40:57 +00:00
mrg 25c3593d4e add new option to build/use tools/pigz for compressing sets. for now
USE_PIGZGZIP defaults to "no".  (it depends upon local <pthread.h> and -lz.)

you can set it to "yes" on most modern platforms just fine.
2010-08-15 07:27:33 +00:00
mrg 7a40f55864 add/fix some transforms for some font, GL and xcb .pc files.
XXX: xcb still has pythondir=@pythondir@ in it.
2010-08-15 06:48:56 +00:00
christos 6e861e80dc don't forget to install bsd.ioconf.mk 2010-08-07 21:50:51 +00:00
jmmv eed27dd4f1 Move the TESTSBASE definition from bsd.test.mk to bsd.own.mk. Per joerg@'s
suggestion.
2010-08-02 07:08:26 +00:00
tsutsui d10a5f9ef8 Cleanup and sort if-clause lines for X11FLAVOUR per ${MACHINE}. 2010-07-31 16:23:15 +00:00
tsutsui d3d7f5a993 Switch hpcarm, hpcmips, and hpcsh to using X11FLAVOUR=Xorg. 2010-07-31 12:54:35 +00:00
mrg 8d81f5c19e add some more transforms to the hacky ugly sed script for pkg-config files,
and note a few more that are not yet handled but should be.
2010-07-18 07:05:39 +00:00
mrg 4f2c95e76d - add X11SHAREDIR definition
- X11SRCDIR's for libxcb, xcb-proto and xcb-utils
2010-07-17 22:53:29 +00:00
jmmv dad604ce0c Implement Atffile automatic generation.
This change adds the ATFFILE variable, which can take the following values:
- yes: The source directory contains a static Atffile to be installed.
- auto: The Atffile is automatically generated.
- no: Do not install any Atffile (replaces the previous NOATFFILE variable).

The ugly bit of this is that I have to add a TESTS_SUBDIRS variable that
lists the subdirectories that contain test cases (so that they can be listed
in the Atffiles, without including auxiliary directories without tests).
This is a subset of SUBDIR.

Addresses a minor part of PR bin/43394.
2010-07-13 21:11:41 +00:00
kiyohara 299d82b760 Support xserver for prep.
It tested only s3(864).
2010-07-12 07:54:11 +00:00
mrg 6479f6e5b4 ldap is configured to depend upon MKCRYPTO no, so force MKLAP=no if
MKCRYPTO=no.
don't build pkg_install, libcrypto tests or rump_smbfs if MKCRYPTO=no.
mark librumpcrypto, rump_smb, pkg_*

fix set lists as appropriate.
2010-07-11 06:16:54 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg 88d56f4c97 - note that if MKINET6 is "no", MK11 must also be "no". we don't support
building X11 without inet6 support.  the support to maintain patches to
  generated files and other files is too great.  PR#42856
- add TOOL_PIGZ, which defaults to the (not yet default) built tools/pigz.
2010-06-20 06:54:23 +00:00
mrg 1909f84b1c - always install pigz. hooary!
- kill MKPIGZ.
- add MKPIGZGZIP.  if it is "no", then only install pigz as pigz.  if it is
  not "no", don't install mrgzip, install pigz as gzip.

in all cases, the z* scripts.


i don't like the name MKPIGZGZIP so if anyone has a better name, feel free
to replace it.  i don't care enough since killing the ugly name is just
more incentive to get pigz doing .bz2, .Z and .z.
2010-06-19 03:50:30 +00:00
jmmv 6fd7d9f8b8 Prevent build breakage if TESTSDIR is not defined (as in tests/modules/k_helper). 2010-06-18 13:14:21 +00:00
jmmv 92a7fda174 Add a experimental "make test" target
make test may yield misleading results but should work in many cases.  This
target is supposed to simplify the execution of tests but does not preclude
developers from running the installed versions.

Addresses PR misc/38326.
2010-06-18 10:10:57 +00:00
mrg 42a9c5d4fe default MKPIGZ to "no", for now. 2010-06-17 06:17:02 +00:00
mrg b6aa233709 ugh. this needs a real fix, but for now just update it to reality.
the diff -u is more obvious than a description:

-X11FLAGS.VERSION=      -DOSMAJORVERSION=1 -DOSMINORVERSION=6           # XXX
+X11FLAGS.VERSION=      -DOSMAJORVERSION=5 -DOSMINORVERSION=99          # XXX
2010-06-17 03:10:21 +00:00
riz a4259da5ea Note that MKZFS is actually "yes" on i386/amd64. 2010-06-08 22:22:25 +00:00
joerg 3ace57c17b Add definitions for TOOL_MANDOC_* for standalone users. Requested by
dyoung.
2010-06-04 20:19:39 +00:00
jmmv 727dd8cd9e Simplify build of shell-based test cases: atf-compile is gone. 2010-06-04 08:35:09 +00:00
joerg 2d399c649e Needs additional single quotes to keep the double qoutes. Magic... 2010-06-03 10:08:34 +00:00
joerg 826b0b1f17 XORGVERSION should be a single quoted expression as it represents a
single argument for .TH
2010-06-02 19:40:12 +00:00
joerg e4c9126b4d Install mdocml's default CSS as /usr/share/man/style.css. Switch HTML
man pages to use mandoc unconditional as it gives reasonable output for
all man pages, not only a subset of mdoc(7).  Use the newly installed
style.css for formatting and produce hyperlinks for .Xr.
2010-06-01 23:29:09 +00:00
mrg 9a93ccfecc add / retire some xf86-video drivers. 2010-05-28 06:24:59 +00:00
njoly 9a6aefa72e Small typo. 2010-05-26 14:52:10 +00:00
uwe 94642857bf bsd.subdir.mk - don't mention "make subdir" where subdir is any
directory listed in ${SUBDIR} as ${dir}: all-${dir} alias was removed
from 11 years ago (revision 1.31)

PR bin/43356
2010-05-26 01:10:10 +00:00
uwe 869e556be3 Fix typo in comment. 2010-05-26 00:48:15 +00:00
veego 7f287d45d8 Remove a / between a ${DESTDIR}${X11USRLIBDIR} which would result in a
double /
2010-05-23 21:23:59 +00:00
lukem 0aad54fe04 Support MKDEBUG for shared libraries. 2010-04-27 14:32:14 +00:00
lukem 781e18114c fix comment (so bracket matching works as intended) 2010-04-26 03:46:00 +00:00
lukem 6405962d8a When extracting separate debug symbols with MKDEBUG, there's no need
to leave the original file unstripped...
2010-04-24 07:57:04 +00:00
joerg 22c838d332 Add MKBSDTAR, defaulting to no. It switching cpio and tar to the
libarchive based frontends.
2010-04-23 19:41:02 +00:00
pooka 1ceaafde2e dial . for operator 2010-04-21 16:09:11 +00:00
christos 21003f688c don't try to build PIE binaries when LDSTATIC 2010-04-21 15:07:20 +00:00
pooka 11815d9c1d Depend ioconf.c on config (if doing a USETOOLS==yes build).
While this is not strictly sensible, it keeps UPDATE=1 builds
rolling if I change some aspect of config (such as adding the
cfdriver/cfattach lists now).  This is going away eventually.
2010-03-25 20:37:36 +00:00
pooka 4f4d4d6450 deal with ioconf.h 2010-03-22 14:42:01 +00:00
mrg a394b5afe8 set MACHINE_CPU to powerpc for MACHINE_ARCH of powerpc64.
from pooka via PR#43021.
2010-03-22 03:35:26 +00:00
pooka 40bb87a667 Move make snippets for use with config(1) ioconf functionality from
rump into share/mk.  This is to make it useful for all kernel
builders.

Note: we have waaay too many weird and wonderful ways of making
kernel code (monolithic kernel, modules, rump).  There should be
only one way to build kernel code instead of a maze of twisty little
.mk files, all not quite alike.  When that is fixed, this snippet can go
into the more generic .mk file.
2010-03-21 06:55:44 +00:00
christos 25f9b712f0 don't make links to directories that don't exist 2010-03-13 22:05:49 +00:00
mrg 4accc351a3 revert the previous:
- the default for ZFS on x86 already was "yes".

- this left MKZFS unset for other platforms, which breaks the build.
2010-03-13 19:31:51 +00:00
haad ef69f4224c Enable MKZFS by default on i386 and amd64 now when it compiles. 2010-03-13 17:07:28 +00:00
he 6017724458 Fix the setting of MKZFS for amd64 and i386, so that the set lists
match up again, and it matches with the comment a few lines above.
2010-03-08 09:32:18 +00:00
darran 61fb3737eb DTrace: Add CTF generation to the make framework. Only enabled when
MKDTRACE=yes.
2010-03-02 20:49:18 +00:00
joerg fa1daced3e Make lintmanpages not depend on MKMANDOC, it is built by default now.
Use -Wall to increase usefulness.
2010-03-01 22:00:07 +00:00
haad 0b46b1b518 As a preparation for zfs sources update disable MKZFS for some time. 2010-02-27 22:42:54 +00:00
njoly e9915f3b1e Change shared object file extension from .so to .pico, to avoid
conflicts with shared libaries names libXX.so; as recently seen with
MKUPDATE=yes builds for libelf and libnvpair.

All now stalled regular .so files need to be manually removed from
object directories.
2010-02-22 12:33:22 +00:00
darran 1bf14d4eef Add a MKDTRACE build knob for DTrace, off by default. 2010-02-21 01:48:03 +00:00
macallan 264656d782 add suncg14 2010-02-11 00:20:50 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
christos 8dd41afecc PR/42658: Geoff Wing: Quote directory variables to deal with spaces in the
source pathname.
2010-01-25 00:43:00 +00:00
jmmv 874cd0d0c1 Generate long calls in modules for arm32 and powerpc to avoid unsupported
relocations by the module loader in the kernel.  This makes modules work
in, at least, shark and macppc respectively.

This is obviously a workaround that results in slower code, but at least
makes modules work.  I'm adding a comment detailing what the real solution
would be so that the whole thing can be revisited in the future.  (Read:
I don't have time now to dig the details of how to implement trampoline
generation.)

(Based on the old bsd.kmod.mk file, I understand that hppa needs this
workaround too, but I can't check this platform.)
2010-01-18 23:39:07 +00:00
abs 6861006e58 Add note on SHLIB_{MAJOR,MINOR,TEENY} 2009-12-30 20:45:46 +00:00
abs fb1a714458 Add brief line on SHLIB_MAJOR, SHLIB_MINOR and SHLIB_TEENY in comments
section - addresses PR bin/39693
2009-12-30 12:34:13 +00:00
tron e24ad332ec LVM gets built by default these days. 2009-12-23 18:02:25 +00:00
tron 6d4aa8c1f7 Fix typo. 2009-12-23 18:00:38 +00:00
christos 830b7bc6e9 We mustn't search in the path for ${dir}.${MACHINE}; make sure we only
find the ones relative to ${.CURDIR}.
2009-12-19 00:14:43 +00:00
mrg 6540a82b31 brace a --fatal-warnings with a NOGCCERROR check. 2009-12-15 04:03:55 +00:00
mrg 588b1ff87f use "${CC} -r" not "${CC} -Wl,-r" as the latter fools GCC on some targets
and it ends up passing "-r -relax" to ld, which causes ld to barf.
2009-12-14 08:51:16 +00:00
christos 2713ece13f don't need GENCMD anymore. 2009-12-14 05:25:21 +00:00
matt 1e301281a1 Merge from matt-nb5-mips64 2009-12-14 01:00:46 +00:00
christos 2561f2eece Don't add the .h rule for yacc if we are not really building (-n) 2009-12-13 18:40:50 +00:00
mrg bcd8d648d5 enable MAKEDIRTARGET to be called with a separate environment,
called $MAKEDIRTARGETENV, defaulting to nothing.
2009-12-13 09:10:16 +00:00
mrg 6af15ae20b if BSD_MK_COMPAT_FILE is defined, .include it. 2009-12-13 09:01:45 +00:00
nonaka 7ed8bf295b The support of X for zaurus is added. 2009-12-13 05:04:36 +00:00
nakayama cdf5b45b9a 32-bit compat is CPU specific rather than machine.
So use MACHINE_ARCH instead.
2009-12-13 03:06:22 +00:00
snj 24e81c293f Switch cats to X.Org. 2009-12-12 23:45:36 +00:00
mrg a6052e3b04 replace /usr/lib with ${_GCC_CRTDIR} or ${SHLIBDIR} as appropriate. 2009-12-12 21:33:50 +00:00
snj 6085ee1cdc Switch netwinder to X.Org. 2009-12-11 22:35:42 +00:00
uebayasi bab9f7218a GENCMD: quote the string to eval in case it has spaces. 2009-12-11 16:09:03 +00:00
he 66597865fb Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets.  Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@
2009-12-11 15:22:33 +00:00
uebayasi 31dfbef56f ${GENCMD}:
Prefix tmp directories as /tmp/_gencmd.XXXXXX to give users a clue when it's
left accidentally.
2009-12-11 08:52:37 +00:00
uebayasi bf4c37b84c ${GENCMD} is used to generate only one output from file generation commands
which potentially have multiple output files, which confuses make(1).

This wrapper copies all involved files into /tmp, execute the command, and
copy the wanted file back to ${.OBJDIR}.  If this is expensive, consider to
rewrite the generation command to output files individually.

XXX bsd.own.mk is too bloated.
2009-12-11 08:37:34 +00:00
uebayasi cf4c152485 When PROGS / LIBS are used, you can pass each PROG / LIB specific parameters
to ${LD} via:

	${LDADD.${PROG}}
	${LDFLAGS.${PROG}}
	${LDSTATIC.${PROG}}
	${LDADD.${LIB}}
	${LDFLAGS.${LIB}}

OTOH you can't pass parameters to ${CC}, because in suffix rules make(1) only
knows the name of ${.IMPSRC} and ${.TARGET}; it's users' responsivility to
define ${CC} parameters to all the sources of a given ${PROG} / ${LIB}.

Should address bin/42381.

(Bug in this commit log was pointed out by mrg@.)
2009-12-08 15:18:42 +00:00
uebayasi 1675a3f293 Simplify how MKZFS is set. No functional changes. 2009-12-06 16:15:15 +00:00
haad e8e1233552 Switch MKLVM to default value to yes. There are only few bits missing and it
would be great if it can receive more testing.

Oked: core@, yamt@
2009-12-04 11:21:07 +00:00
tron 6a125b5c44 Add "MKZFS" to either "_MKVARS.yes" or "_MKVARS.no" depending on the
default of this platform. This fixed the build for NetBSD/amd64
and NetBSD/i386.

Yes, this horrible. There should be a better way to handle these
settings in general.
2009-12-03 15:57:18 +00:00