Commit Graph

1794 Commits

Author SHA1 Message Date
mlelstv
b0f88a0388 Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
uwe
08aeb1f9ef Use angle brackets in UUDECODE_FILES_RENAME_<fn> as we do for other
file-specific variables.  Start description on new line.

While here correct s/<fn>>/<fn>./ typo in a nearby item.
2008-03-11 13:33:16 +00:00
dholland
2d8b0e31c6 Adjust the loop that handles NOMAN and friends so grepping for NOMAN
actually finds it. Also note that it only works if set before
bsd.own.mk is included.

Otherwise, grep NOMAN /usr/share/mk/*.mk comes up empty, and since
naively setting it may not work, one can easily draw wrong
conclusions.
2008-03-10 01:18:29 +00:00
phx
ae0b13c01b Make XFree86 compile for ofppc.
Approved by garbled.
2008-03-08 10:37:48 +00:00
lukem
ba936e32d4 Set linker warnings to be fatal if ${WARNS} > 0. 2008-03-03 06:33:17 +00:00
jmmv
f51186f572 Fix build of tests when USETOOLS=no. Reported by veego@ in current-users
and notified to me by martin@.
2008-03-02 11:31:42 +00:00
skrll
55edbc2411 Add hppa to the list of platforms that need help with branches.
Sort the list while I'm here.
2008-03-01 20:29:43 +00:00
lukem
77b570b56b Use "GCC" instead of "gcc".
Highlight that MKGCCCMDS still does build the GCC libraries.
Suggested by Lloyd Parkes on tech-toolchain@
2008-02-27 00:36:00 +00:00
jmmv
1abe396003 Allow Makefiles to skip the installation of an Atffile by defining NOATFFILE.
This is to be able to get the definition of TESTSBASE, which maybe should be
part of bsd.own.mk...
2008-02-10 12:28:54 +00:00
jmmv
62b4c6bc5c Add a MKMODULAR build-time option, defaulting to no, to enable the new
kernel modules framework.
2008-02-09 19:31:36 +00:00
mrg
ecc90aa046 make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
drochner
992ef89b0e include bsd.init.mk so that eg USETOOLS is available to
client Makefiles, approved by jmmv
2008-02-05 17:50:47 +00:00
jmmv
1561f4867f Rebuild shell-based tests if the atf-compile host tool has changed. The
contents of the generated scripts may change (as will happen with ATF 0.4),
so this dependency is important to have.  Dunno how to deal with the
non-tools case other than adding an entry in UPDATING, but if you are not
using tools, you can expect all kinds of breakage.
2008-02-04 14:15:57 +00:00
nakayama
c3420b91a3 Follow the recent rpcgen(1) change.
The environment variable of the C preprocessor has replaced to RPCGEN_CPP.
2008-01-29 14:14:54 +00:00
ad
bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
skrll
21f4fe85eb Enable gdb on hppa. 2008-01-10 22:21:43 +00:00
simonb
d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
ad
0e3fd5532f Record LKM entry point in the ELF file header. 2008-01-04 14:54:29 +00:00
christos
7af2df4395 add MKPIE 2007-12-28 21:35:45 +00:00
jmmv
0287baacad Make the clean target work when OBJS is set but PROG is not, as happens
for example in gnu/lib/crtstuff4.  Reported by drochner@.
2007-12-26 22:52:10 +00:00
lukem
e226e0f887 It's "its" for possessive, not "it's". 2007-12-11 14:06:04 +00:00
jmmv
1a8b914c59 No need to set a value for TESTSDIR any more as this is explicitly set
wherever it is needed.
2007-11-21 15:40:09 +00:00
jmmv
ac0bd149f2 Fix typo that prevented MKDEBUG builds to work. Found by drochner@. 2007-11-13 13:57:53 +00:00
jmmv
dd2f8250cc Add the bsd.test.mk file
This file simplifies the build of test programs, either written in C++
or in sh.  It hides the internals of atf, e.g. by silently linking
against -latf or calling atf-compile.

It also takes care of installing an Atffile for each new test directory.
2007-11-12 15:05:15 +00:00
jmmv
12408017c4 Add the ability to build multiple programs from a single directory
This adds support for a new set of variables, PROGS and PROGS_CXX, that
allow the developer to build multiple different programs from a single
source directory.
2007-11-12 15:04:35 +00:00
jmmv
2965cbca98 Add the atf host tools
This adds reachover Makefiles to build the atf tools required during a
cross-build.
2007-11-12 14:54:43 +00:00
tls
b21c402a7b Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared.  Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.
2007-11-04 23:28:16 +00:00
ad
431267f955 Add USE_JEMALLOC. 2007-10-06 00:21:44 +00:00
christos
9ba5d03c10 Enable text relocation warnings. 2007-09-15 14:36:14 +00:00
hira
02972af57d Use /libexec/ld.elf_so instead of /usr/libexec/ld.elf_so for the
programs which are located in /libexec.
2007-08-29 21:34:17 +00:00
lukem
aae621fdad Support MAKEVERBOSE when installing APPDEFS. 2007-08-06 04:25:57 +00:00
pooka
c5653da5a1 install bsd.klinks.mk 2007-08-05 21:50:32 +00:00
pooka
9af4ce05d6 Split the part of bsd.kmod.mk which creates links to kernel header
directories into a separate module, bsd.klinks.mk.
2007-08-05 21:43:24 +00:00
joerg
577a8c7029 Add build glue for libarchive and update the various sets. 2007-07-29 17:06:00 +00:00
joerg
dbfc63fcce Rename nbinstall to ${MACHINE_GNU_PLATFORM}-install as it calls the
target strip. Don't pass down strip as it is not needed any longer.
2007-07-03 16:29:24 +00:00
tron
14f772ea69 Don't use alloca(3) inside the X11 libraries if we compile with
stack protection. XFree86 can now be buildt fine with "USE_SSP=yes".
2007-06-07 11:49:17 +00:00
rillig
f1ed085bcf Explained the word "new" in the first paragraph. 2007-06-06 06:18:39 +00:00
uwe
00fa1e6950 Stack protector codegen bug on sh3 has been fixed, so drop sh3 from
the list of platforms where we disable ssp.
2007-06-03 21:07:33 +00:00
christos
380cacfb28 we can now compile libc with _FORTIFY_SOURCE 2007-06-03 17:42:18 +00:00
uwe
7243a4e86c Fix inverted comparison ${MACHINE_ARCH} != "hppa" when checking for
ssp.  (hi^2 tls!)
2007-05-31 00:17:32 +00:00
uwe
c7bdc65e61 Use matching open and close parens.
Why make doesn't complain about $(foo} ?
2007-05-30 22:54:12 +00:00
tls
14aa3a04d9 Fix typo, and eliminate mention of libssp since it's gone.
Move -D_FORTIFY_SOURCE to CPPFLAGS from COPTS.
2007-05-30 21:27:54 +00:00
tls
dc99372be9 Match usage of FORTIFY_SOURCE on other platforms by not requiring special
include path: the normal header files now include the "SSP" ones (which one
should note are not really named right: SSP and FORTIFY_SOURCE are independent
features).

Disable USE_SSP on targets where the compiler doesn't support it at all
(mips, alpha) or it's known broken (sh3).  But enable FORTIFY_SOURCE,
without SSP, on those platforms -- tested on mipsel.
2007-05-30 21:14:35 +00:00
tls
a83c0ab035 mipsel || mipseb, not mipsel || mipsel 2007-05-30 14:21:31 +00:00
tls
2368dc663d Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do.  Goodbye, libssp
dependency in libraries and executables.  Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.
2007-05-30 01:13:14 +00:00
tls
6c43b583d4 Sigh, revert previous and fix right: we don't have MACHINE_CPU in bsd.sys.mk. 2007-05-29 21:24:57 +00:00
tls
e5545ad98b MACHINE_ARCH -> MACHINE_CPU so excluding mips from SSP/FORT works right. 2007-05-29 21:09:18 +00:00
tls
64e3562f4f Fix two bugs reported by Simon Burge: 1) USE_FORT and USE_SSP should be
disabled on platforms where GCC doesn't support -fstack-protector.  2) The
libssl Makefile had a hard-coded USE_FORT=yes.
2007-05-29 13:55:31 +00:00
tls
1e799aacf7 Sigh. Fix USE_FORT: do not use /usr/include/ssp from *host* system. 2007-05-29 04:56:34 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
tls
d307e49627 Add -D_FORTIFY_SOURCE=2 where it can safely/sanely be used if building
with USE_SSP: not in the kernel, and not in libssp itself.
2007-05-22 23:58:54 +00:00
matt
8655342068 -O1 on vax isn't quite enough, add -fgcse -fstrength-reduce -fgcse-after-reload
too.  We can build again.
2007-04-15 22:53:08 +00:00
matt
286b959060 For now, make vax default to -O not -O2 2007-04-14 18:39:46 +00:00
scw
5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
matt
87e605a5fe Don't test machine_arch for m68k and m68000, just test machine_cpu for
m68k.  Turn on PIC/PICLIB for VAX.
2007-03-31 05:58:30 +00:00
tsutsui
ca549fcb8e CPPICFLAGS -> CPPPICFLAGS (in comments) 2007-03-18 09:08:45 +00:00
pooka
b0f9a8a9aa update and fix description of MKPUFFS 2007-02-24 18:53:34 +00:00
chs
ca31efae54 switch the rest of the architectures to gdb6. 2007-02-19 18:31:21 +00:00
perry
34c4900430 Before I completely forget the issue, convert "PROG_PAX" to the
better-named "PAXCTL_FLAGS".
2007-01-25 23:04:28 +00:00
christos
855c80dc29 delete "-std=gnu99" from c++ flags. From mrg. 2007-01-22 21:49:07 +00:00
apb
a45dfb93f4 Define TOOL_JOIN. 2007-01-14 16:19:55 +00:00
rumble
78f7b270d1 Fix a typo, tweak wording, and maintain consistency. 2006-12-30 04:45:13 +00:00
pooka
81b905fdbb if MKPUFFS=yes is given, build & install mount_psshfs (default: no) 2006-12-29 15:52:20 +00:00
macallan
610c0515b7 build XFree86 on shark 2006-12-21 01:45:32 +00:00
dyoung
f3fbc3bb0f Change the name of the host disklabel to nbdisklabel-${MAKEWRAPPERMACHINE},
where ${MAKEWRAPPERMACHINE} is the suffix XXX on the target's make
wrapper, nbmake-XXX.

Fixes toolchain/30673, "single arch host disklabel isn't enough".
2006-12-09 20:13:13 +00:00
dsl
2abb1c7f9b If MAKEOBJDIRPREFIX or MAKEOBJDIR is defined, then we rely on make to
set .OBJDIR so 'make -V .OBJDIR' doesn't need to read any makefiles.
Given how much cud-chewing make does in order to read a line, this
speeds things up significantly (the operation in hand).
2006-11-29 21:49:39 +00:00
dsl
d23b6980be Comment where make's internal copy of .OBJDIR gets changed 2006-11-26 20:09:57 +00:00
drochner
29d30258a4 mk.conf might refer to all kinds of make variables, so we can't just pull
it in without everything else (reported by martin). So revert to 1.485
which did at least work for everyone.
2006-11-26 13:59:49 +00:00
drochner
0c2df71a45 fix previous: need to pull in <bsd.obj.mk> to get the real .OBJDIR 2006-11-24 12:02:55 +00:00
martin
6a3c1d7aeb When checking wether we are debugging, look for -g in ${CFLAGS} instead
of ${COPTS}. The latter explicitly includes the former and ${DBG}, where
the -g most likely is hidden.
2006-11-23 12:05:26 +00:00
dsl
503ea65cd7 If we only want .OBJDIR printed, there is no point parsing the default
make rules, nor reading Makefile.
It is rather a shame we can't stop .depend being parsed as well.
Quite possibly one could argue that nothing in .depend should affect the
output of 'make -V xxxx'.
2006-11-22 22:04:57 +00:00
dsl
0d9ff52003 Mark all the .PHONY targets as .NOTMAIN in one go - instead of individually.
Add .WAITs after beforeinstall and before afterinstall.
Remove the bogus dependency lines that someone must have added with the
vague hope they would cause the build to happen in the right order!
Since we have 'realinstall:     proginstall scriptsinstall' stopping
'realinstall' running never has stopped 'proginstall' running.
Fixing this probably fixes a variety of problems, including, but not
restricted to 'install' in src/sys/arch/atari/stand/bootxx
(NB this particular file is untested due to other local changes)
2006-11-21 18:25:26 +00:00
christos
1bb72362cf more uucp removal. 2006-11-12 02:44:51 +00:00
jmmv
abac724ef9 Also use libraries from /lib for binaries installed into /libexec. Needed
by lfs_cleanerd which is about to be moved to this directory.
2006-11-11 14:41:20 +00:00
christos
42b579bab8 disable SSP for standalone code. 2006-11-11 06:28:49 +00:00
christos
d07f8e39ca don't run paxctl if other commands were specified for that target. 2006-11-11 06:15:55 +00:00
christos
e81129f492 add the non tool version of paxctl 2006-11-10 17:22:19 +00:00
christos
fef715f487 if ${PROG_PAX} is defined, run paxctl on the binary after linking with
the value of the variable. This way, if you set:

    PROG_PAX=+M

in /etc/mk.conf, you get what you deserve.
2006-11-10 17:13:15 +00:00
christos
3051b08454 Add ssp glue. 2006-11-09 17:06:54 +00:00
pooka
bcb1fccca0 libpuffs 2006-10-22 22:53:41 +00:00
christos
e9a36b93da Add -Wextra -Wno-unused-parameter to WARNS > 2 2006-10-22 22:17:30 +00:00
bjh21
7fb3ea3f6c Use GDB 6 on armeb as well. 2006-10-18 23:31:50 +00:00
bjh21
cc630e93eb GDB 6.5 seems to be basically functional on ARM, so make it the default there. 2006-10-18 23:22:24 +00:00
mrg
b55240a473 - clean up some comments to reality.
- retire LIBDCK, LIBG2C and (long broken) USE_LIBSTDCXX
- in bsd.hostprog.mk's LIBSTDCPP -> LIBSTDCC
- add LIBSUPCXX
- don't default USE_LIBSTDCXX or USE_GCC4 since they are
  not used in the tree any where
- same with USE_XF86_4; retire it
- remove _SUPCXX handling in bsd.prog.mk

inspired by PR#26714.
2006-10-09 08:32:11 +00:00
elad
83704dec18 PR/28368: Peter Postma: unrecognized option `-Wnetbsd-format-audit'
Apply patch from rivo nurges in #NetBSD-code, thanks!
2006-10-08 17:16:51 +00:00
tsutsui
cd4f2a86f4 - pc532 is ${MACHINE}, not ${MACHINE_ARCH}; use ns32k
- fix a comment (sh5 has been switched to gcc4)
2006-10-01 05:06:20 +00:00
martin
37b5f548a5 Default sparc64 to gdb6. 2006-09-27 06:34:07 +00:00
matt
a63ad7b671 Make GCC4 the default (except for pc532).
Switch powerpc to GDB6.
2006-09-26 22:11:32 +00:00
christos
a08b6e285b switch i386 to gdb6. 2006-09-26 19:33:02 +00:00
skrll
de030205fa Switch hppa to gcc4. 2006-09-22 13:14:59 +00:00
simonb
ee167a117b Switch MIPS to gcc4 by default. 2006-09-19 04:16:11 +00:00
dbj
758985809b pay attention to MKUPDATE instead of UPDATE when installing libs 2006-09-18 05:15:35 +00:00
tsutsui
3d402afffa Switch m68k ports to gcc4.
Tested on most m68k ports. Still there is no report of
atari, cesfic, luna68k, and mvme68k on real machines,
but at least builds for these ports should work.
2006-09-17 04:40:04 +00:00
skrll
4f50b00c11 ia64 doesn't do gdb yet. 2006-09-14 06:28:47 +00:00
dbj
b41feff50f fixes for installing into a case insensitive $DESTDIR
when files may have hard links to a a name that only differs by case
  - change install to unconditionally remove its temporary file
    when installing hard links with -r.  This avoids problems when
    built with posix rename(2) semantics and reinstalling an existing
    hard link.
  - rework hard link targets in bsd.man.mk and bsd.links.mk
    to use makefile constructs instead of shell constructs
  - always reinstall hard links that may have case conflicts, even
    when MKUPDATE=yes, this ensures that they get added to METALOG
  - remove man pages which were hard linked to themselves in libform
  - remove improper hard link command for existing man page in libkrb5
  - fix libl's makefile to include bsd.lib.mk at end
  - remove shell quoting in link target for test's [.1 man page
2006-09-11 22:24:09 +00:00
cherry
05c821640b Switch ia64 to gcc4 2006-09-10 21:04:43 +00:00
simonb
b53f76b4fe Use -Wno-uninitialized for ns32k. For some reason, gcc on ns32k
doesn't detect initialisation correction in simple "for" loops like:
	for (i = 0; i < 10; i++)
		var = i;
2006-09-09 03:53:19 +00:00
scw
f177e531c7 Switch sh5el to gcc4. 2006-09-04 20:03:21 +00:00
matt
02f1c8b0ef Make sure to compile things at -O2 for mips64e[bl] 2006-08-26 19:57:03 +00:00
matt
c0b0d51c8c MACHINE_CPU for mips64e[bl] is mips 2006-08-26 19:56:37 +00:00
matt
9e051a8002 Add enough configury glue so that src/tools can build a N64 mips toolchain. 2006-08-25 23:35:04 +00:00
uwe
d4491bfa15 Switch sh3 to gcc4.
sh3el tested on hpcsh.  sh3eb only compile-tested with an mmeye build.
2006-07-24 23:54:15 +00:00
lukem
2c9b699f2a add reminder to sync with etc/Makefile and share/man/man5/mk.conf.5 2006-07-23 12:31:29 +00:00
lukem
cacf5bfacc Implement MKDEBUG:
If "no", don't build and install separate debugging symbols
	into /usr/libdata/debug.
	Default: no
2006-07-23 11:41:24 +00:00
lukem
8b3ce8625c Rename MKDEBUG to MKDEBUGLIB. 2006-07-22 05:29:03 +00:00
peter
669a86ac31 MKPAM default is "yes". 2006-07-14 21:37:10 +00:00
matt
49decd4131 Switch vax to GCC 4 2006-07-08 00:32:08 +00:00
mrg
252f1af0f5 -std=gnu99 can be applied with GCC>=3, not MACHINE != vax. 2006-07-01 06:02:51 +00:00
mrg
878c667fb1 vax needs NOPIC for >= GCC3 not just == GCC3. 2006-07-01 06:02:01 +00:00
mrg
72ccefa820 powerpc64 is big endian. 2006-06-30 05:46:33 +00:00
drochner
c89713e730 switch alpha to gcc4 2006-06-26 15:30:05 +00:00
lukem
9dde4120d5 Don't invoke LD with LDFLAGS, since the latter is for CC.
If we need similar support for LD, we can implement another variable.
I couldn't find any obvious need for LDFLAGS by users of <bsd.kmod.mk>.
2006-06-26 04:07:34 +00:00
lukem
6be844e18e support MAKEVERBOSE 2006-06-25 15:17:22 +00:00
lukem
9e21440fb1 Move LDFLAGS to the CC section instead of the LD section. 2006-06-25 15:04:31 +00:00
mrg
d1d848dac8 put hppa in to the list of working but not switched to GCC4 platforms. 2006-06-25 05:14:36 +00:00
garbled
1880a81bca Switch powerpc to gcc4. Confirmed working with prep and macppc ports. 2006-06-24 06:35:54 +00:00
mrg
157b90ce05 switch sun2 over to GCC4. however, turn off profiling for sun2 since
GCC4 generates bogus code when calling mcount().
2006-06-24 05:24:56 +00:00
mrg
a1299d95e9 default MKISCSI to yes. 2006-06-24 05:16:32 +00:00
mrg
2ed89a9707 add support for MKISCSI=no. 2006-06-24 05:14:01 +00:00
christos
e4cfbd8bf1 - switch arm, armeb, i386, sparc, sparc64, x86_64 to gcc4
as discussed with gimpy and phone.

- add glue for gdb-6 build
2006-06-23 21:51:02 +00:00
mrg
1167183c92 make powerpc64 use GCC4. the first GCC4 platform!
add mipsel and mipseb to the list of platforms that could have GCC4
but not done yet.
2006-06-22 20:13:14 +00:00
gdamore
a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
gdamore
494d0cb31a Forgot to commit these for TOOL_SED. Thanks to tsutsui@ for pointing it out. 2006-06-18 14:38:48 +00:00
christos
79867d81ea PR/33681: Scott Ellis: Building 'bc' with SHAREDSTRINGS=yes fails
We need CPPFLAGS too now.
2006-06-09 19:16:36 +00:00
rpaulo
2e83915da9 Add variables for /libdata/firmware path. 2006-06-07 18:49:36 +00:00
mrg
0b591d2dfd delete support for USE_TOOLS_TOOLCHAIN and HAVE_GCC==2.
update the list of platforms that build for GCC4 (but do not switch
any of them yet.)
2006-06-02 22:21:34 +00:00
mrg
db19e89e04 remove support for building (with) GCC 2.95. also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
christos
2cbaed172f Remove sendmail. 2006-05-30 00:42:29 +00:00
uwe
d5328b65a0 Enable -Wold-style-cast for sh3 now that its stadarg.h doesn't use LHS casts. 2006-05-22 00:43:04 +00:00
christos
0d1e2d0056 Remove -Wno-attribute for gcc4 2006-05-20 00:48:41 +00:00
lukem
a6538b604a LDFLAGS is for CC not LD. 2006-05-12 04:29:08 +00:00
mrg
8794aeca0e support CPPFLAG_ISYSTEMXX for GCC4. 2006-05-12 02:04:55 +00:00
mrg
38ef023f65 like we do for -Wno-traditional, remove -Wstrict-prototypes and
-Wmissing-prototypes from C++ since those are always requird for C++.
2006-05-12 02:03:35 +00:00
mrg
1ed40e7c8b add support for ${OBJCOPTS} and ${OBJCOPTS}.<lib|prog|fn>. 2006-05-11 23:47:34 +00:00
mrg
ae844d5313 turn on -Wno-pointer-sign for all kernel code. 2006-05-11 22:24:48 +00:00
mrg
8154510479 for now, turn on -fno-strict-aliasing for GCC4. 2006-05-11 00:46:57 +00:00
groo
ad8b178abb Add common/include to include path.
HI JASON!
2006-05-06 02:20:23 +00:00
uwe
e34bcd0c5a netwinder uses loadable server modules.
(Oops, forgot to commit this change along with other netwinder
X server commits.  Unbreaks builds.)
2006-04-17 12:50:51 +00:00
tls
3b526da7d6 bsd.lib.mk used MKDEBUG, but nothing defined it. Fix this. 2006-04-09 04:21:27 +00:00
christos
1c364e3284 Add MKDEBUG and the ability to build debugging versions of the libraries. 2006-04-09 01:52:06 +00:00
mrg
0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
christos
4e974b3144 Add a HAVE_GCC4 2006-04-01 20:20:28 +00:00
christos
45cfed2d83 make symlink types consistent. 2006-03-30 19:49:02 +00:00
jmc
603c15a57f Provide TOOL_GMAKE defintiion 2006-03-29 21:12:20 +00:00
jmc
ba3b1be79f Provide a default for USE_GCC4 (no currently) so it can be tested against 2006-03-29 21:03:39 +00:00
he
50ea083318 The -Wno-packed switch is a gcc3+ thing, so place it where it won't
be picked up by gcc 2.95.3.  Fixes build problem for vax.
2006-03-27 11:50:08 +00:00
dogcow
7c781162f5 Add -Wno-packed, in preparation for gcc4.1.x; unlike most of the other
warnings, it (at best) flags possible underoptimization, and not any
code defects.
2006-03-25 22:23:04 +00:00
christos
9e91483c3d There is always one more KRB4 thing to remove. (from Jukka Salmi) 2006-03-20 21:48:43 +00:00
christos
6b61cedf51 Remove krb4 variables and libraries (Jukka Salmi) 2006-03-20 21:27:31 +00:00
christos
c9a2b557c6 remove KRB4 libraries (Jukka Salmi) 2006-03-20 21:26:15 +00:00
christos
26c486a7c8 more Kerberos4 cleanup. 2006-03-20 21:25:31 +00:00
christos
5e46421102 Oops, I did not mean to commit that [turning on relative symlinks] 2006-03-20 18:18:41 +00:00
christos
85e611dd01 Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
jwise
8bc0f5da0f Now that we have real build system support for syspkgs, remove someone's
half-implemented idea of building `syspkgs' (really a few giant blobs of the
same granularity of the old sets) using install(1).
2006-03-16 18:43:34 +00:00
dsl
286b8b3f54 Use ${OBJCOPY} -[xX] ${.TARGET} instead of getting the file written to
${.TARGET}.tmp and running ${LD} -[xX] ...
I don't believe there are any architectures where objcopy can't delete local
symbols.
2006-01-28 11:10:18 +00:00
christos
a8243f1c4c Add the world of libraries to the static pam build. Now static pam binaries
work.
2006-01-20 16:54:11 +00:00
christos
7f5f767e82 Compile all profiling sources with -DPROF -DGPROF, not just assembly sources. 2006-01-08 01:23:51 +00:00
perry
8ce6cbdcd6 add "S" to LINTFLAGS so that "inline" is accepted by lint 2005-12-25 18:34:23 +00:00
hubertf
768192ee9f Back out previous attempt at cleaning up the mess,
let someone else resolve this.

Requested by uwe.
2005-12-22 02:52:40 +00:00
hubertf
266577df3c At least try to be consistent about where to document (most...)
user-settable MKxxx and USE_xxx variables, and put them into mk.conf(5).
Sort alphabetically.

OK: christos, lukem
2005-12-21 04:25:54 +00:00
christos
48d8900cac For now, s/c99/gnu99/ for WARNS=4. This is so that alloca() is defined (and
possibly other built-in functions). Another solution would be to add:

    #ifdef __GNUC__
    #define alloca(a) __builtin_alloca(a)
    #else
    void *alloca(size_t);
    #endif

in stdlib.h, since we have assembly support for some architectures on
non-gcc environments, and we can add the rest.
2005-12-02 21:34:50 +00:00
spz
1802f2d1d7 Enable build.sh -x building for the usbtablet driver new in xsrc
distrib/sets/lists/xserver/md.* to list the additional files for XFree86
using ports
share/mk/bsd.x11.mk and x11/... for the actual building

Contributes to closing PR xsrc/23964
Reviewed by tron@NetBSD.org
2005-11-12 22:57:46 +00:00
macallan
09bc805fb6 Build XFree86 on NetBSD/sparc.
Tested on Krups and a SPARCbook 3GX
Works only with wscons kernels, currently there's official support on Krups
with igsfb and more or less official support for SPARCbooks with pnozz and
SPARCstations with cgsix.
2005-10-01 22:51:31 +00:00
jwise
3deae99425 Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.
2005-09-02 03:57:10 +00:00
lukem
aca67b86d3 Fix parallel build race in CONFIGSYMLINKS & CONFIGLINKS by
makeing configlinksinstall depend upon configfilesinstall.
2005-08-31 05:08:24 +00:00
skrll
784c9344e8 Initial pass at an in-tree ia64 toolchain. From PR 29141 with some fixes
from me.
2005-08-17 07:13:32 +00:00
he
be72885616 Disable the C++ warning -Wold-style-cast for sh3 as well, because
that CPU's headers' va_start() uses a cast.

Discussed with christos.
2005-08-09 22:16:19 +00:00
he
1042d80dad Gcc 2.95.3 doesn't support the -Wabi warning flag, so don't try to use
it there.

The vax port's va_start() macro uses a cast, so for the moment disable
the -Wold-style-cast warning flag for the old GCC as well (as vax is
the only remaining port using this compiler).
2005-08-09 15:24:26 +00:00
christos
4d135558d7 Add CXXFLAGS for WARNS=2 2005-08-09 02:38:06 +00:00
christos
d818d83647 Add .m in the list of suffixes, otherwise including bsd.sys.mk in a Makefile
treats the .m.o:  suffix rule as a target. This broke typing 'make' in
${NETBSDSRC}/sys/kern.
2005-07-09 18:45:16 +00:00
peter
df0caa2637 Remove (pf)spamd. Its right to exist in NetBSD has been questioned since it
appeared and whether it's really part of pf or not is still unclear. Looking
at the other *BSDs it seems that they have left out spamd when importing pf,
and now we do that too. Also, the name conflicted with another more popular
used tool, after the rename to pfspamd it was left with completely unusable
documentation which apparently no-one wanted to fix.

A port of the latest spamd will be imported into pkgsrc soon.

Suggested by several people, no objections on last proposal on tech-userlevel.
2005-06-27 20:32:39 +00:00
dyoung
960c071724 Add definitions for the new "host tools " disklabel and fdisk.
Define TOOL_DISKLABEL and TOOL_FDISK.  Also introduce HOST_INSTALL_DIR
and HOST_INSTALL_SYMLINK.  These re-usable definitions help me to
install headers for disklabel and fdisk into ${TOOLDIR}/include/nbinclude/.
2005-06-12 19:31:25 +00:00
lukem
87b3e94478 Don't add -Wno-uninitialized to CFLAGS if WARNS > 0 and HAVE_GCC != no,
as gcc3 generates much less false positives for -Wuninitalized and I
have found genuine bugs with this warning enabled.
Tested by building a full release of NetBSD/i386.
2005-06-04 12:17:45 +00:00
christos
3088775912 We need a non-tool version of genassym. 2005-05-31 03:45:42 +00:00
thorpej
c4bf9a57c0 Describe TOOL_GENASSYM. 2005-05-31 02:25:36 +00:00
thorpej
deae2cc0cf Add TOOL_GENASSYM. Part of PR toolchain/30350 2005-05-30 15:52:16 +00:00
riz
fbc99af11a Provide a default definition of OBJDUMP - bsd.kmod.mk expects it.
Approved by heas.
2005-05-23 21:58:21 +00:00
lukem
156714223a Also use relative symlinks for the /usr/lib/lib${LIB}.so.${SHLIB_FULLVERSION}
symlink to ../../lib/... because runtime lookups on the former aren't
speed critical either.
2005-05-10 14:54:02 +00:00
lukem
b2536b11a5 Restore rev 1.247:
Use relative symlinks for /usr/lib/libfoo.so -> /lib/libfoo.so.M.N
This should work now that "install -l r -d destdir" works if destdir
contains a symlink.
2005-05-10 02:01:06 +00:00
tron
fce29e26d8 Honor contents of "CLEANFILES" in "cleandir" target. 2005-04-19 08:41:37 +00:00
lukem
aff82fa50e document MKINET6 and USE_INET6 2005-04-15 03:04:53 +00:00
dsl
b90eeeef12 Report when we link a program into xxx.ro (before being crunched) 2005-04-09 13:00:53 +00:00
martin
8a51929fe1 Add -fno-merge-constants (as the xsrc build does too) to make the module
loader work with the gcc versions we use now. No idea why i386 apparently
was not affected by this.
2005-04-06 08:32:11 +00:00
tron
1f47028b14 Don't use "-std=c99" for NetBSD-vax because gcc 2.95.3 doesn't support it. 2005-04-05 11:56:09 +00:00
martin
60ac75c119 sparc64 needs LOADABLE flags too 2005-03-26 10:31:51 +00:00
rtr
6fa7827891 + document SCRIPTSDIR and SCRIPTSDIR_<script> 2005-03-22 21:12:32 +00:00
tron
63b4b6820f Compile "src/x11" with "-fno-strict-aliasing" because that's what the
native build does.
2005-03-21 14:10:29 +00:00
hira
c5ebd445ba Update __vendorversion__ to 4.5.0. 2005-03-19 17:27:46 +00:00
lukem
337f8776b0 Also set SHLIBDIR to /lib if ${USE_SHLIBDIR} != "no".
This allows <bsd.lib.mk> to correctly set the RPATH of libraries that
use USE_SHLIBDIR=yes to /lib, so that dependent libraries can be found
from /lib when /usr/lib isn't mounted yet.
This was the intention of the _LIBLDOPTS support in <bsd.lib.mk>.

Fixes problem reported by Dan Carosone with when /sbin/cgdconfig is
dynamically linked against libcrypto.so but not libcrypt.so (it was
relying upon libcrypto.so to pull in libcrypt.so).
2005-03-12 13:21:12 +00:00
he
8e8728c45c Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications.  The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
2005-03-04 20:41:08 +00:00
christos
4c1f8229f5 Turn on PAM by default. Approved by core. 2005-02-28 02:28:09 +00:00
christos
1d6a9d3f17 Don't disable PAM when MKPIC=no. PAM should work with static libraries, and
this breaks PAM on programs that decide not to use PIC libraries, such as
the X server.
2005-02-24 14:56:55 +00:00
peter
1c9b56c830 Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.
2005-02-22 14:39:58 +00:00
matt
6dc6ca22f8 Add support for WARNS=4 (-std=c99) 2005-02-20 01:31:44 +00:00
christos
907dfbe7a9 Add libradius 2005-02-20 00:35:02 +00:00
wiz
ae20c95c70 MKHTML defaults to no; fix documentation (which claimed it defaults to yes). 2005-02-07 01:38:44 +00:00
rtr
8c050b7c06 + cleanup removal of -DUSE_NBSD_THREADLIB usage 2005-01-21 05:15:36 +00:00
thorpej
ed6d501758 Back out previous. The intent is for MKPAM to be "yes" and USE_PAM to
be "no".  The su(1) Makefile has been fixed to test the correct variable.
2005-01-13 00:15:21 +00:00
manu
b77a9f1e15 Put back PAM to disabled by default and add a notice explaining why it
is disabled and why it should not be re-enabled until it gets stable.
2005-01-13 00:03:56 +00:00
lukem
6ea8d362d6 Rework PAM defaults:
MKPAM=yes	# provide infrastructure by default (unless MKPIC=no)
	USE_PAM=no	# don't compile PAM support in by default
2005-01-12 00:39:48 +00:00
lukem
aa8cb2a456 If RESCUEDIR is defined, automatically add that to CPPFLAGS 2005-01-12 00:32:59 +00:00
he
ccb78245cb Add a default setting of MKPAM to "yes". 2005-01-11 16:20:49 +00:00
tron
1f93f9857c Don't define "USE_NBSD_THREADLIB" because "threadlib.h" was removed. 2005-01-11 10:39:47 +00:00
manu
f98741225d Disable PAM by default until it gets properly integrated.
Now have MKPAM=yes in /etc/mk.conf if you want to experiment with PAM.
2005-01-10 21:06:39 +00:00
lukem
7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
lukem
1227550528 Revert previous (1.258): we don't want to link .so libraries against
(non-PIC) .a libraries, and the problem which triggered the addition
of the previous has been fixed by providing librpcsvc as a .so.
2005-01-10 02:42:34 +00:00
he
67d66c86bb Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no.  Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.
2005-01-10 00:20:21 +00:00
lukem
7af4913b70 Implement <bsd.prog.mk> vars:
LIBASN1 LIBBSDMALLOC LIBG2C LIBPAM LIBSSH
2005-01-08 09:53:38 +00:00
tron
71d6312747 EOL of XFree86 3.3.6, approved by core@NetBSD.org 2005-01-07 18:56:40 +00:00
lukem
a207248574 Provide MKPAM and USE_PAM 2005-01-06 00:42:58 +00:00
lukem
72352e0662 document LIBDPLIBS 2004-12-29 14:46:24 +00:00
lukem
e0f9049e4d When setting DPADD based on LIBDPLIBS, only add the .so if it exists
and fallback to the .a instead.  This allows the use of libraries
which are .so only, have both .so & .a, and are .a only.
2004-12-29 14:41:05 +00:00
fredb
45a5ad686f Mirror Rev 1.6 in Imake.rules, addressing PR misc/28444. This implements
Thomas Dickey's idea to work around a standards mandated change to the
C pre-processor to avoid having to change dozens of ancient X man pages,
appending a space to any line in a man page that ends in backslash "\".
2004-12-02 16:33:47 +00:00
simonb
0f9fca4682 Add COPTS to AFLAGS so assembly files pick up flags like -msoft-float. 2004-12-02 00:00:41 +00:00
jmc
9bfe9b9970 Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc
c7464d49db Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
jmc
9a999c376a Convert bebox's remaining host tools over to cross tools scheme. Builds to sets
w/o error now.
2004-11-25 08:09:14 +00:00
simonb
6c2e9fc212 Add CPUFLAGS to AFLAGS as well as CFLAGS so that CPUFLAGS is used for
assembly files.
2004-10-19 01:05:40 +00:00
tron
1263e27807 Update commt about "OBJECT_FMT": only ns32k uses "a.out" these days. 2004-09-19 08:56:22 +00:00
chs
44c95f81ec turn on -O2 for hppa. 2004-08-07 21:43:18 +00:00
chs
2129a366ed turn on lint and profiling for hppa. 2004-08-07 21:42:52 +00:00
lukem
600b0d8d67 Implement LIBDPLIBS, which is a list of the tuples:
libname  path-to-srcdir-of-libname

For each tuple;
     *	LIBDO.libname contains the .OBJDIR of the library `libname', and
	if it is not set it is determined from the srcdir and added to
	MAKEOVERRIDES (the latter is to allow for build time optimization).
     *	LDADD gets  -L${LIBDO.libname} -llibname    added.
     *	DPADD gets  ${LIBDO.libname}/liblibname.so  added.
2004-08-04 08:00:27 +00:00
lukem
a606b4af8b Revert most of previous, and move the LIB<libname>?= assignments
back to bsd.prog.mk from bsd.own.mk.

pkgsrc uses <bsd.own.mk>, and setting LIB<libname> in it causes
problems with various package builds.
This should fix PR #26542 submitted by Jim Bernard.

(I'll be implementing the DPADD for shared libraries in a different
manner that generally won't depend upon ${LIB<libname>}.)
2004-08-04 05:32:47 +00:00
lukem
d57516168e Move the LIB<libname>?= assignments from bsd.prog.mk to bsd.own.mk so
that they may be used by non PROGs (e.g., LIBs).

Improve some comments.
2004-07-30 04:18:48 +00:00
thorpej
52aef894d6 Assign STOBJS the value of OBJS, and use that when referring to static
library objects, rather than using OBJS to refer to them.  This gives us
a separate variable to refer to static library objects that does not affect
profile library objects (which has POBJS) or shared library objects (which
has SOBJS).
2004-07-29 03:14:04 +00:00
sekiya
0a541ba0ea Enable "loadable module" dlopen() scheme. Necessary to crossbuild the XFree86
server on platforms that are not supported by the Metrolink module loader
(i.e., MIPS).

Enabled for sgimips in bsd.x11.mk.
2004-07-13 09:29:45 +00:00
mycroft
7c8b7720b2 Add a missing .PHONY. 2004-07-06 12:07:34 +00:00
christos
c4d334e77e check for defined before checking for empty to ease a 1.6 transition 2004-06-25 02:05:39 +00:00
jmc
567190270a If USETOOLS != yes then depend on the system tmac directory, not DESTDIR since
USETOOLS=no/never means the system groff is being used so depending on
anything except it's tmac files makes no sense (and prevents builds with
USETOOLS=no/never from working as PR#23067 points out)
2004-06-23 15:28:19 +00:00
jmc
b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
jmc
3ca8952a49 Note default for MANINSTALL 2004-06-13 08:17:22 +00:00
jmc
bfd6078e17 Clean up HOST_OSTYPE a bit more and turn any spaces into _'s as well as
stripping paren'd values from HOST_ARCH. Fixes PR#25586 for uname -p output
on linux hosts which return multi-word values
2004-06-11 07:14:16 +00:00
lukem
4fbb0461b9 Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253 2004-06-10 00:29:58 +00:00
christos
d3b5333e6b PR/25887: Peter Bex: Missing yacc dependency in bsd Make system 2004-06-09 22:45:24 +00:00
abs
a43917f536 Add TOOL_SPARKCRC. Need to clean up what happens in the non tools case. 2004-06-08 21:46:52 +00:00
lukem
2308454342 * Add MKPRIVATELIB; if not "no", act as "MKPROFILE=no MKPIC=no MKLINT=no"
and don't install the (.a) library.
  This is useful for "build only" helper libraries.
* Add some  #{  [...]  #}  comments around large conditional statements.
2004-05-23 01:45:21 +00:00
lukem
bf8a5f304d Document: CONFIGFILES CONFIGLINKS CONFIGSYMLINKS
Correct the documentation for FILES*_<fn>.
2004-05-22 16:04:58 +00:00
ross
b95d15a372 If you add a library, you need to define its DPADD symbol here.
Add LIBMAGIC.
2004-05-21 21:13:57 +00:00
lukem
466d8fda9a In UUDECODE_FILES, always use -p to a temporary file and then rename
appropriately.  This simplifies the rule (IMHO), and removes the use
of :? which is buggy on older makes...
2004-05-17 12:58:17 +00:00
lukem
5be4460d43 Support CONFIGLINKS, which is similar to LINKS, except that they're installed
with the 'configinstall' target instead of the 'install' target.
2004-05-16 09:44:38 +00:00
cl
4dd8e2b2cf use relative links: using $S fails if $S is relative to another dir
than the one where it's used
2004-05-14 14:07:46 +00:00
lukem
95820dab0e Add CONFIGFILES & CONFIGSYMLINKS; similar semantics to FILES & SYMLINKS
yet installed by 'configinstall' not 'install'.
(CONFIGFILES uses FILES{DIR,MODE,OWN,GRP,NAME}{,_*} as per FILES)
2004-05-13 13:05:53 +00:00
cl
885c0b6fc9 ``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets
2004-05-12 16:56:41 +00:00
christos
ff2dfdbba5 Add rules for RPC_CLNTFILES; suggested by Ian Zagorskih 2004-05-12 16:38:01 +00:00
lukem
e79f0736d4 define X11ETCDIR (as /etc/X11) 2004-05-12 13:49:01 +00:00
skrll
ac705457db GDB doesn't work on hppa at the moment. 2004-04-30 08:10:22 +00:00
lukem
9004725f99 When creating man pages, provide a defintion for __adminmansuffix__.
(This is a new feature in XFree86 4.4.x)
2004-04-29 00:48:04 +00:00
lukem
180444c2a0 Rework .s.{o,po,so} and .S.{o,po,so} to be more like the <bsd.sys.mk> rules:
- support ${COPTS.<fn>} ${CPUFLAGS.<fn>} ${CPPFLAGS.<fn>}
  (deficiency noted by Tyler Retzlaff <rtr@NetBSD.org>)
- use ${COMPILE.s} for .s.o .s.po .s.so (instead of ${COMPILE.S})
- don't support AINC anymore; append to AFLAGS instead

Remove .c.ln - it was a duplicate of the rule in <bsd.sys.mk>
2004-04-18 13:11:31 +00:00
lukem
7c178de782 document AS and AFLAGS. document default for CPUFLAGS 2004-04-18 13:07:00 +00:00
lukem
6d15c512f3 remove AINC support; it is now unnecessary 2004-04-18 04:32:51 +00:00