Commit Graph

174 Commits

Author SHA1 Message Date
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
jtc 293b4a9e72 Strip *.sh when constructing OBJS from SRCS.
This will allow us to clean up makefiles that build a script by munging
a template (uusched, genclass, neqn, etc.).
1994-06-28 05:16:12 +00:00
cgd 9f7c821782 don't chown the symlink, when HIDEGAME causes a symlink to be made to dm.
4.4-based FS code _follows_ the symlinks on a chown(2) call.
1994-06-18 20:57:49 +00:00
cgd 53d6c3f81d fix the last to do the right thing for dependencies 1994-05-24 09:37:30 +00:00
deraadt 1b67bc1b3c LIBSKEY 1994-05-24 06:30:57 +00:00
jtc 1e65a5b9e8 Single source file programs are now compiled into object files before they
are linked.  This change halves the time it takes to rebuild all of the
NetBSD sources when only the C library is "touched"; but only takes about
one percent more disk space.
1994-05-22 23:03:58 +00:00
chopps 568355ca48 relink (recompile) single source programs when crt0.o is updated. 1994-04-06 06:37:38 +00:00
mycroft 41172b0ea8 Remove *.core on clean. 1994-03-24 16:11:38 +00:00
cgd 38a3d1726d kill install -d's. 1994-02-09 23:50:32 +00:00
cgd e83349cd3f add LIBKVM 1994-01-28 00:16:29 +00:00
cgd 11cbea7c88 librpc doesn't exist anymore 1993-11-10 03:32:48 +00:00
cgd 9cf550f92a ad LDSTATIC flag, so static linking can be made one-stop shopping.
use "setenv LDSTATIC" to make *everything* dynamically linked,
setenv LDSTATIC -static for everything statically linked, or unset
it for default behavior.
1993-11-08 02:18:41 +00:00
cgd f74961d747 LIBTERM pointed at nothing, but was meant to point to libtermcap.a... 1993-10-07 02:12:18 +00:00
cgd cf4f8c1089 always define LIBCRYPT 1993-10-07 01:35:30 +00:00
mycroft 30beb79c09 Make sure we don't recurse into subdirectories if Makefile specified `install'
target.  (It's usually blank and is specifically to avoid doing this...)
1993-08-17 17:00:39 +00:00
mycroft 3e94657cf6 Automatically include bsd.subdir.mk for backward compatibility. 1993-08-15 21:53:05 +00:00
mycroft f5b2ed3238 Don't automatically include bsd.subdir.mk in bsd.prog.mk and bsd.lib.mk.
Put back .MAIN in bsd.man.mk, and be careful not to include ../Makefile.inc
a second time.
1993-08-15 20:59:36 +00:00
mycroft 3eebe31396 Move man rules to sys.mk.
Use bsd.subdir.mk for building subdirectories.
Don't forget to remove x.cc and x.C when using SHAREDSTRINGS.
Make ${PROG} always depend on ${LIBCRT0}.
Don't duplicate code between cleandir and clean.
Move tags target to bsd.dep.mk.
Move STRIP to bsd.own.mk.
Remove redundant definitions of {BIN,MAN}{DIR,GRP,OWN,MODE}.
Move {LIB,DOC}{DIR,GRP,OWN,MODE} defaults to bsd.own.mk.
1993-08-15 20:42:39 +00:00
mycroft 6a1bdd6fc0 Abstract out dependency stuff, and add RCS identifiers. 1993-08-15 19:37:04 +00:00