christos
153f1146ed
Use common sources with userland.
2005-12-20 19:35:26 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
dsl
7dbd0e094b
Make 'dependall' generate dependencies in these libraries.
2003-11-07 23:34:28 +00:00
perry
efd79c70c9
Add lint infrastructure
2002-11-02 07:48:17 +00:00
jmc
2229499bfb
Don't make clean and cleandir depend on the lib subdir. Just check for it's
...
existance before running the submake. This makes it possible to run a
make build (which runs cleandir before make obj) in a r/o source tree
2001-11-21 22:10:54 +00:00
sommerfeld
5348dfb6ac
Have recursive make invocations depend on the .MAKE pseudo-target so
...
make knows to handle them specially.
2000-12-05 17:01:19 +00:00
tsutsui
11c8f56d48
Revert STRIPPROG -> STRIP
2000-02-01 05:25:24 +00:00
tsutsui
e61f177ab1
STRIP -> STRIPPROG
2000-01-19 16:29:54 +00:00
drochner
192b3c733c
Build libraries for kernel/standalone code from within their compilation
...
directories and use .PATH to lookup the source files.
(Formerly, the libs were built from the source dirs, with MAKEOBJDIR
set to the compilation directory.)
This solves 2 problems:
-"mkdep" and "make" are now consistent about the file lookup, this fixes
bad interactions with amd reported in PR bin/7374 (Arne Juul) and
lossage reported by Andrew Gillham ("obj" dirs and relative paths still
don't work well together)
-kernel compile trees can be moved around without forcing a new
"make depend" - fixing PR kern/4021 by Martin Husemann
1999-05-07 14:28:50 +00:00
drochner
337bfd46a5
change handling of libkern:
...
-sys/lib/libkern builds as library per default (as it was documented all
the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
1998-10-15 18:46:37 +00:00
lukem
c9db84ecc9
distclean is a synonym for cleandir
1998-09-05 15:15:14 +00:00
cgd
26d7b63bd3
make sure that LORDER, TSORT, AR, NM, RANLIB, and SIZE are correctly
...
and consistently set when doing kernel library builds.
1998-02-07 00:11:29 +00:00
gwr
5e82d82867
Pass down the values of: AR NM RANLIB
...
(Fixes PR#4426 from SAITOH Masanobu)
Also pass down LORDER TSORT.
1997-11-04 21:18:24 +00:00
thorpej
0b07209248
Allow depend target to be parallized, from Andrew Wheadon
...
<andrew@wipux2.wifo.uni-mannheim.de>, PR #3257 .
1997-03-07 00:50:30 +00:00
cgd
72a6422a5e
allow includers to specify library-specific CPP flags via ${LIB}MISCCPPFLAGS
1997-02-16 21:25:18 +00:00
cgd
3ca5f41d59
clean up substantially. Transform clean, depend, cleandir targets from ::
...
to :, so they can be used e.g. with <bsd.prog.mk>. Standardize variable
names used to configure kernel libraries.
Variables used by these Makefile.inc's are:
S must be set to the top of the 'sys' tree.
${LIB}DST may be set to the location of the directory where library
objects are to be built. Defaults to ${.OBJDIR}/lib/${lib}.
${LIB}_AS may be set to 'obj' to build a object from the library's
object files. (Otherwise, a library will be built.)
Defaults to 'library'.
${LIB}MISCMAKEFLAGS
Miscellaneous flags to be passed to the library's Makefile when
building. See library's Makefile for more details about
supported flags and their default values.
(where LIB is KERN, SA, or Z, and lib is kern, sa, or z, depending on which
library's Makefile.inc is being discussed.)
1997-01-23 22:29:07 +00:00
christos
3463f39651
PR/2981: use ${VAR:Q} instead of '${VAR}' to avoid quoting problems
1996-12-26 21:32:37 +00:00
ws
d67d39b37c
Allow compilation of libkern as library for standalone programs
1996-09-30 15:54:35 +00:00
ghudson
a08c3a1feb
Handle relative paths to the source directory if they begin with a '.'.
1996-09-23 05:00:45 +00:00
mycroft
79e03b2967
Pass $STRIP to the sub-make.
1996-09-09 18:03:46 +00:00
mycroft
811315ca92
Add anchors so that only exactly `-I. is modified.
1996-08-10 04:01:29 +00:00
mycroft
9c5b0780c0
Convert the -I. to -I${.OBJDIR}, so that the `machine symlink is available.
1996-08-10 03:00:51 +00:00
mycroft
44f440543f
We dont need to pass down COMPATDIR and KERNDIR.
1996-08-08 15:15:16 +00:00
mycroft
3f0b5a641e
Run the child make in the source directory, so that nothing here needs to be
...
changed when the compile directory is outside the source tree.
1996-08-08 15:06:39 +00:00
mrg
663808dfc5
use ' not " when passing variables to a sub-make. pr#1199/pr#1296
1996-05-20 17:23:25 +00:00
mycroft
540f9550c0
Make `make depend' work for libraries.
1996-05-11 16:11:30 +00:00
mycroft
f96fc7f12e
Simplify, and add support for passing CPPFLAGS.
1996-02-02 20:34:38 +00:00
mycroft
209bd1b877
Build libkern as one .o file, so that all symbols defined therein are
...
always available to loadable modules.
1995-10-07 09:56:54 +00:00
christos
2cb09c2709
Add the ability to override KERNREL and KERNDST.
1995-06-26 03:25:46 +00:00
christos
fc5a8cffa2
Build libkern in the kernel compilation directory, like libcompat.
1995-06-24 20:31:12 +00:00
mycroft
ee9082a163
Only build the version of the library that's needed.
1994-12-31 04:26:58 +00:00
cgd
aa9eacdd59
new RCS ID format.
1994-10-26 06:39:02 +00:00
ws
e33a014618
Use $(MAKE) instead of make
1994-01-09 17:22:54 +00:00
davidb
3a435f99f9
Changed to use make's new .OBJDIR
1993-12-28 10:59:05 +00:00
cgd
0be07477eb
use ${MAKE} rather than "make", as suggested by Roland McGrath
1993-12-22 04:58:02 +00:00
cgd
9f8465b49c
use obj.${MACHINE} dirs to compile into
1993-10-23 02:33:12 +00:00
cgd
c667517e13
punt on doing minimal work in favor of less output in 'happy' case.
1993-10-13 12:19:37 +00:00
cgd
2fcc3cd764
add a bunch of .NOTMAINs
1993-10-13 06:17:16 +00:00
cgd
15f1203e06
slight cleanup, and ... (gasp) add comments
1993-10-13 05:55:19 +00:00