Commit Graph

1990 Commits

Author SHA1 Message Date
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
uebayasi
0cd6b4b257 Define lists of MK* variable names as _MKVARS.yes and _MKVARS.no. They're
referred to by syspkg.
2009-12-02 14:11:20 +00:00
uebayasi
f7393e813f Add ${TOOL_PKG_CREATE}. 2009-12-01 09:09:40 +00:00
uebayasi
d166c4bf28 Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
2009-11-30 16:13:22 +00:00
uebayasi
1dfaf75755 Remove an unneeded test (.if defined(V)) in .for v in ${V} ... .endfor.
Tested by running build.sh distribution.
2009-11-29 16:00:00 +00:00
mbalmer
228477b2fe Add the xf86-input-elographics driver to i386 builds. 2009-11-28 16:48:25 +00:00
mbalmer
d0bf5c8f87 Link the xf86-input-ws X.Org input driver to the build and add it to the lists
that also have the wsmouse driver.

xf86-input-ws adds support for touchpanels in X11 that report absolute position
data through wscons(4), e.g. the extended ums(4) driver.  xf86-input-ws was
written by Matthieu Herrb for OpenBSD.

Please remember to also update xsrc before the next system build.
2009-11-28 12:10:24 +00:00
pooka
972900e4ca Move -mcmodel=kernel CFLAGS from bsd.klinks.mk to amd64/include/Makefile.inc
to avoid having the kernel toolchain flags split over a billion different
files.
2009-11-27 13:50:29 +00:00
tsutsui
b00cd20126 If CPPFLAGS or CXXFLAGS already contains -nostdinc or -nostdinc++,
don't add ${CPPFLAGS_ISYSTEM} or ${CPPFLAGS_ISYSTEMXX} to refer
${DESTDIR}/usr/include or ${DESTDIR}/usr/include/g++.

This change might cause errors on some MD stand dir, but in that case
each Makefile should be fixed to search proper system include paths
by -Ipath option in own CPPFLAGS.
2009-11-27 11:44:36 +00:00
pgoyette
135ea6d8da Add a period at the end of a sentence. 2009-11-15 14:59:47 +00:00
tron
c3b1e69a6b Remove "USE_SSP_DEFAULT". 2009-11-12 14:46:37 +00:00
tron
d6e33297fb Revert SSP changes because at least rmind@, pooka@ and haad@ consider
5% more performance more important than the gain in security.
2009-11-12 14:30:34 +00:00
tron
559872b175 Invent a new flag "USE_SSP_DEFAULT" which defines whether we want to use
SSP for building the whole source tree. Set this to "yes" for
NetBSD/amd64 and NetBSD/i386. It is now possible to get the old
behavior (build libs and certain programs with SSP) by setting
"USE_SSP_DEFAULT" to "no".
2009-11-12 13:22:34 +00:00
tron
47db09157e Fix broken conditional to get manual builds (not using "build.sh")
working again.
2009-11-12 08:51:50 +00:00
tron
840a46601a Enable Stack Smash Protection (SSP) by default for NetBSD/amd64 and
NetBSD/i386 as previously discussed on the "port-amd64" and
"port-i386" mailing lists. No objections from the core team.

Thanks a lot to Tobias Nygren for helping me with the benchmarking
and to Christos Zoulas for fixing SSP problems in cgd(4).
2009-11-11 16:35:45 +00:00
macallan
e58b11d12a add igs driver for Xorg 2009-11-10 21:41:31 +00:00
skrll
25edd46c0c Move the kmodule linker script source into sys/modules/xldscripts. It is
not part of binutils and definitely not GPL v3.

