thorpej
8bfeb9a270
Use a little transitional hack to determine if we use -isystem
...
or -idirafter. Use the former only of USE_NEW_TOOLCHAIN, since
-isystem causes the old toolchain to bomb out when building
libstdc++.
2001-11-19 02:46:50 +00:00
tv
6699960dbf
C/..$/.c/ -> C/\..$/.c/
2001-11-14 23:06:26 +00:00
tv
c8c3cf578b
Move the DESTDIR-based nostdinc logic to bsd.lib.mk and bsd.prog.mk where
...
it belongs (with the native target compile rules).
2001-11-14 21:49:53 +00:00
tv
0812154e48
Use INSTALL_FILE/INSTALL_DIR as appropriate.
2001-11-02 18:10:00 +00:00
tv
1129ed4afe
Improve readability and reduce redundant redundancy in share/mk; add some
...
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.
Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.
Reviewed by christos.
2001-11-02 05:21:47 +00:00
tv
ccfbe64e81
Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
...
bin/14187 and lib/14239.
Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.
2001-10-19 15:55:52 +00:00
tv
84a997640e
Set .NOPATH on program to build to make sure it goes in .OBJDIR.
...
Problem noted by <seebs@plethora.net>.
2001-09-25 02:19:26 +00:00
lukem
13a5c8134c
fix previous (hi thor!) - $OBJS and $CLEANFILES might be empty, and
...
rm needs some files to delete...
2001-09-24 09:18:05 +00:00
tls
38809e7a94
Split "cleanprog" target apart: now you can zap only object files or
...
CLEANFILES (needed to fix crunchgen lossage).
2001-09-24 01:04:32 +00:00
thorpej
913b93d749
Add LIBPCI.
2001-09-13 23:23:26 +00:00
tv
d0f9e45413
Rather than explicitly saying "clean cleandir:" all the time, make clean
...
a dependency of cleandir (so that "make cleandir" implies "make clean").
2001-08-14 07:02:13 +00:00
tv
dd70bf30ad
Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
...
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).
2001-06-01 17:49:32 +00:00
sommerfeld
263f3e581d
Suppress duplicate entries in ALLFILES, FILES, INCS, DEPINCS, INFOFILES,
...
NLSALL, CATPAGES, MANPAGES, HTMLPAGES, and SCRIPTS.
2001-05-08 03:19:51 +00:00
jmc
788f1c082f
Wrap target() checks around afterdepend rule as some Makefiles override this
2001-02-19 07:56:14 +00:00
itojun
ccfc624fe0
fix typo in LIBSSL decl. it made programs with DPADD+=${LIBSSL} to build
...
every time we type "make". From: bernd
2001-01-26 09:42:49 +00:00
christos
1e8e6439aa
use the new .if commands(<target>) directive so that we don't have to
...
change Makefiles.
2001-01-14 20:49:36 +00:00
christos
c4a3a5ddb2
fix thinko: test for the existance of the target before we define it...
2001-01-14 09:53:57 +00:00
christos
89923c1ef5
Alter previous redefined target protection. If the ${PROG} target is defined,
...
add the dependencies as usual, but don't add the commands. This avoids
having to change all the Makefiles that redefine the PROG target.
2001-01-14 09:40:35 +00:00
christos
3769adf593
allow programs to override the program target.
2001-01-14 06:17:27 +00:00
mrg
9354cc7a64
add missing $LIBCRYPTO_RC5 and $LIBCRYPTO_IDEA
2001-01-08 07:41:10 +00:00
mrg
762bc3c71a
add missing $LIBSSL
2001-01-08 07:36:10 +00:00
garbled
9c926b4602
Add LIBCDK and LIBFORM definitions
2001-01-04 23:52:00 +00:00
itojun
caf7b11063
add ${LIBINTL} for use with DPADD.
2000-10-31 10:49:01 +00:00
deberg
ad0e0b565c
fix typos, PR 11159
2000-10-07 20:26:36 +00:00
erh
c2256d0630
For the case when DESTDIR is set: move the -L${DESTDIR}/usr/lib after ${LDADD} so any -L directories set in LDADD are searched first to avoid possibly linking against old versions of libraries.
2000-06-25 05:07:22 +00:00
thorpej
c55e4231ce
Sync up the LIB* list.
2000-06-19 19:00:14 +00:00
mycroft
750b27b82a
Use ${.ALLSRC:T} when doing the generated variable name lookups, so that it
...
DTRT for generated files in and obj directory (or accessed via .PATH).
2000-06-10 14:12:03 +00:00
mycroft
b124cdf163
Abuse .USE some more.
2000-06-06 09:53:29 +00:00
mycroft
befa5650d3
Minor rearrangement.
2000-06-06 09:22:00 +00:00
mycroft
34e1bda46a
Use ODE make(1) features to eliminate extra variables and move several things
...
outside of .for loops. (Needs more work to completely eliminate .for.)
XXX Don't look at this stuff. It will make your head hurt.
2000-06-06 05:40:47 +00:00
mrg
114bdbd5eb
use -rpath-link rather than -R when linking objects using a DESTDIR.
...
this replaces the previous change as that ended up adding
$DESTDIR/usr/lib to the runtime path of every binary created, which
is bogus and dangerous.
2000-04-14 03:36:13 +00:00
mycroft
1f813e767e
When linking with $DESTDIR, use an explicit -R to get library dependencies
...
correct.
2000-03-25 23:15:13 +00:00
veego
70b32a2849
Remove unused libahdi.
...
It will be replaced in the future with a more generic libdisklabel.
2000-03-07 20:54:57 +00:00
jdc
2133a0f528
Add libahdi entries.
2000-02-05 20:54:12 +00:00
eeh
5d315f245c
Add some support for FCode binaries.
2000-01-23 19:38:53 +00:00
mycroft
3e13200b73
Make dependall' play nicely with SUBDIR, using a hack similar to
realinstall'
...
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.
2000-01-22 19:31:00 +00:00
assar
39e002e7ea
all: depend on ${SCRIPTS} so that they get generated if they need to
2000-01-16 03:34:27 +00:00
blymn
38bd927ca8
Added libmenu library.
1999-11-23 13:22:37 +00:00
perry
9ad44ce879
Add a "dependall" target, which does a "make depend" and then "make all"
...
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".
1999-09-14 01:31:11 +00:00
fredb
1008436afc
Permit "make all install", as well as "make foo install" (where foo would be
...
installed by "make install") without setting of BUILD. All cases where BUILD
is already set are unchanged from the old behavior.
"make all install" is now practically equivalent to "make BUILD= all install",
but without actually setting build.
Fixes pr's 8313, 3894.
1999-09-04 21:48:33 +00:00
simonb
7987e3b34d
Add ${INSTPRIV} to ${INSTALL} commands.
1999-08-21 06:17:45 +00:00
itojun
5e4f18efbb
add LIBIPSEC for use from DPADD.
1999-07-01 20:19:18 +00:00
lukem
497d11782a
* Add support for MKDOC MKLINKLIB MKLINT MKMAN MKNLS MKOBJ MKPIC MKPICINSTALL
...
MKPROFILE MKSHARE, which default to `yes' unless an equivalent NOxxx
variable is defined.
* Add MKCATPAGES, which if "no" prevents catpages from being built or installed
Users should use "MKxxx=no" instead of "NOxxx=" in /etc/mk.conf, because
this allows easy override on the make(1) command line (e.g 'make MKSHARE=yes'
to override MKSHARE=no in /etc/mk.conf).
1999-02-12 01:10:06 +00:00
tv
bd8a69f172
libbfd_pic.a is no longer installed; remove ${LIBBFD} define.
1999-02-10 20:55:56 +00:00
christos
f16578a952
PR/2936: Brian C. Grayson: Avoid truncating precious files when installing
...
and the filesystem is full. Added ${RENAME} flag to install, which when set
to -r installs on a temporary file and then renames to the final destination.
${RENAME} is currently set to nothing in bsd.own.mk, but one can turn it
on in /etc/mk.conf.
1999-02-04 11:58:30 +00:00
jonathan
7574d9a952
Do DESTDIR support for crtbegin/crtend on all ELF ports (adds mips).
1998-11-07 07:10:19 +00:00
christos
ddb60058ff
Use preserve flag in install.
1998-09-28 08:13:37 +00:00
ross
08d3e70e4f
Define a LIBBZ2?=... for use in DPADD=... lines.
1998-09-10 00:40:33 +00:00
lukem
24bd0530c9
add distclean as a synonym for cleandir
1998-08-09 14:46:19 +00:00
tv
482063559a
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
...
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
tv
875f72aa79
Revert. This broke too much in the build tree, and a better solution
...
needs to be created. (The existing situation breaks a lot too.)
1998-04-01 16:58:33 +00:00
tv
755c261508
Fix .y rules to DTRT with possibly generated .h files. See mail on
...
tech-toolchain for a very detailed explanation of this. In short, add
a .y.h rule identical to the .y.c rule and make the .y.c rule rename
the .h file; also, clean the .h file in CLEANFILES.
1998-04-01 15:23:36 +00:00
cgd
d74926452e
echo the lint command line when making 'lint'.
1997-11-03 22:51:23 +00:00
lukem
6f77030130
add ${LIBOBJC}
1997-10-28 12:46:30 +00:00
mycroft
1e9e92665f
Several changes:
...
* Allow bsd.man.mk to be included separately.
* Always include bsd.own.mk and bsd.obj.mk.
* Include bsd.man.mk and bsd.nls.mk even if NOMAN or NONLS; just turn off
building of the affected files instead.
* Require bsd.subdir.mk to be included explicitly.
(Will make appropriate changes to Makefiles shortly.)
1997-10-11 08:16:24 +00:00
gwr
42a70b47e1
Add $LIBBFD
1997-09-29 15:02:49 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
5fd7ce7066
These updates to the build allow building against include files
...
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
kleink
4c60ea6dc2
Add libposix.
1997-05-18 20:21:53 +00:00
mycroft
a9b9dbd457
Do LINKS and SYMLINKS after FILES and INCS.
1997-05-17 16:43:31 +00:00
mycroft
e30142d40d
Remove unneeded .SUFFIXES lines, and move .s and .S closer to .o to give the
...
right preferences.
1997-05-17 02:01:07 +00:00
mycroft
3ae4ef8d4c
Fix typo in previous.
1997-05-09 13:40:34 +00:00
mycroft
4e5d05c9cc
Automatically add the .c files corresponding to .l and .y files to DPSRCS.
...
Automatically add DPSRCS to CLEANFILES.
1997-05-09 13:25:46 +00:00
mycroft
fde14a0e77
Remove cruft.
1997-05-09 07:56:00 +00:00
mycroft
ca03cbbd4d
Oops; rearrange dependencies to get things built early enough.
1997-05-09 05:43:41 +00:00
mycroft
f0a00ea4d3
Make sure INCS and SRCS are built if necessary.
1997-05-09 05:17:29 +00:00
gwr
386c8864bc
Set the .NOPATH flag for ${OBJS} (from Christos).
1997-05-08 21:21:25 +00:00
mycroft
b2a77a6aa4
Don't use _SUBDIRUSE outside of bsd.subdir.mk.
1997-05-07 17:06:16 +00:00
mycroft
bb8827f7d1
Various simplifications.
1997-05-07 15:53:28 +00:00
mycroft
1bd348b5f9
Shuffle some .PHONYs around, to work better with `-t'.
1997-05-07 08:42:18 +00:00
mycroft
2da111c521
Make most of the install targets .PRECIOUS.
1997-05-06 21:29:33 +00:00
mycroft
5acae7b6ea
Add a pile of missing .PHONYs.
1997-05-06 20:54:31 +00:00
christos
b339c21257
Add ${LIBNTP}
1997-04-18 14:30:24 +00:00
thorpej
985170db35
- Properly depend on crtbegin.o and crtend.o for platforms that use
...
them (currently Alpha and PowerPC)
- STRIP -> STRIPFLAG
1997-04-17 06:40:32 +00:00
mikel
43ba9b9b69
don't allow override of all: target
1997-04-03 06:53:18 +00:00
mikel
76cfd073e9
merge lite-2 changes (mostly SCCSids)
1997-03-29 08:02:45 +00:00
christos
cef52070f9
Put the FILES generated rules in a separate .mk file since both bsd.prog.mk
...
and bsd.lib.mk use them.
1997-03-27 17:33:34 +00:00
mycroft
5fa188a26f
Make the SCRIPTS case mimic the FILES case more closely, so we can override
...
the destination direectory, etc.
1997-03-27 11:05:32 +00:00
mycroft
0d6b2973f3
Remove knowledge of HIDEGAME from here.
1997-03-27 09:10:09 +00:00
christos
25f6ec749f
make rules update:
...
- add UPDATE and BUILD features
- add new FILES, INCS, SCRIPTS variables
- allow man pages source installation
1997-03-24 21:54:12 +00:00
perry
1d624f4f7e
Fix SYMLINKS not to include DESTDIR in the link itself
1997-03-22 22:33:53 +00:00
perry
de40e6afd4
add SYMLINKS, by analogy to LINKS. Vetted by Christos.
1997-03-13 02:45:58 +00:00
cgd
1d20ab5d2e
if 'clean' is not already defined, rather than simply defining it with
...
a bunch of rules, define a clean{kmod,lib,prog} target with the rules,
and have both clean and cleandir depend on that. That eliminates a bug
where 'cleandir' in a directory which included e.g. bsd.prog.mk but which
also had subdirs would 'make clean' all the subdirs and then 'make cleandir'
all ofthe subdirs. It also allows Makefiles to add more dependencies
to 'clean' after inclusion of the make template.
If 'clean' is already defined, the behaviour is the same as it used to be.
1997-01-22 01:34:11 +00:00
cgd
414b38f4b2
add an afterdepend target (a la the one in bsd.lib.mk) that processes
...
the .depend file to add <filename>.ln for each <filename>.o as an
object file which has the given dependencies (in addition to
<filename>.po and <filename>.so, which were already there).
1996-12-20 16:39:03 +00:00
mikel
6d303ec98e
add missing LIBPCAP definition.
1996-12-13 08:02:52 +00:00
mrg
b081de7226
add libz and libwrap
1996-11-26 17:37:39 +00:00
thorpej
416caa144c
Use ${INSTALL} rather than "install".
...
From Simon J. Gerraty <sjg@zen.void.oz.au>, PR #1458 .
1996-10-18 02:34:42 +00:00
jtc
4a437cf6dd
Sort LIBFOO definitions and add LIBY; Reported by Mike Long <mike.long@analog.com> in PR #2301 .
1996-04-08 21:19:26 +00:00
christos
70174eb6fe
Added include file <bsd.sys.mk> that contains lex and yacc "parallel aware"
...
rules. These rules are not turned on by default; they are enabled by setting
the PARALLEL variable.
1995-10-22 00:45:53 +00:00
cgd
6ae995da62
oops; fix an rm that might be empty
1995-06-25 22:29:02 +00:00
cgd
f386420eb0
update lint rules, but keep linting disabled
1995-06-24 08:27:37 +00:00
mycroft
27d2a9e05f
Define LIBEDIT.
1995-06-10 20:21:05 +00:00
jtc
e3c663eb4c
.include <bsd.nls.mk> unless NONLS is defined.
1995-04-21 20:29:40 +00:00
cgd
dbcf91bb89
specify man pages differently, and document how.
1994-12-22 09:20:40 +00:00
mycroft
6df8c5e52c
Include bsd.own.mk earlier.
1994-08-24 19:10:48 +00:00
cgd
65e0c25657
fix from christos, for progs w/o objects
1994-07-20 04:57:12 +00:00
mycroft
2bc3c3a671
Pull libraries from ${DESTDIR} if set. Kill LDONLY, which is unused and
...
probably not useful anyway.
1994-07-06 04:13:37 +00:00
cgd
f0fb7b6706
fix modify-info-nothingness-then-substitute probelm that broke genclass build
1994-06-30 06:35:50 +00:00
cgd
61d2ae79f4
RCSID frobbing, and minor sanity adjustments.
1994-06-30 05:31:04 +00:00
cgd
b233f19e46
don't be careless with _SUBDIRUSE
1994-06-30 05:21:28 +00:00