Discussed with mrg.
2009-11-10 14:47:52 +00:00
skrll
29d2620fc4 IA64 doesn't have SSP. 2009-11-09 15:58:09 +00:00
mrg
3ebc75ef44 update for xorg-server 1.6.5 2009-11-09 07:38:14 +00:00
skrll
c93ac2bc84 Update for new binutils location.
XXX Why is kmodule under binutils anyway?
2009-11-08 22:27:09 +00:00
skrll
3966cd5848 Switch everyone to binutils 2.19. 2009-11-05 20:06:29 +00:00
skrll
130f3380aa Switch mips to binutils 2.19. 2009-11-04 17:02:19 +00:00
joerg
ee9832f794 Add lintmanpages later to target to ensure that MKMANDOC is set. 2009-10-24 13:34:50 +00:00
joerg
cf15d921b1 Do not run mandoc for lintmanpages if MANPAGES is empty.
Add it to the list of targets to recurse for.
2009-10-23 23:12:10 +00:00
joerg
3b68c94681 Add MKMANDOC option to trigger building cat pages and HTML pages with
mdocml.  Add a lintmanpages target for developers to check man pages
with the strictest settings of mandoc.
2009-10-23 22:14:37 +00:00
skrll
b2084f243f Switch powerpc to binutils 2.19. 2009-10-22 21:55:34 +00:00
joerg
940b6167fd Add tool definition for mandoc in ascii (plain text), html and lint
mode.
2009-10-21 22:36:28 +00:00
apb
87272391e8 If ${NETBDSRCDIR}/../xsrc exists, then use it as the default value
of X11SRCDIR.  If it doesn't exist, then use /usr/xsrc as before.

OK mrg
2009-10-10 19:05:28 +00:00
haad
3b6a60fe7d Enable MKZFS for i386 and amd64 so zfs tools and modules will be included in
a daily builds and anyone can test zfs for NetBSD easier.
2009-10-09 00:26:53 +00:00
haad
fbd1c01117 Add zfs sets and needed veriables to hook zfs into the build. ZFS on i386
need still one fix othervise it should be ready for testing.
2009-10-05 22:32:58 +00:00
skrll
d7567abc6b Switch amd64 to binutils 2.19.1. 2009-10-01 09:12:44 +00:00
tsarna
a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
skrll
61d74f6e74 Switch arm and armeb to binutils 2.19.
Tested on my cats and all other platforms build tested.
2009-09-26 07:28:38 +00:00
skrll
bceded4e69 Switch m68k to binutils 2.19.
Tested on mac68k by martin@. All other m68k platforms build tested.
2009-09-22 09:57:28 +00:00
uwe
d85ac884c9 Switch sh3eb to binutils 2.19.
Compile-tested for mmeye.
2009-09-22 01:28:50 +00:00
uwe
d04b778cf5 Switch sh3el to binutils 2.19.
Boot-tested on landisk.
2009-09-21 17:20:16 +00:00
skrll
905441e356 Switch vax to binutils 2.19. 2009-09-19 14:53:12 +00:00
skrll
d50428f757 Switch sparc and sparc64 to binutils 2.19.
Thanks to martin@ for testing.
2009-09-19 09:00:58 +00:00
skrll
25242842fd Move alpha to binutils 2.19. 2009-09-17 18:21:38 +00:00
mrg
cdca6f8c29 switch port-sparc over to Xorg by default. 2009-09-16 06:10:52 +00:00
skrll
08d80ad4aa Switch hppa to binutils 2.19.
There is a lot of rump breakage for hppa. Hopefully it will be fixed soon.
2009-09-12 07:21:09 +00:00
skrll
3c21953b90 Switch i386 to binutils 2.19. 2009-09-09 10:38:35 +00:00
skrll
8a770313a3 Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.
2009-09-08 07:08:00 +00:00
macallan
3555383568 add sunleo 2009-09-04 20:19:04 +00:00
dyoung
71fe64733e Let us use MKKMOD=yes to leave the kernel modules out of the
distribution.
2009-08-30 01:49:41 +00:00
mrg
207f7c3b4c update for xorg-server 1.6.3. 2009-08-22 01:41:03 +00:00
macallan
0075a7985d add suntcx 2009-08-20 03:49:34 +00:00
skrll
530afcf96c Add HAVE_BINUTILS and default to 2.16 2009-08-18 14:53:00 +00:00
mrg
2f79d21a3f we have xorg 1.6.2 now. 2009-07-24 04:46:53 +00:00
mrg
6773cdf6e4 XORG_CURRENT_VERSION is now 1.6.2. 2009-07-09 07:30:17 +00:00
mrg
2e277c2d9d add transforms for new GLU, GLUT and xorg-server pkgconfig files. 2009-06-23 04:40:29 +00:00
mrg
5b9c71717d implement MKX11FONTS for Xorg. 2009-06-18 06:36:58 +00:00
mrg
74da3bca40 update XORG_VERSION_CURRENT.
update the pkgconfig sed script to handle newer pixman.

XXX: should make the pkgconfig sed script barf it it ends up leaving
XXX: behind something that looks like "@.*@", i think.
2009-06-11 05:34:22 +00:00
mrg
2575b988d6 add xkeyboard-config. 2009-06-11 05:30:15 +00:00
mrg
097191f1bd don't define FONTCACHE here any more, for Xorg. 2009-06-10 08:28:20 +00:00
mrg
23b4863243 +dri2proto -printproto 2009-06-10 04:11:01 +00:00
mrg
50ea2508ff sync the list of valid xorg packages:
- add libpciaccess
- remove Xp XprintUtil XprintAppUtil
2009-06-10 02:05:45 +00:00
plunky
39aa7ec964 remove libsdp as improved functionality has been enabled in libbluetooth. 2009-05-12 18:07:54 +00:00
ad
e8f7cd4ed0 Enable -mtune=nocona by default on x86. I have tested on a range of CPUs
and this seems to give the best results.
2009-05-04 21:32:31 +00:00
apb
41d8d87770 Switch from sha1 to sha256 in the METALOG. The same information
also ends up in /etc/mtree/set.* after installation.
2009-05-01 20:47:53 +00:00
apb
91fe922f05 Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.
2009-04-10 16:16:12 +00:00
bouyer
b6373695b9 Revert accidental switch of alpha to Xorg. We don't have the XdecNetBSD
and XalphaNetBSD drivers in xorg yet.
Fixes release build for alpha.
2009-04-10 16:14:54 +00:00
perry
6b7db9a3b4 Add a _ARRANFL for the flags for invoking ar as ranlib.
Will be used only for Makefile.rump for now.
2009-04-01 17:47:39 +00:00
perry
0ef5ffa1dd add -n to gzip invocation 2009-03-31 21:00:34 +00:00
drochner
a6062b3d34 Use "i486" as GNU_ARCH for i386 so that the toolchain and libraries
can use instructions which were not available on the original i386
(eg cmpxchg). Due to some strangeness in gcc's i386 support this needs
an extra --with-arch=i486 configure argument for gcc to have the desired
effect, see my post "i386 vs i486, some inconsistencies" to tech-toolchain
some weeks ago.
I'm not happy to break compatibility, but since (a) kernel support
for i386 was removed and (b) i387 code was put into libm this is
just another coffin nail.
The gain is besides consistency and more efficient code that intel
atomar intrinsics can now be used by gcc. (which would need runtime
library support otherwise)
2009-03-27 19:36:55 +00:00
tsutsui
7f79f861d8 Include <bsd.own.mk> for ${NETBSDSRCDIR}, ${MACHINE}, ${MACHINE_CPU} and
${MACHINE_ARCH} variables.
2009-03-15 05:57:54 +00:00
tsutsui
628341218b Create symlinks in !make(obj) && !make(clean) && !make(cleandir) case
as most Makefiles for standalone programs do.
2009-03-15 05:48:02 +00:00
perry
1fd3f53afd Add a MKARZERO flag, which invokes ar(1) with the new D flag when it
is set to "yes" -- defaults to "no" except for build.sh builds. This
results in a deterministic .a file rather than one that reflects
timestamps and permissions on the source files.

Also, clean up the ar flags we're using, and remove a redundant use of
ranlib that on a modern POSIX ar can be done with the "s" flag.

Discussed on tech-toolchain
2009-03-13 16:23:31 +00:00
apb
a599e86f4b Add "-", "_", and "A-Z" to the set of allowed characters in the
result from `uname -p`.  We already have a platform with an underline
("x86_64"), and the other chars seem harmless.
2009-03-09 06:25:51 +00:00
apb
5ebdda3e89 In build.sh and bsd.own.mk, if uname -p fails, or prints "unknown", or
prints something that does not look like an identifier, then use uname
-m instead.  (Cygwin prints "unknown", and OpenBSD prints a long string
containing several spaces; this code should handle both.)
2009-03-06 16:29:40 +00:00
isaki
1fe1c1d477 Make configlinksinstall work correctly even if CONFIGSYMLINKS is
defined but empty.
2009-03-01 09:42:41 +00:00
joerg
9610cac10c When processing texinfo sources, use --no-version-header to make the
build reproducable.
2009-02-28 19:18:52 +00:00
sketch
0d9ab2b40e Make grep a host tool. 2009-02-25 20:36:44 +00:00
macallan
6f06755f15 Switch sgimips over to Xorg 2009-02-24 04:04:40 +00:00
abs
278c6d188a Cut all non Xserver building ports across to Xorg, tested on vax and
a selection of m68k ports.

The remaining XFree using ports are:
    acorn32 amiga cats dreamcast ews4800mips hpcarm hpcmips hpcsh
    mac68k netwinder newsmips ofppc pmax sgimips sparc sun3 x68k
2009-02-17 00:02:32 +00:00
lukem
c0d472c616 Enable -Wsign-compare for WARNS=4 (and above).
Test compiled on i386 and amd64; there may be some stragglers
on other platforms.

Note: -Wall has this by default in gcc4, and we explicitly disable it at
WARNS=1 (i.e., -Wall -Wno-sign-compare).  A goal is to reduce the WARNS level
where this feature is enabled, so we can eventually remove -Wno-sign-compare.
2009-02-12 22:49:05 +00:00
tron
11cc2a433c Install the "sony-misc" font from the X.org distribution.
Patch supplied by Takeshi Nakayama in PR xsrc/40476.
2009-01-25 23:11:16 +00:00
rmind
6d73ddd355 Revert path of modules back to "/stand". 2009-01-24 22:14:44 +00:00
bouyer
7e113f2eda Add support for X11FLAVOUR=xorg to NetBSD/alpha. Tested on PWS500
(ev56, handled as non-BWX by Xorg) and XP1000 (ev6, BWX). Also
tested by Rafael Ruiz on a AlphaStation 255 (thanks !).
non-PCI adapters are not supported; someone should make these work
as a wsfb device.
2009-01-24 17:24:52 +00:00
rmind
f0e51651e4 Change path to kernel modules from "/stand" to "/kernel".
Needs to go in before 5.0.  Proposed on <tech-kern>.
2009-01-24 00:29:12 +00:00
christos
fc0e181680 Document USE_FORT. 2009-01-22 14:04:15 +00:00
he
a5ec128bee If we have a SHLIB_VERSION_FILE, add is as a dependency for the
library.  This is mostly a convenience, so that you can trigger
a shared library rebuild by touching the shlib_version file, it
should not otherwise impact the build one way or the other.
2009-01-17 12:09:58 +00:00
he
79663d7eed Move _LIBLDOPTS and LDFLAGS to a spot behind LDADD when making a
shared library.  This is done so that -L options pointing into
DESTDIR will come after -L options pointing into our object tree
for shared libraries this shared library depends on.

This makes a difference when shared library major numbers are bumped
(as was recently done in our tree), and you build into an already-
populated DESTDIR, because otherwise the old major version shared
libraries will be picked up, because the new ones have not yet been
installed at this stage. This will in all probability lead to
conflicts later on when linking programs, where one would try to
mix new and old major versions for the same shared library.

I *hope* this will not have any negatively impact by moving other
order-dependent options around; local tests with rebuilds did not
uncover any problems I could see.

OK'ed by lukem@
2009-01-17 12:07:59 +00:00
pooka
53313f280c Add comment requesting modifications to __archivebuild be reflected
in the rump build.
2009-01-08 20:03:59 +00:00
pooka
dfa6b36e0e Move list of rump-uses-kmod archs to bsd.own.mk for wider consumption. 2008-12-30 21:31:10 +00:00
agc
72d7476867 Explain what the MKLVM switch does 2008-12-23 02:55:23 +00:00
agc
a796e01c33 Put MKLVM in order in the list of variables 2008-12-23 02:54:11 +00:00
haad
c9d0c62a0c Merge the haad-dm branch to -current. This branch adds LVM functionality to
the base NetBSD system. It uses Linux LVM2 tools and our BSD licensed
device-mapper driver.

The device-mapper driver can be used to create virtual block devices which
maps virtual blocks to real with target mapping called target. Currently
these targets are available a linear, zero, error and a snapshot (this is
work in progress and doesn't work yet).

The lvm2tools adds lvm and dmsetup binary to based system, where the lvm
tool is used to manage and administer whole LVM and the dmestup is used to
communicate iwith device-mapper kernel driver. With these tools also
a libdevmapper library is instaled to the base system.

Building of tools and driver is currently disable and can be enabled with
MKLVM=yes in mk.conf. I will add sets lists and rc.d script soon.

Oked by agc@ and cube@.
2008-12-19 15:24:03 +00:00
pooka
e49857aeaf create i386 link for amd64. per discussion with mrg. 2008-12-08 22:47:55 +00:00
pooka
b14e457e9c Don't use -isystem in rump builds. This ensures that only headers
in the kernel tree are used.
2008-12-08 13:10:21 +00:00
mrg
bcb1925cba add LIBISCXX. if it is != "no", use ${CXX} instead of ${CC} to link
shared libraries.  use it for the one c++ library we have.

fixes PR#39936.
2008-12-06 19:32:05 +00:00
cube
11851cadd9 Implement FILESBUILD_<file> to allow a FILES element to be built through a
target.
2008-12-05 18:51:16 +00:00
hubertf
740e3df3fd Work around a bug in Solaris' shs (both /bin and /usr/xpg4/bin)
where "for d in ; ..." results in a syntax error.

Suggested by apb@
2008-11-30 22:05:56 +00:00
cube
33bcabe95b Move cleanextra to the very ends in case another included file wants to add
to it even if it was initially empty.
2008-11-24 02:13:08 +00:00
cube
b25860850d Allow the use of NOSTATICLIB along with LIBISPRIVATE to build private libs
that are suitable to be linked into a shared lib.
2008-11-24 02:01:46 +00:00
pooka
e10fef6cd2 Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code.  File system rumps explicitly need
to include rumpvfs from now on.
2008-11-19 14:10:48 +00:00
mrg
867022784c revert sparc back to default of XFree86 at the request of macallan. 2008-11-15 11:27:49 +00:00
apb
c89f08d79b Add support for new MAKEVERBOSE levels 3 and 4. The complete list is now:
0   Minimal output ("quiet")
 1   Describe what is occurring
 2   Describe what is occurring and echo the actual command
 3   Ignore the effect of the "@" prefix in make commands
 4   Trace shell commands using the shell's -x flag

The default remains MAKEVERBOSE=2.
2008-11-13 20:40:11 +00:00
pooka
b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
cube
3b773d2296 Add MesaGLUT to the list of X11SRCDIR.<package> variables. 2008-11-11 16:09:53 +00:00
macallan
2cee05c1b0 it's ag10e not agten 2008-11-11 03:39:08 +00:00
mrg
e5bc8e2c94 fix a couple of minor errors picked up by he@. thanks! 2008-11-09 23:07:22 +00:00
mrg
9c8df5ee67 - retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful
2008-11-09 23:02:28 +00:00
macallan
e1d1db9e9e add a couple driver names for Xorg 2008-11-06 22:13:58 +00:00
elad
fb62056e51 Don't build kernel modules with PIE.
Discussed with and okay christos@.
2008-11-05 00:54:25 +00:00
macallan
aaac5b14c0 add suncg6 driver 2008-10-29 23:46:52 +00:00
agc
bbfcbb24a0 Flick the puffs switch, and set MKPUFFS on by default. 2008-10-29 06:20:27 +00:00
macallan
aa4b1d80e4 add sunffb driver 2008-10-29 03:11:27 +00:00
mrg
bafe7cb90b - enable 32-bit library builds on amd64 and sparc64
- add 3 new top-level targets:
    do-compat-lib-csu
    do-compat-libgcc
    do-compat-lib-libc
  and run them before "do-build" if ${MKCOMPAT} != "no"
2008-10-27 22:32:51 +00:00
apb
2962a4be8e Always define TOOL_* variables in bsd.own.mk, not in bsd.sys.mk.
Previously, they were defined in bsd.own.mk if USETOOLS=yes, but in
bsd.sys.mk if USETOOLS!=yes.  This caused makefiles that did this:

	.include <bsd.own.mk>
	FOO != ${TOOL_BAR} args...

to work in the USETOOLS=yes case but not in the USETOOLS!=yes case.
2008-10-26 23:13:24 +00:00
apb
6710f563cb Set HOST_SH?=/bin/sh unconditionally. Previously, it was conditionally
set to /usr/bin/bash if HOST_CYGWIN was defined, but now build.sh
tries to set HOST_SH appropriately.

Remove the HOST_CYGWIN variable, which was not used for any other purpose.

Document that HOST_SH should be an absolute path.

THis was proposed in tech-toolchain.
2008-10-26 15:51:20 +00:00
mrg
e365204b08 add MKCOMPAT, to build 32 bit libs. default to no for now for everyone. 2008-10-26 07:09:11 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
mrg
1d7afdb8cd allow _GCC_*CRT* defines to be overridden in the in-tree toolchain case. 2008-10-25 19:11:28 +00:00
apb
8140020f95 Remove AWK variable, which is no longer used. All previous users
now use TOOL_AWK instead.
2008-10-25 18:29:03 +00:00
apb
b45673f53b Add a NOSUBDIR variable for bsd.subdir.mk. If NOSUBDIR is defined
then SUBDIR is ignored.
2008-10-25 14:58:00 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
apb
60f5d15a00 Define TOOL_AWK. 2008-10-19 19:44:47 +00:00
apb
00f32f6e16 Add the NOINFO variable, which works just like all other NOxxx variables. 2008-10-19 19:29:43 +00:00
christos
81dd08df0d handle assembly files for MKPIE 2008-10-19 15:22:50 +00:00
christos
66d46cebd1 make .a archives PIC for MKPIE 2008-10-17 17:29:39 +00:00
apb
1f3d5128aa Document the HOST_xxx and TOOL_xxx variable naming convention. 2008-10-17 15:04:18 +00:00
christos
18c51ff05b Provide a way for a program to override the PIE flags. 2008-10-16 14:36:42 +00:00
christos
1269d9a570 don't compile/link libraries with pie 2008-10-15 17:31:50 +00:00
cube
988ef44d13 Rework the way manual pages are handled.
- .man.pre files are treated just like .man files.
 - Makefiles are offered the choice of using sed or cpp for the
   transformation.  MKXORG will default to sed, MKX11 to cpp.
 - At least for now, versions of packages are not tracked individually.
2008-10-14 23:33:55 +00:00
mrg
d5ae492949 find the kmodule ldscript in the source tree again.
should fix a build issue reported by jmcneill.
2008-10-14 18:31:42 +00:00
apb
4c441fdf08 Use "?=", not "=", to set default values for the TOOL_* variables
added in the previous commit.
2008-10-14 07:24:34 +00:00
apb
59b0ced7eb Add missing TOOL_* variables to bsd.sys.mk and document them in
bsd.README.  Previously, several of these variables were present in
bsd.own.mk but not in bsd.sys.mk or bsd.README.
2008-10-13 18:24:21 +00:00
apb
bdcb00dc94 Remove references to TOOL_BEBOXELF2PEF and TOOL_BEBOXMKBOOTIMAGE,
which were obsoleted in May 2008.
2008-10-13 18:23:47 +00:00
apb
bbaac8b3bb In bsd.sys.mk and bsd.own.mk, sort lists of TOOL_* variables.
In bsd.README, document all TOOL_* variables that are set in bsd.sys.mk.

There are several TOOL_* variables that are set in bsd.own.mk, but not
set in bsd.sys.mk and not documented in bsd.README.
2008-10-13 15:29:22 +00:00
mrg
8b825b9876 add X11SRCDIR.xf86-video-r128 2008-10-12 23:11:25 +00:00
mrg
86340158d0 - install ldscripts on sparc64
- move ldscripts to /usr/libdata/ldscripts
2008-10-12 23:00:53 +00:00
apb
1d782af00e Remove the definition of HOST_SED. HOST_SED was previously used only in
tools/atf-compile, which has now been adjusted to use TOOL_SED.
2008-10-05 20:20:55 +00:00
apb
2d81fb994e Document TOOL_SED, which has been defined in bsd.sys.mk for more than
two years.
2008-10-05 20:17:16 +00:00
joerg
39741d2848 Hook up libfetch and pkg_install update. 2008-10-02 17:54:51 +00:00
apb
520cbbf81f Build strfile both as a host tool and as an installed program:
* in games/fortune/strfile/Makefile, build strfile as a
  regular program instead of as a host tool;
* add tools/strfile directory to build strfile as a host tool;
* in tools/Makefile, add strfile to SUBDIR list;
* in BSD.*.mk, define TOOL_STRFILE variable;
* in games/fortune/datfiles/Makefile, use TOOL_STRFILE when creating
  databases at build time;
* in distrib/sets/lists/games/mi, mention usr/games/strfile.
2008-09-26 18:23:09 +00:00
mrg
39434e7052 add X11SRCDIR.xf86-video-nvxbox 2008-09-21 02:12:25 +00:00
mrg
533a79fd9d add X11SRCDIR.xf86-video-mach64 2008-09-21 01:46:40 +00:00
christos
99ca374317 support per file lex and yacc prefixes. 2008-09-19 22:54:55 +00:00
cube
e8a45a91fe Play it safe and change the sed script so that -E isn't needed. 2008-09-15 18:21:48 +00:00
rtr
ec7c336281 replace XTHREAD_CFLAGS with _REENTRANT instead of _POSIX_THREAD_SAFE_FUNCTIONS
as is done in pkgsrc.
2008-09-15 08:05:19 +00:00
cube
cbc74b28eb Make sure pkgconfig files we install have RPATH directives.
${TOOL_SED} -E is authorized, right?  Right?
2008-09-15 02:37:54 +00:00
cube
b11433d4c1 Add logic to install pkgconfig files from X.Org sources. Initial idea from
Tyler Retzlaff.

No, this is not code I am going to be proud of.  Meanwhile, anyone is
welcome to work on a mknative-xorg script and make sure that outputs across
all archs are consistent, and use it to generate a bunch of other stuff such
as the Imake config file and so on.  That will do for now though.
2008-09-13 04:28:37 +00:00
joerg
5af38558ac Add MKSTRIPIDENT to remove the RCS IDs from binary programs and shared
libraries for space-constraint systems. The description is based on the
feedback of hubertf@, the logic on input from lukem@

This obsoletes the removal of LIBC_SCCS and SYSLIBC_SCCS for libc builds.
2008-09-09 11:54:19 +00:00
kent
9c8aa6615e Remove -Wno-pointer-sign and -ffreestanding from CXXFLAGS. g++
doesn't support for them.
2008-09-07 15:54:52 +00:00
lukem
935f649468 Define __appmansuffix__=1 in the man page cpp(1) translation. 2008-09-07 14:29:38 +00:00
rtr
a51f302f6a add XLOCALE.DEFINES for locale path defs, easier to manage them here
than deep in the reachover.
2008-09-07 13:10:22 +00:00
mrg
b2e7ac5a11 add X11SRCDIR.xinput 2008-09-06 05:27:46 +00:00
lukem
df53be0111 refer to mk.conf(5) in a couple of places 2008-09-05 22:26:28 +00:00
christos
320991dd0c remove NVI; it is the default now. 2008-08-31 05:40:15 +00:00
lukem
e425ce2906 Enable MKHTML by default; we now install the HTML version of the man
pages as well as the source & catman versions.
Add "htmlinstall" to default MANINSTALL, so MKHTML will operate correctly.
2008-08-31 01:21:41 +00:00
mrg
668eaf0f7f add X11SRCDIR.xkeyboard-config 2008-08-30 09:13:35 +00:00
lukem
3c0dc4341a Use ${MANDIR} instead of /usr/share/man as part of the default ${HTMLDIR} 2008-08-29 04:52:44 +00:00
lukem
5efefa3743 Force a failure if both MKX11 and MKXORG are set to != "no". 2008-08-28 23:32:51 +00:00
mrg
710bacd4ef add a bunch of more variable documentation wrt xorg 2008-08-28 07:53:53 +00:00
mrg
8f32579127 - s/X11R6/X11/ in a couple of comments.
- set X11ROOTDIR?=/usr/X11R7 if MKXORG != "no".
- MKXORG does not need two default values.
2008-08-28 07:53:34 +00:00
lukem
d6e6997551 Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.
2008-08-28 07:21:49 +00:00
mrg
1bae5733ee xorg server is version 1.4.2 2008-08-28 07:18:19 +00:00
mrg
6f734b8231 update a comment example 2008-08-28 07:17:06 +00:00
rtr
44c3e543f8 use ${X11USRLIBDIR} instead of hard-coded /usr/X11R6/lib when building
${LIB.foo} vars
2008-08-27 08:22:20 +00:00
lukem
4f84d43824 Rework MKHTML (HTML manual pages) implementation to behave like
the manpages and catpages builds, with similar target names (etc).
2008-08-27 02:28:34 +00:00
lukem
9614d5d9bd Fix problem I introduced in rev 1.231 on 2008/08/25 where ${_PROGLDOPTS}
and -L${_GCC_LIBGCCDIR} were appearing in the link line before ${LDADD},
so -L${DESTDIR}/lib and -L${DESTDIR}/usr/lib were being used before
local -L library paths.
Fixes ntpd/ntpdate failure noticed by Valeriy E. Ushakov <uwe@NetBSD.org>
2008-08-27 01:15:22 +00:00
lukem
c7dbe9e5b7 expand on the behaviour of MKDEBUGLIB 2008-08-27 00:16:09 +00:00
lukem
a6de443cac Default MKHTML to no, as per bsd.README.
(The default and documentation may change to yes in the near future,
as the build infrastructure for HTML man pages is fixed.)
2008-08-26 23:47:14 +00:00
lukem
aa9ba46b38 Change the message when creating BUILDSYMLINKS from "create" to "symlink".
(Arguably more meaningful)
2008-08-25 08:11:04 +00:00
lukem
6cedae1847 Always link with: -Wl,-rpath-link,${DESTDIR}/usr/lib -L${DESTDIR}/usr/lib
Fixes problem with MKDYNAMICROOT=no triggered by libraries that depend
on other libraries.
Related to PR 33503.

Clean up setting of _CCLINK to always add the appropriate -B options.

Simplify the link rule for a program.
2008-08-25 08:03:14 +00:00
gmcgarry
ce206e318d Honour HAVE_PCC 2008-08-24 06:27:00 +00:00
christos
4b67625a5e fix debugging library build. 2008-08-13 16:36:15 +00:00
lukem
01ca4a276a Fix installed symlinks for LIBISMODULE=yes.
Further fixes to support for SHLIB_MAJOR set without SHLIB_MINOR.
2008-08-10 11:06:43 +00:00
lukem
e24bdb26eb When building a .so, don't require the library to have a minor version.
Prevents a "stat: Too many levels of symlinks" build error.
2008-08-10 10:42:01 +00:00
lukem
b88ccbbf16 Implement LIBISMODULE:
If not "no", install as ${LIB}.so (without the "lib" prefix),
	and act as "MKDEBUGLIB=no MKLINT=no MKPICINSTALL=no
	MKPROFILE=no MKSTATICLIB=no".
	Default: no
2008-08-10 09:25:04 +00:00
joerg
9259cd05bd When compiling C++ sources and BUILDSEED is set, pass down
-frandom-seed with a reduced version of .ALLSRC and .TARGET
as argument.  This allows bit-identical builds of C++ files.
2008-08-04 16:02:25 +00:00
mrg
f0245e7653 add X11SRCDIR.* for xf86-{video,input}*. 2008-08-02 06:59:24 +00:00
mrg
f4766ba44d add X11FLAGS.DIX and X11INCS.DIX for use with Xorg.
fix the version to 1.4.2.
2008-08-02 04:36:12 +00:00
mrg
bf84f2d816 add X11SRCDIR.pixman 2008-08-02 04:35:41 +00:00