Commit Graph

1060 Commits

Author SHA1 Message Date
agc c05de915ca + clean up the English in one sentence
+ sync with reality, and document "MKMAN= no" in preference to "NOMAN= noman"
+ get in quick before the 80-column police notice what we were doing
+ spell "existence" correctly
2001-02-01 20:27:06 +00:00
itojun 6ecd41c538 add LOCALEDIR and related declarations. 2001-02-01 19:29:59 +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
itojun 9f845d90a1 note that MKNLS controls build of /usr/share/locale too 2001-01-24 07:57:07 +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
sommerfeld e538aac13b Don't send .WAIT into the bitbucket 2001-01-09 02:08:32 +00:00
itojun 561c43d3fa use MACHINE_CPU=arm on both arm26/32. 2001-01-08 13:28:08 +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
itojun 9833445e10 declare MACHINE_CPU. MACHINE_CPU will be generated from MACHINE_ARCH,
to identifiy CPU type in build tree (like mipse[lb] -> mips, sh3e[lb] -> sh3).

XXX what should we do about arm and sparc?
2001-01-08 07:28:07 +00:00
blymn 2ba6155111 Added libform. 2001-01-05 12:59:25 +00:00
itojun 083a373737 s/.INIT/.BEGIN/ for NetBSD make 2001-01-05 00:25:59 +00:00
garbled 9c926b4602 Add LIBCDK and LIBFORM definitions 2001-01-04 23:52:00 +00:00
itojun 180f4678a4 die if MACHINE_ARCH == sh3 2001-01-04 15:17:41 +00:00
itojun c5fb04a57e sh3 split (MACHINE_GNU_ARCH) 2001-01-04 10:29:11 +00:00
itojun 973149dcb3 sh3 split 2001-01-04 08:32:02 +00:00
simonb 15f972c29b Switch NetBSD/hp300's OBJECT_FMT to ELF 2001-01-02 04:34:37 +00:00
sommerfeld bdeb8ccecf Restore the intermediate subdir-${targ} targets since they're
referenced elsewhere; fixes problem of afterinstall running too soon.
2001-01-01 15:27:31 +00:00
sommerfeld 92b01a91b8 Correct typos (SUBDIR, not SUBDIRS).
Document use of .WAIT in SUBDIR
2000-12-30 14:34:51 +00:00
sommerfeld fd805ed302 Change ${PRINTOBJDIR} to a "safer" but more complex form which avoids
infinite recursion when directories reference each other or themselves
(most common when a FOOOBJDIR is defined in a common Makefile.inc).
2000-12-30 14:34:09 +00:00
sommerfeld 3459e6c590 Change SUBDIR expansions so that a .WAIT in a subdirs list turns into
.WAIT (rather than a ${targ}-.WAIT) in the ${targ}'s subdir dependancy list.

This allows .WAIT to be used in SUBDIR as a synchronization barrier
for recursive parallel builds.
2000-12-30 14:32:04 +00:00
itojun f9d029c7cc document host build tools (like rpcgen) in bsd.README. PR 11839 2000-12-30 04:11:34 +00:00
itojun 87f5fc92dd document MKLOCALE is not a variable to control build behavior. per PR 11839. 2000-12-29 03:18:32 +00:00
itojun 9ad9be84eb declare ${MKLOCALE}. PR11801. 2000-12-23 22:47:28 +00:00
scw 9b343e1abc NetBSD/mvme68k's OBJECT_FMT is now officially ELF. :-) 2000-12-07 08:35:15 +00:00
sommerfeld 304faf39ff define PRINTOBJDIR as a canned known-safe print-objdir invocation. 2000-12-06 03:21:33 +00:00
mycroft 60e1ee6e37 This is *purely* anal-retentive, but: remove extra spaces in the generated
commands in the previous.
2000-12-05 22:18:30 +00:00
mycroft 4a6da470ba When handling ELF library symlinks, rather than removing and recreating the
symlink, instead create a temporary one ending in `.tmp' and `mv -f' it.
This way there is no window where libc isn't loadable (and thus
`make -j 100 install' works for libc).
2000-12-05 22:12:37 +00:00
itojun caf7b11063 add ${LIBINTL} for use with DPADD. 2000-10-31 10:49:01 +00:00
thorpej 99de26f4ee Repair a dual-.if construct that certainly didn't work with
any version of make(1) on my systems...
2000-10-11 05:45:50 +00:00
is 2e08b549a5 Format string cleanup, by sommerfeld. 2000-10-10 20:41:20 +00:00
deberg ad0e0b565c fix typos, PR 11159 2000-10-07 20:26:36 +00:00
sommerfeld abff7e84fd If FORMAT_AUDIT is set, and WFORMAT is set and > 1, turn on
-Wnetbsd-format-audit for extra-stringent format checking.
WFORMAT belongs in individual makefiles and/or Makefile.inc files.
FORMAT_AUDIT should go in mk.conf if you're doing format-string auditing.
(set WFORMAT=1 in individual makefiles if a program is
not security critical and is doing bizarre things with
format strings which would be even uglier if rewritten)
FORMAT_AUDIT may go away in time (i.e., default to on)
2000-10-04 19:27:45 +00:00
itojun 5b88ba6121 remove obsoleted crypto-related variables. 2000-09-30 12:27:35 +00:00
itojun e5e807d114 always compile RSA into libcrypto.
MKCRYPTO disables the whole crypto tree, and in that case,
we will not have RSA (nor libcrypto) with us.
2000-09-30 12:21:51 +00:00
itojun 8d26d03189 repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t.  (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default.  build them separately as
libcrypto_{rc5,idea}.a.  put dummy function, which is "warning to stderr
and exit(1)".  NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.
2000-09-30 00:23:28 +00:00
phil fe4560a9a3 Get the correct command line using groff instead of nroff. 2000-09-26 15:33:28 +00:00
phil ec49e039c2 Add rules to make and install html pages in /usr/share/man/html* 2000-09-22 05:37:57 +00:00
jlam 8edf0a98a0 Correct description of when "NOPIC" is set. 2000-09-10 19:10:50 +00:00
bjh21 b5279973df Switch arm26 to -O2. Most of my kernels are compiled with this anyway,
and gcc's code generation should be the same as for arm32, so I think this
is safe.
2000-08-22 17:38:49 +00:00
itojun 424b5f77fb MLINK optimization based on timestamp. 2000-08-13 06:56:25 +00:00
itojun 531e380d08 do not test $UPDATE nor file existence, on "MLINKS" installation.
the check will leave original manpage and linked manpage unsynchronized,
as we use hard link instead of symlinks.

this backs out 1.37 -> 1.38 change.
2000-08-13 06:36:29 +00:00
gmcgarry 68e607a368 Remove executable permission from src/lib/checkver. 2000-08-09 23:41:24 +00:00
msaitoh d5567fbc4d sh3 port is incomplete, so add NOLINT=1 and NOPROFILE=1
(and NOPIC=1 if OBJECT_FMT==COFF)
2000-08-02 20:04:45 +00:00
mycroft 320dc0b012 Build shared libraries on sparc64. 2000-07-26 02:21:21 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
mrg 01875cae18 simplify previous. 2000-07-19 14:16:22 +00:00
eeh 04de183b83 Tell gas how to make PIC objects on sparc64. 2000-07-17 16:49:30 +00:00
christos 4c668e29d9 PR/10556: Veego: Shared library support was broken if shlib_version file
was not present.
2000-07-14 19:53:04 +00:00
cgd 4aa53dcd31 test -h, not test -L. 2000-07-07 04:35:35 +00:00
matt 3b3ee7da25 Add NetBSD/vax ELF hook. 2000-07-06 16:48:48 +00:00
christos 921df2e6f1 add support for teeny dewey numbers; cleanup duplicated variables. 2000-07-03 21:08:55 +00:00
bjh21 f42e9888c5 Add GNU_ARCH.arm26 2000-06-27 21:12:42 +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 cdc96f602d Garbage-collect old KERBEROS* switches. 2000-06-23 06:14:33 +00:00
thorpej acc9b0f304 Remove the bsd.crypto.mk section, and describe the new MK... switches
related to system crypto support.
2000-06-23 06:11:05 +00:00
thorpej df83a2a3cd Add MK... variables to enable/disable various aspects of building
crypto support into the system.  See share/mk/bsd.README for more
a full description.
2000-06-23 06:01:10 +00:00
thorpej e7d6b96938 Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +00:00
thorpej 78d67d6053 Add print-shlib-major and print-shlib-minor targets. 2000-06-19 19:35:05 +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 27bcc551c6 Do `install-info --remove' after installing the info file. 2000-06-10 04:56:59 +00:00
mycroft 2eaf9707e2 Rearrange slightly to get rid of unneeded conditionals (and make this
*slightly* less painful to trace through, though not much).
2000-06-08 03:51:56 +00:00
mycroft dfad196789 Rework to not use the `files' crap. It requires far too much klugery to
actually get the semantics right.  As a bonus, the info directory is not
reordered when using UPDATE any more, if files are not actually reinstalled.
2000-06-08 03:30:58 +00:00
mycroft 78e7ae14b9 The previous commit was *definitely* wrong. It indicates an out of date
make(1).
2000-06-08 03:05:17 +00:00
matt 84ad7d0a8d More lossage. You need to make the directory each catalog will go into. 2000-06-07 17:28:52 +00:00
matt ce4415cde0 Don't know if this is a side effect of the recent makes changes but
set FILESDIR_${F} for info files.
2000-06-07 16:29:11 +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 9994843c59 Fix some breakage with directory that have no subdirectories. 2000-06-06 08:54:06 +00:00
mycroft 602ebf1e8d Oops; fix a subtle bit of semantics that was broken in the previous. 2000-06-06 06:49:39 +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
mycroft 58b1f972c2 Oops. DTRT with directory names with dashes (e.g. for crypto-*). 2000-06-06 05:39:26 +00:00
mycroft d1460458fc A few changes to decrease parsing time and memory usage. 2000-06-06 05:33:58 +00:00
thorpej 84543d59da Make the fact that we disable -Wuninitialized explcicit in the Makefile,
rather than relying on a compiler hack to do it for us.
2000-05-09 00:15:55 +00:00
sjg 3540a44721 correct description of KERNSRCDIR and others 2000-05-07 01:20:47 +00:00
sjg d14a51faf9 Document bsd.kernobj.mk 2000-05-07 01:19:58 +00:00
sjg 940f61650e if make(obj) then use MAKEOBJDIRPREFIX regardless 2000-05-06 07:41:59 +00:00
matt b5db9f5e6e Implement my MKLINKLIB=yes fix a bit differently. Don't include ${OBJS}
in ${ALLOBJS} if MKLINKLIB=yes.  This allows Makefiles to continue to
modify ${OBJS}.
2000-05-03 15:15:50 +00:00
matt 1fef86f176 rework slightly so that when MKLINKLIB=no only the shared objects are built.
(building normal objects when they are never used really sucks on slow build
machines).
2000-05-03 03:44:12 +00:00
sjg 45fb67b360 remove/change missleading comments 2000-05-03 00:10:33 +00:00
simonb b155979066 Add HTMLDOCDIR pointing to /usr/share/doc/html. 2000-05-02 11:44:20 +00:00
sjg 44f0af2b1f Allow optimizer/debug flags to be changed on command line without
breaking everything.  Eg. use DBG="-O0 -g" when debugging something.
2000-05-02 03:44:36 +00:00
sjg a434bb7045 Added bsd.kernobj.mk to centralize the magic for the location
of kernel configs and compiles.  Relies on BSDSRCDIR being set
which is now handled by src/Makefile.inc if need be.
2000-05-02 03:43:15 +00:00
dmcmahill 7d8f383dc6 Change -fpic to -fPIC. Change was approved by mycroft. 2000-04-29 17:41:11 +00:00
tron 8427714121 Add "dependall" target. 2000-04-28 10:47:34 +00:00
simonb 1177aeba7c White space bogons (double spaces, spaces instead of tabs). 2000-04-24 14:22:05 +00:00
simonb db352c9bba Change SYMLINKS so that the link isn't recreated if it already points
to the right place (much the same as bsd.obj.mk already does).
2000-04-23 07:58:17 +00:00
mrg 72cbcc0079 fix an error in the previous 2000-04-16 08:37:27 +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
mrg 1ae7478b2a fix long standing bug in `make build' with $DESTDIR:
- during `make build' after /usr/share/mk has been installed, call
  make with `-m $DESTDIR/usr/share/mk'.
2000-04-10 14:47:22 +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
aidan 64f6f24aa6 Allow absolute directories in SUBDIR. There's probably a better fix that
can go in 'make'.
2000-03-11 14:51:40 +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
mycroft dc75306e58 Make sure the `rm' and `ln' for a link are in the same shell command.
(The reason for this is obscure...)
2000-02-26 19:02:40 +00:00
wiz 9b73fe4714 removed 'UVM?= YES' 2000-02-20 06:50:54 +00:00
erh a2802fd5fa Add NOPATH to prevent files in the serach path from interfering with what we're building. 2000-02-19 23:57:12 +00:00
erh 0d07e9caed Add NOPATH to keep *.cat files in the search path from interfering with the build. 2000-02-19 23:02:17 +00:00
erh ad351344c0 Add NOPATH to prevent .cat* files in the search path from interfering. 2000-02-19 22:54:08 +00:00
erh 6092e1aa2a Add NOPATH for all output files to prevent their presence in the search path from causing problems. 2000-02-19 05:36:23 +00:00
tsutsui 7c3ebc156a pica no longer exists, and arc has already switched to UVM.
XXX We still need "UVM?= yes" ?
2000-02-19 02:10:31 +00:00
itohy 62efa4eac6 s/MAKOBJDIR/MAKEOBJDIR/
Pointed out by Katsuomi Hamajima.
2000-02-18 06:09:11 +00:00
drochner 72db33dc5a fix link creation:
-put "echo"s for the daughter Makefile into a subshell to get them all
 into the Makefile (instead of stdout - should fix PR misc/9336 by
 Bernd Ernesti)
-change operator for "realall" back to ":" - rules are supposed to
 accumulate, and "::" clashes with the definition in <bsd.own.mk>
-call sub-make with the "all" target to make sure we don't get just
 the first rule
2000-02-10 18:18:01 +00:00
sjg 5c4b588d66 Fixed handling of MAKEOBJDIR so that it matches make(1)'s expectations.
Added handling of MAKEOBJDIRPREFIX.
In both cases we simply need to mkdir the appropriate path if it does not
exists.
2000-02-08 12:38:16 +00:00
jdc 2133a0f528 Add libahdi entries. 2000-02-05 20:54:12 +00:00
tsutsui c539ff5d84 STRIPPROG -> STRIP 2000-02-01 06:00:35 +00:00
mycroft 6235a29e6b Fix a bogon that caused some symlinks to not be installed. 2000-01-24 06:54:27 +00:00
eeh 5d315f245c Add some support for FCode binaries. 2000-01-23 19:38:53 +00:00
mycroft 43244e5049 Do the NEED_OWN_INSTALL_TARGET klugery for depend and all, too, so this works
with pkgsrc.
2000-01-22 19:53:53 +00:00
mycroft fe5f9c4b53 Adjust symlink crap for all/realall changes. 2000-01-22 19:45:41 +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
jlam f4b2073531 bsd.prog.mk doesn't define/use STRIP anymore -- it's now STRIPFLAG 2000-01-17 21:21:55 +00:00
abs a4cc9c62f3 remove duplicate += of OBJS, introduced in 1.158 - fixes PR #8487 2000-01-17 18:37:23 +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
sommerfeld 7a458244ef improve text describing BSDSRCDIR/BSDOBJDIR 2000-01-08 01:41:13 +00:00
drochner 84ed277b8d correct confusing example, closes PR misc/9135 by Andreas Gustafsson 2000-01-06 19:09:35 +00:00
sommerfeld 26d13bd6c3 When building obj symlinks, if there's already a link pointing at the right target,
do nothing rather than deleting and recreating an identical link.
1999-12-04 02:44:07 +00:00
sommerfeld 3e76523ff8 Attempt to document what bsd.obj.mk does. 1999-12-01 03:33:52 +00:00
sommerfeld 1b914a5db2 Add MKOBJDIRS make variable to bsd.own.mk, defaulting to "no" but
overrideable in mk.conf

Document in bsd.README; this is distinct from "MKOBJ", which controls
whether "make obj" does anything.

In the top-level makefile, if MKOBJDIRS != "no", do a "make obj" at an
appropriate point during a "make build".
1999-11-30 16:16:41 +00:00
simonb 3047c747cf Add a MKPICLIB variable. If set to "no", don't build an _pic.a library
and build shared objects from the .a library.  A symlink is installed
in /usr/lib so that the name "libfoo_pic.a" still exists for third party
software that explicitly wants an _pic.a library.
1999-11-28 04:50:41 +00:00
blymn 38bd927ca8 Added libmenu library. 1999-11-23 13:22:37 +00:00
tron e6896dc7c0 Add missing "\" in two line shell command. 1999-11-16 13:15:09 +00:00
minoura 094fe1d972 Pass -traditional-cpp to mkdep for assembler files,
as in the actual compilation (${COMPILE.S} rule in sys.mk).
1999-11-16 08:18:34 +00:00
matt 999a010a4b VAX should use -O2. (why don't all ports?) 1999-11-15 06:14:23 +00:00
jdolecek 3ab0a83b70 merge build rules for files ending .cc and .C
add support for C++ source files ending .cpp and .cxx
1999-11-13 14:53:09 +00:00
jdolecek 13c9f44ec9 don't depend on ${PROG} for ``unload'' target - we don't need the lkm compiled
to do the unload
1999-11-02 22:42:51 +00:00
msaitoh e49b15da29 add GNU_ARCH.sh3=sh 1999-10-06 18:24:00 +00:00
wrstuden 1a546b9c98 Zap proginstall and scriptinstall - they don't make sense for hostprog. 1999-09-24 17:48:57 +00:00
wrstuden 9229eeaa2b Add KMOD_LOADFLAGS to the load target. With this, lkm's in /sys/lkm/... can
more readily depend on each other.

An lkm which depends on another lkm now only needs to set

KMOD_LOADFLAGS= -A../../path/to/other/lkm's/${KMOD}

and the lkm will link against the other lkm's symbols. Obviously the other
lkm had better be loaded. ;-) Note: the -A option to modload was pre-
existing. This change makes it possible for users of this file to take
advantage of it.
1999-09-22 18:06:21 +00:00
sommerfeld eabdb3b0c8 Define CONFIG, so it can be overridden for cross-builds. 1999-09-16 00:28:31 +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
chs 21eedb0ec1 the PMAP_NEW option is gone as the new interface is no longer optional. 1999-09-12 01:19:23 +00:00
christos 3d2671a09d sort the object file build so that we get better buffer cache behavior.
[from perry, with fixes from me]
1999-09-12 00:31:34 +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
kleink bb0106aee8 When test(1)ing for a symlink, use the -h primitive instead of -L. Although
the latter is supported in our test(1), the former is more portable, and is
defined in 1003.2bD3 and SVID4.  Addresses PR kern/8225 from Andrew Cagney.
1999-08-22 14:02:34 +00:00
sommerfeld 62ea23a965 Add OBJCOPY 1999-08-21 14:17:07 +00:00
simonb c31f7f0416 Document the UNPRIVILEGED make variable. 1999-08-21 06:19:33 +00:00
simonb 7987e3b34d Add ${INSTPRIV} to ${INSTALL} commands. 1999-08-21 06:17:45 +00:00
simonb f9bc9307df If UNPRIVILEGED is defined, set ${INSTPRIV} to -U. Passed to install(1)
so that it doesn't try to set the user or group of the destination
file(s).
1999-08-21 06:16:21 +00:00
sommerfeld e09aca5470 Use (if defined) instead of obj.foo or obj
when building object directories
1999-08-21 00:41:41 +00:00
simonb 22066837c7 Make -r the default for RENAME, as per discussion on tech-install. 1999-08-16 13:57:03 +00:00
sommerfeld d5c8aa5ff2 correct previous fix:
- add CLEANDEPEND variable for stuff which should be cleaned out
in "cleandepend" phase.
- add it to the files removed during the cleandepend phase.
1999-08-11 02:00:15 +00:00
mrg 30c19fc81a update CRYPTO example to use ".sinclude" 1999-07-26 02:01:47 +00:00
wrstuden 6703225f00 Add bsd.hostprog.mk, a makefile for making programs used during
the build which will run on the build machine.
1999-07-14 20:20:05 +00:00
wrstuden 5b112fce77 Re-arrange location of "-nostdlib" in DESTDIR case so that cross-ld's
won't name the output file "stdlib".
1999-07-14 20:18:07 +00:00
thorpej c410486d29 Document bsd.crypto.mk, and update the OBJECT_FMT entry. 1999-07-13 17:58:42 +00:00
thorpej c3de1759c7 Install bsd.crypto.mk. 1999-07-12 22:06:25 +00:00
thorpej f77d35e72c Makefile fragment used to determine the path to crypto code in the
source tree.  Allows CRYPTOBASE to be set in mk.conf or environment.
If it's not set, it searches for: crypto-us, crypto-intl in that order.

Setting CRYPTOBASE to none forces a no-crypto build.  EXPORTABLE_SYSTEM
is supported for backwards-compatibility.

Will be used in a forthcoming mega-commit which significantly improves
the build process when building a crypto-enabled system, and allows
for the international crypto sub-tree to be seamlessly integrated into
the build process.
1999-07-11 20:17:01 +00:00
christos 63eda1d356 Introduce a second level of WARNS for even more paranoia 1999-07-08 01:55:38 +00:00
fvdl 454190a76b Switch the i386 port to ELF. 1999-07-05 09:13:04 +00:00
itojun 5e4f18efbb add LIBIPSEC for use from DPADD. 1999-07-01 20:19:18 +00:00
danw 3128e0f6f9 Remove the NOPROFILE=1 for powerpc 1999-06-26 20:04:49 +00:00
kim 04d4cbe3af Oops, PWD is really something else in most environments.
Call this variable PAWD instead.
1999-06-10 20:48:28 +00:00
tls 4d8eb5755d Fix a typo which caused "make obj" to try to *execute* the direcroty it was in. 1999-06-10 20:34:26 +00:00
simonb 3a3605e823 Use ${SHLIB_VERSION_FILE} as the location of the shared library version
file.  Pass this to checkver with the new -v option as well.
1999-06-10 00:40:05 +00:00
simonb d73a6ae1d3 Conditionally define SHLIB_VERSION_FILE as ${.CURDIR}/shlib_version . 1999-06-10 00:38:49 +00:00
kim 674c377f8f Allow "make obj" to work nicely with amd by setting
PWD=/usr/bin/pawd in /etc/mk.conf and using the amd
mount point path for BSDSRCDIR.
1999-06-08 18:28:38 +00:00
christos 11cfd21df0 Don't strip symbols if -g is specified. We might want to be able to debug
libraries!
1999-06-07 01:37:00 +00:00
pk 8d77b5ba4b Switch the sparc to ELF. 1999-06-06 09:25:38 +00:00
billc 195a593eae Fix thinko to make MKINFO=no work again. Closes PRs 7342 and 7411. 1999-04-22 01:06:42 +00:00
mycroft 654297170f Use -Tascii for pre-generated man pages, to avoid some nroff character set
magick.
1999-04-16 18:56:19 +00:00
fair e1134b1863 Patched per PR 7283; this causes shared libraries which depend on
other shared libraries to load against the ones just built when
DESTDIR is set (i.e. -L${DESTDIR}${LIBDIR} ), rather than what's
installed in /usr/lib (previous behavior definitely violated the
Principle of Least Astonishment!).
1999-03-30 09:30:43 +00:00
mycroft 3064c4ddcd alpha seems to work with -O2... 1999-03-10 14:06:14 +00:00
ross 88fbb254d4 If it exists, include machine/Makefile.inc 1999-03-10 06:34:19 +00:00
simonb 303e8a33d5 Change CFLAGS to AFLAGS for mkdep of .S/.s files. Fixes "make depend"
on pmax kernels (and doesn't break "make depend" on entire tree).
1999-02-24 22:04:15 +00:00
drochner cf3c9d73cd add missing parts of the "mips"->"mipse?" transition 1999-02-24 14:42:36 +00:00
christos 7054064487 Add sparc/elf bits. 1999-02-14 19:12:09 +00:00
christos 26bef09099 Don't attempt to build catpages when MKMAN == no 1999-02-13 16:34:39 +00:00
lukem 6077e7c1f5 don't bother supporting NOINFO (since it's a new thing); just support MKINFO=no
fix description of MKSHARE=no
1999-02-13 03:04:09 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
tv 899feeac30 Add doc for bsd.info.mk, and move the description of MKLINKLIB to the
bsd.lib.mk section (it should NEVER be set by mk.conf).
1999-02-12 15:10:22 +00:00
tv f727f277a7 Add {MK,NO}INFO, and use that to control generation/installation of Info
documentation.  MKINFO=no is implied by MKSHARE=no.
1999-02-12 15:01:08 +00:00
lukem 41510f9a2b for MKSHARE=no, set MKDOC=no MKMAN=no MKNLS=no, and for MKMAN=no, set
MKCATPAGES=no.  this simplifies various tests.
1999-02-12 12:38:44 +00:00
lukem 13814c4ffb pull in bsd.own.mk for MKOBJ 1999-02-12 04:13:26 +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 3d13884e75 I wish they'd settle on a file extension. Build Info files for any of
.txi, .texi, or .texinfo.
1999-02-11 16:50:46 +00:00
tv 8baaaf2b4d Clean on "cleandir" and "distclean", not "realclean".
XXX those clean targets should be unified and depend on a common name,
including that "distclean" should invoke "realclean".
1999-02-11 16:09:21 +00:00
tv 38928fc46a Add an INFOFLAGS that contains -I's to pass to makeinfo. 1999-02-11 15:59:07 +00:00
tv d73e722243 makeinfo produces its own `making...' message, so make the command itself
silent.
1999-02-11 15:31:44 +00:00
tv 4b894ef57b Create <bsd.info.mk> for Info documentation, and avoid the nasty install
stuff duplication by expressing it in terms of <bsd.files.mk>.  Allow for
multiple inclusion of <bsd.files.mk> by clearing ${FILES} at the end, and
using FILES+= rather than FILES= in <bsd.info.mk>.
1999-02-11 13:25:42 +00:00
tv 1d11758833 Remove `dirname: all-dirname' compatibility hack. It's been long supposed
to go away, and even commented as such....
1999-02-11 05:01:39 +00:00
tv 1fd585e551 Remove GNU_ARCH.mips=mipsel, and produce an error if MACHINE_ARCH is only
"mips".
1999-02-10 21:11:47 +00:00
tv bd8a69f172 libbfd_pic.a is no longer installed; remove ${LIBBFD} define. 1999-02-10 20:55:56 +00:00
tv 158083e27d Use :Q to quote arguments to "echo" so that quote marks don't fall out of
the printed mkdep command.
1999-02-07 17:29:40 +00:00
hubertf 276269973c s/bsd.port.mk/bsd.own.mk/ 1999-02-07 17:21:09 +00:00
simonb 6a165c11d8 Back out previous backout of -O2 in mips. Bug in strtod.c fixed via
Niklas Hallqvist.
1999-02-06 02:07:55 +00:00
simonb f88a59dce9 _Don't_ use -O2 on mips, libc/stdlib/strtod.c breaks 1999-02-05 13:50:09 +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
tv e2e1136b79 Our make can't actually turn off implicit rules per-target, and the
"depend:" rule had no actual commands to execute, so it used the implicit
".c:" rule in gas.new (which has a depend.c).  Add a command here -- just
"true" -- that prevents use of implicit rules.  This may need a new
.-option in make(1) to be done Right.
1999-02-03 21:08:05 +00:00
mrg b6b3f824d3 NOGCCERROR disables -Werror. 1999-01-31 09:17:20 +00:00
mycroft af6912b12f Use -O2 on arm32. 1999-01-21 09:44:19 +00:00
christos 73a72701ab Add -F to LINTFLAGS so that the full pathname is printed. 1999-01-18 20:22:54 +00:00
castor 45a22daf10 allow generated kernel includes and support mips pubassym.cf mechanism 1999-01-15 10:57:36 +00:00
simonb 73b06e25d1 Use -O2 on mips. 1999-01-12 05:06:17 +00:00
tv 94eed8e6d2 GC conditional egcs cruft. 1998-12-31 19:58:59 +00:00
castor c57180f21e Change make to ${MAKE} to allow standard make to be overridden. 1998-12-31 15:28:52 +00:00
itohy 172852517b Switch x68k port to UVM by default.
Mach VM and even old contig and non-contig codes are still alive.
1998-12-23 23:01:44 +00:00
mrg 9ec7c3c814 move sun3 to UVM by default. only pica/arc & x68k left. 1998-12-23 06:00:03 +00:00
thorpej 269d52483b Use -O2 on m68k. 1998-12-12 20:48:53 +00:00
thorpej 14b57317d6 Just switch all m68k to EGCS. 1998-12-12 20:48:23 +00:00
is 522ca75f7f Switch Amiga port to egcs. 1998-12-12 20:20:42 +00:00
thorpej adab608611 When installing a shared library, run /sbin/ldconfig -m ${LIBDIR} if
DESTDIR is not set and the object format is a.out.
1998-12-02 22:52:21 +00:00
tsubai 50a875f651 Use egcs by default on powerpc. 1998-12-02 14:12:23 +00:00
erh 36f7c92000 Don't do the version check if we can't find the script. 1998-11-30 23:34:44 +00:00
eeh b2f5408385 Fix up GNU_ARCH for sparc64. 1998-11-28 22:46:16 +00:00
mycroft 0a7241355c Use -O2 on SPARC. 1998-11-26 23:06:09 +00:00
mrg 3b86991953 note that the sparc64 does not yet do pic or profile libraries. 1998-11-25 04:04:13 +00:00
tsubai 49837f8763 Remove NOPIC= on powerpc. 1998-11-24 15:24:53 +00:00
mycroft 8ee4fce4a0 Use egcs on sparc. 1998-11-22 13:51:04 +00:00
mycroft cdacaf156d Use -O2 on i386. 1998-11-22 13:48:34 +00:00
mycroft 4b50867128 Invert the sense of the UVM test, so it lists those ports which do *not* have
UVM yet.
1998-11-21 22:18:36 +00:00
mycroft 856163e71a Use egcs on arm32. 1998-11-21 22:14:47 +00:00
dbj 746d687977 Set UVM to yes by default for next68k userland compiles. 1998-11-19 07:43:10 +00:00
tsubai c0a19d37fc Enable UVM on newsmips. 1998-11-16 12:13:21 +00:00
jonathan c18a2859f1 Make UVM default for pmax. 1998-11-15 05:06:43 +00:00
perry eea7ba805e Per Charles, turn back on egcs on port-i386. If this causes problems,
the methodology is now to fix the problems instead of backing out.
1998-11-14 20:43:44 +00:00
erh 792cde2d0d Add ability to use either a file or the sets files when checking library version numbers. Added -d, -s and -f flags for check dir, check sets and check file. Suggested by Simon Burge. 1998-11-12 05:39:45 +00:00
erh 14b0d1f276 Add a checkver target to bsd.lib.mk. This target executes the checkver script to find installed shared libraries with major/minor versions that are too big. The realinstall target now depends upon this target so this check is done whenever a library is installed. The check may be disabled by setting NOCHECKVER. 1998-11-07 09:40:35 +00:00
jonathan 7574d9a952 Do DESTDIR support for crtbegin/crtend on all ELF ports (adds mips). 1998-11-07 07:10:19 +00:00
jonathan e66cc6b3b1 Set SHLIB_LD{START,END}FILE to crt{begin,end}S.o for all ELF ports. 1998-11-05 00:52:02 +00:00
lukem 7880f6b638 reimplement rev 1.30,1.31 using YPREFIX and LPREFIX instead 1998-11-01 03:46:28 +00:00
veego 7bcba05bce Backout 1.30 and 1.31 which breaks at least libpcap and pppd. 1998-10-31 17:17:56 +00:00
jonathan ef98759a2f Make EGCS default compiler on mips platforms. 1998-10-31 12:10:41 +00:00
matt f50fd21fef Enable shared libraries and EGCS. 1998-10-31 09:23:53 +00:00
lukem 397be30561 simplify YACCPREFIX rule by using `yacc -o ${.TARGET}' instead of
`yacc -b ${.TARGET:R} ; mv ${TARGET:R}.tab.c ${.TARGET}'. fixes
parallel make of foo.y -> foo.c/foo.h as well
1998-10-30 11:17:08 +00:00
lukem f2b1ba4f9f implement LEXPREFIX and YACCPREFIX, which allow overriding the `yy'
prefix of generated tokens, and `.yy.{c,h}' suffix in filenames.
this solves the problem i had in [misc/1989] (albiet a different way).
1998-10-30 10:45:09 +00:00
mark 3dba45c39f Define UVM for arm32. 1998-10-30 00:20:45 +00:00
is d103f66935 Switch the Amiga port to UVM. 1998-10-28 22:41:24 +00:00
wrstuden 922332701f Make lintlib generation work with PATH'd source. We should pull in the
real source, not the implied names, so that we find things we PATH in from
other directories.
1998-10-07 17:49:15 +00:00
tv 4238a1ede6 Back out egcs from i386 and sparc. There are not enough fixes on the egcs
1.1 branch to repair the already open PRs on egcs codegen.  `For now, I
give up.'  Perhaps another day....
1998-10-04 19:46:07 +00:00
christos 8e6800cd97 Missed a few preserve flags. 1998-09-29 11:47:51 +00:00
christos 2a23ffd4df Use PRESERVE flag only when UPDATE is defined. 1998-09-28 16:43:41 +00:00
christos ddb60058ff Use preserve flag in install. 1998-09-28 08:13:37 +00:00
lukem 5e27c18616 don't build/install nls files if NOSHARE defined 1998-09-27 17:16:37 +00:00
lukem 2eadcee825 don't build/install man pages or docs if NOSHARE defined 1998-09-27 16:31:11 +00:00
matthias 393c344918 Take a deep breath and switch over NetBSD/pc532 to use egcs by default. 1998-09-15 20:26:50 +00:00
agc fd02fc18ca Remove out of date explanations of <bsd.port.mk> and <bsd.port.subdir.mk>,
which are now in the pkgsrc collection as bsd.pkg.mk and bsd.pkg.subdir.mk.
1998-09-15 14:56:37 +00:00
tv 148929222c Transition sparc platform to egcs. 1998-09-14 21:21:58 +00:00
tv 768b3efab5 Switch i386 to egcs 1.1. 1998-09-14 00:29:28 +00:00
tv 1428a599bf Rethink the origins of LDSTATIC. Instead, use an option NOLINKLIB, which
builds and installs only what is necessary to link and run binaries, when
the library is not externally useable.
- NOPIC: Create and link against a static library.
- PIC: Create, link against, and install a shared object.
- PIC+LDSTATIC: Create and link against a static library; create and
  install a shared object.
1998-09-13 23:25:18 +00:00
tv 138f9d4389 Reorganize comments around .m and .c.lo rules 1998-09-13 20:56:38 +00:00
eeh d90bb7796e Add some more sparc64 stuff. 1998-09-11 14:52:20 +00:00
ross 08d3e70e4f Define a LIBBZ2?=... for use in DPADD=... lines. 1998-09-10 00:40:33 +00:00
tsubai 3318a12385 UVM is now standard on macppc. 1998-09-03 15:13:51 +00:00
sakamoto f36e74b371 UVM is the default on bebox,ofppc. 1998-09-03 01:51:43 +00:00
matthias bfc51b47d0 UVM/PMAP_NEW are now the standard for the pc532. 1998-09-02 19:25:33 +00:00
mrg 77e8bc0d0f really turn UVM on on the atari... 1998-09-02 14:28:58 +00:00
mrg fab7ebb042 UVM is the default on sparc64 1998-09-02 14:12:04 +00:00
thorpej 4e705c4d21 Switch the i386 port to UVM+PMAP_NEW. 1998-08-31 17:55:26 +00:00
tv 16a9e147f7 Create a STRIPPROG definition to specify a (target) strip program. Later,
STRIPPROG could be used in preference to "-s" on "install".
1998-08-27 23:26:37 +00:00
tv e340b4da07 Rename show-objdir to print-objdir to be consistent with existing
convention.
1998-08-27 20:33:45 +00:00
tv 22f41e92ef Add pseudo-target "show-objdir", which will print the value of ${.OBJDIR}
and nothing else.  Intended target: cleaning up the ugly "echo | make"
constructs to find files from another directory's objdir.
1998-08-27 16:54:59 +00:00
tv c95c8e1504 Alpha is now egcs by default (now all that's left is as and ld). 1998-08-27 14:05:58 +00:00
tv 4e2285a407 Allow -Werror to be turned off with CWARNFLAGS=-Wno-error ... 1998-08-26 19:36:37 +00:00
tv eb6956eecf Introduce CWARNFLAGS, idea from kernel Makefiles, which goes after "-Wall
..." in the CFLAGS and can be set in directory Makefile or mk.conf.
1998-08-25 14:57:21 +00:00
tv 450705382c Back out previous. -Wuninitialized is disabled in the latest egcs
sources, and -Wno-format-y2k is inserted into the proper Makefiles only
(as this is likely to become a permanent option).
1998-08-25 12:04:59 +00:00
ross 57b46db5d1 Add -Wno-uninitialized -Wno-format-y2k, with an attached XXX 1998-08-25 07:46:23 +00:00
tv aefeb9110b Fix the .c.a brokenness with libbfd the "right" way - nuke everything but
*o from .ALLSRC.
1998-08-22 18:59:40 +00:00
tv 82561cf391 Kill spaces in the $$files check introduced by borrowing the C++ rule for
ObjC.
1998-08-18 19:12:42 +00:00
tv da32b76d1f Add dependency rule for Objective-C files. 1998-08-18 17:31:21 +00:00
tv cf98a967de "oops": .c.lo rule missed the "-o ${.TARGET}". 1998-08-17 00:03:32 +00:00
tv b32ba95d4e Add .c.lo, .l.lo, and .y.lo rules for automatic use of ${HOST_COMPILE.c}. 1998-08-16 23:55:04 +00:00
lukem 24bd0530c9 add distclean as a synonym for cleandir 1998-08-09 14:46:19 +00:00
frueauf ba61dd0d54 SYS_INCLUDE=symlinks should not be enabled by default. I guess it was done
by accident.
1998-08-07 20:31:56 +00:00
ragge f6fd0956f2 Put in that vax uses PMAP_NEW as default. 1998-08-04 19:21:26 +00:00
mycroft 7b36bd4442 If AUDIT is defined, compile with -D__AUDIT__. 1998-07-27 13:16:52 +00:00
tv aaafdd394a - Add MACHINE_GNU_ARCH entries for mipseb and mipsel. Temporarily remap
mips to mipsel.
- Remove the unused definition of NOSHLIB for powerpc.  NOPIC is being
  used for this purpose.
1998-07-27 00:58:05 +00:00
perry f0ba699cac Remove obsolete note that NOLINT is set by default. 1998-07-22 18:22:35 +00:00
perry 9ae8946508 Get rid of NONOLINT, and unset NOLINT. We now build lint libraries by default. 1998-07-22 18:21:39 +00:00
mark b5eb8eb72c Define NONOLINT for arm32. 1998-06-27 20:56:49 +00:00
cgd 2125120c77 add bsd.kinc.mk, a template to support the new kernel include file
installation mechanism.
1998-06-12 23:28:53 +00:00
agc 67d4dd8792 Delete (duplicate) setting of UVM if the MACHINE_ARCH is "sparc" - this
is done earlier in the file, with the other platforms on which it's
standard.
1998-05-29 10:15:17 +00:00
tv caf92c9d92 SPARC was missing from the list of GNU_ARCHs. 1998-05-25 23:40:22 +00:00
tv cff69f3322 Add the ability to map a MACHINE_ARCH to a GNU architecture name:
- ${GNU_ARCH.${TARGET_ARCH}} will produce a target architecture name in
  mainline sources
- ${MACHINE_GNU_ARCH} is equivalent to ${GNU_ARCH.${MACHINE_ARCH}}
1998-05-22 16:43:42 +00:00
tv bace91cb64 Apply same .c.a workaround from alpha to arm32 1998-05-22 13:52:52 +00:00
simonb 6126819df6 Fix typo (s/OBJECT_FMAT/OBJECT_FMT/) 1998-05-13 13:58:00 +00:00
thorpej bcaf433561 If DESTDIR is set, tell lint to use "-d ${DESTDIR}/usr/include" (the equiv.
of "-nostdinc -idirafter ${DESTDIR}/usr/include".  Fixes PR #5399.
1998-05-11 22:12:59 +00:00
kleink bfdeed0774 Set NONOLINT on sparc. 1998-05-10 14:58:09 +00:00
tv 0c1cd4f4bc Fix definition for SRCS: "If PROG is not defined" -> "If SRCS is not
defined" as noticed by prlw1@cam.ac.uk
1998-05-05 17:15:05 +00:00
mrg 445283dc37 make UVM the default on the sparc 1998-05-05 01:15:05 +00:00
thorpej d1abd27c70 Make UVM standard procedure on hp300, mac68k (per scottr), and mvme68k. 1998-05-04 05:03:52 +00:00
thorpej dae01890b2 Add a mechanism for specifying which platforms use UVM and which use
PMAP_NEW, and enable both for NetBSD/alpha.
1998-05-04 04:37:33 +00:00
ross 62a5b4b89c English. 1998-05-03 16:39:45 +00:00
christos 62017450ca fix lint library rule bug; use ${.ALLSRC} as suggested. 1998-05-02 15:19:04 +00:00
tv 8ab6713503 Fix symlinks creation in the build directory: create the symlinks there,
not in ${DESTDIR}.
1998-04-17 13:34:55 +00:00
tv aea014c22a Braindead pmake conditionals. 1998-04-15 12:07:10 +00:00
tv 820dd24a68 Create the ELF symbolic links in the build tree, too. Needed for libamu
and egcs libcc1 to make sure linking is done against the correct shared
object.
1998-04-15 02:39:53 +00:00
tv 7484409ac2 Compare ${LDSTATIC} against ""; don't check for definition. Make this
DTRT on setups with a global setting of LDSTATIC= (nothing)
1998-04-15 01:38:27 +00:00
agc 001ce9107b Move bsd.port.mk and bsd.port.subdir.mk into pkgsrc/mk (by CVS
repository copy), which is a much better place for them.  Update the
Makefile to reflect these changes.
1998-04-14 07:56:56 +00:00
lukem 2dbeb85dde only read /etc/mk.conf once (stops += variables getting double assignments) 1998-04-13 12:03:07 +00:00
tv c97729d6b8 Also build a static library regardless of NOSTATICLIB if LDSTATIC is
defined.  In situations where a "private library" is being built, a static
library is needed to link binaries statically (LDSTATIC=-static).
1998-04-12 21:22:20 +00:00
fair 2e28a338e3 a link installation performance optimization: only fire off "ln -f", not "rm -f; ln" for each link created 1998-04-09 22:08:36 +00:00
hubertf 271a6b74a8 Don't creade dirs mode 444, inspired by fvdl's last commit. 1998-04-09 12:47:02 +00:00
tv 854cea27cc New flag, NOSTATICLIB, prevents build and install of the standard static
library unless NOPIC is set.
1998-04-09 00:51:06 +00:00
tv 3b468e7a9b The C++ compiler is "c++", not "g++"; that is more compatible with non-GCC
based C++ compilers.
1998-04-09 00:45:10 +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
fvdl 1c1df51751 INSTALL_DATA_DIR should not install directories with mode 444 1998-04-08 22:27:41 +00:00
agc 80bf789853 Correct a definition name in a comment. 1998-04-03 09:56:00 +00:00
enami 6e80cfe67f Test target __initialized__ instead of .MAIN to see if inclusion
of ../Makefile.inc is necessary.
1998-04-03 04:40:42 +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 c0ac8bae67 GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
tron 4388c70018 Add "ftp.uni-paderborn.de" and "ftp.x.org" to "${MASTER_SITE_XCONTRIB}". 1998-03-24 10:27:44 +00:00
hubertf 12ef5de7af Document ALL_TARGET and INSTALL_TARGET, as per PR 5186. 1998-03-23 07:42:50 +00:00
agc b34c2c6ed2 Temporarily revert to using GNU tar, until pax is bug-compatible with
gtar.  pax has problems extracting certain archives which were made by
gtar and contain trailing trash at the end - gtar ignores this dross,
pax thinks it's valid, and prompts for the second volume.
1998-03-09 18:36:51 +00:00
hubertf e7625fb46f Make definition of OBJMACHINE in mk.conf work. 1998-03-08 14:55:04 +00:00
frueauf bc2108c741 Introduce "Arch:" field in INDEX to handle the ONLY_FOR_ARCHS case better. 1998-03-08 14:25:52 +00:00
hubertf 44cef8723d Add INSTALL_*_DIR macros. 1998-03-07 21:19:00 +00:00
jonathan 6fbfecba04 Use the new binutils-compatible ld commandline syntax to build
shared-library .so files on both ELf and  a.out platforms.
1998-03-07 02:02:58 +00:00
tron 3b568e620a MANZ now handles symlinks properly. 1998-03-01 13:38:03 +00:00
hubertf 6aa991c6a1 Cleanup fetch-list change reported by Bernd Ernesti.. 1998-02-28 16:02:21 +00:00
tron 10c0ddaf25 Fix merge problem with last commit. 1998-02-28 10:39:19 +00:00
tron e97ed99680 Fix problem with registering foreign language manual pages. 1998-02-28 10:14:41 +00:00
agc 4c570e1c28 Patches from Matthew Green to use pax if it's present, in preference
to tar.
1998-02-27 13:22:59 +00:00
lukem a771a1c39a change default ownership from bin:bin to root:wheel 1998-02-26 08:46:09 +00:00
perry 5e2ed85c88 set NONOLINT on i386. Other ports on which building with lint is okay should
be added to this list until we get all ports okay.
1998-02-25 18:30:11 +00:00
jonathan 5e0e8cec39 More table-driven changes for different toolchains:
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
  * use OBJECT_FMT in Makefile tests that depend on toolchain.
  * Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
    port doesnt yet do shared libraries. Set on powerpc.
  * Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
1998-02-23 10:09:31 +00:00
hubertf 4abf2e5151 Enhance look & feel of the generated README.html's. 1998-02-20 22:06:18 +00:00
hubertf 289e97d3a8 Recursively print /bin/sh code for all dependent package as well as the
current package (IF called from a package dir and not via bsd.port.subdir.mk;
in the latter case it's assumed that the dependent packages will be scanned
later anyways).

This fixes PR 4992 by Mario Kemper <magick@bundy.lip.owl.de>.
1998-02-20 21:31:20 +00:00
hubertf 34f7405909 Kill line forgotten during PATH extension (in MAKE_ENV). 1998-02-20 21:01:09 +00:00
jonathan b947725fbb Fix dyslexic typo. 1998-02-18 08:14:31 +00:00
jonathan 4cbc9ecd8e Make bsd.lib.mk rules to build ELF vs a.out shlibs more table-driven.
No more .if in solib link rule.
1998-02-18 03:14:31 +00:00
agc 3fde44b046 Add a deinstall target, so that packages can be removed easily.
This implementation was taken from FreeBSD.
1998-02-17 15:07:02 +00:00
thorpej 4d8ed30c33 Make the .N.catN rules depend on the troff macros used in manpage builds. 1998-02-15 01:07:46 +00:00
agc 31ff3c7ebb When generating the PLIST, if a manual page name has to have .gz added
or removed using sed, don't add the g at the end of the substitution
expression - there will only be one substitution per line.
1998-02-13 15:16:43 +00:00
hubertf 450b3dd272 Fix PR 4884 by replacing STRIP with STRIPFLAG.
This addes yet another step towards bsd.pkg.mk. :)
1998-02-09 00:47:23 +00:00
mikel d317b4789d STRIP -> STRIPFLAG; from Jim Bernard in PR pkg/4884 1998-02-04 07:08:56 +00:00
hubertf 3089cbdaf0 Introduce TRUE?=/usr/bin/true, and use it. 1998-02-02 08:11:49 +00:00
agc 0e1796ddf0 Echo the directory name when doing a "make readme", so that progress
can be monitored.
1998-01-30 14:33:48 +00:00
agc 0ecdcb24d1 Remove the requirement that a LIB_DEPENDS name must have any '.'
characters escaped with a backslash, but recognise the backslashes for
backwards compatibility. When matching names, do any escaping of
the regexp '.' metacharacter automatically, if needed.

When a shared object dependency is printed out, use a form that does
not have the backslashes in it, for readability.

Print out the full pathname of the matching shared object, for clarity.
1998-01-30 13:53:53 +00:00
hubertf f3234b8314 Replace "<$ARCH"> by "${MACHINE_ARCH}", keep "<$ARCH>"
(in bsd.port.mk) for backward compatibility.
1998-01-28 15:36:31 +00:00
hubertf 0c86a9c11e add mirror-distfiles target also here 1998-01-27 23:04:48 +00:00
agc 66d0028ab9 Rename the `mirror' target to be `mirror-distfiles'. This describes
the action better, and works around problems with the mirror package.

Document the mirror-distfiles target, and also the readme target.
1998-01-27 13:14:07 +00:00
hubertf e134d92e49 use __ARCH_OK=yes and NO_IGNORE=yes at the mirror-target to get ALL distfiles 1998-01-25 14:50:47 +00:00
hubertf 3f9baf7ddc Re-move .if!defined(__ARCH_OK) to fix use of NO_IGNORE; document some .endif's 1998-01-25 14:46:10 +00:00
hubertf af94a7e9dc MAINTAINER = packages@NetBSD.ORG 1998-01-25 14:39:49 +00:00
hubertf 8e4b1a4ffe From OpenBSD's bsd.port.mk rlog (Mmm, AnonCVS :-):
revision 1.21
date: 1997/12/20 01:26:57;  author: joey;  state: Exp;  lines: +2 -2
openbsd maintainer changed from imp to me
1998-01-24 23:06:33 +00:00
hubertf 6c7a7eefde Echo "" instead of nothing in CKSUMFILES computation..
Fixes PR 4877 by Manuel Bouyer <bouyer@antioche.lip6.fr>
1998-01-23 16:48:23 +00:00
agc bf08ec7da8 In the shell script to find an executable upon which this package
depends, break out of the loop when you find one.  Also print the name
of the executable found.
1998-01-23 09:47:57 +00:00
agc 01906e318c Ignore the return code from rm when removing the ${WRKDIR} symbolic
link, when doing a "make clean" with WRKOBJDIR defined.  From Thorsten
Frueauf.
1998-01-22 11:27:54 +00:00
agc 4872d27a15 Add a MIRROR_DISTFILE variable; defaults to "yes", and should be set
to "no" in a package's Makefile when the authors have placed
restrictions on the redistribution of the distfiles.  (Thanks to Jason
Thorpe for the idea).

Add a `mirror' target, which will do a "make fetch" if the package's
distfile is allowed to be redistributed.  This is for use on sites
which mirror package distfiles.  (Thanks to Charles Hannum for the
idea).
1998-01-22 10:20:48 +00:00
hubertf 87feef5fe5 Fix comment for FETCH_CMD wrt non-NetBSD-systems 1998-01-16 09:07:46 +00:00
hubertf e3f9002156 - Our default for FETCH_CMD is ftp, not fetch.
- Document NO_IGNORE, __ARCH_OK
 - Make __ARCH_OK overridable, so it can be set to YES e.g. for fetching
   all distfiles.
 - Move ".ifndef(__ARCH_OK): block, so some targets like clean work
   in any case.
 - Add LOCALBASE and X11BASE to PATH in MAKE_ENV, CONFIGURE_ENV and
   SCRIPT_ENV; this fixes PR 4573
1998-01-15 22:58:59 +00:00
agc 5e87acd0dd Move the inclusion of bsd.own.mk back to the correct place in
bsd.port.mk, but this time use a definition before the inclusion,
which stops <bsd.own.mk> defining its own install target when
using the package system.

This makes the package system take notice of the definitions in
/etc/mk.conf
1998-01-15 09:37:25 +00:00
agc 9ef77631e3 Add lines so that "make readme" in the top level pkgsrc directory, or
one if the categories directories, will call "make readme" in
any subdirectories.

I thought that this was suggested by Chris Demetriou, but I can't find
any PR backing this up.  So my apologies to the person who did suggest
this.
1998-01-08 10:59:47 +00:00
hubertf 73ddeb3490 Add us to MASTER_SITE_LOCAL. 1997-12-29 20:10:24 +00:00
hubertf b3d8f46800 MACHINE_ARCH of pmax is "mips" 1997-12-27 03:24:10 +00:00
cgd 70fa7e3060 kill a couple of (insignificant but) bogus extra spaces 1997-12-24 05:15:54 +00:00
christos ac30d893d8 Add bsd.obj.mk and fix the rules to work with obj dirs. 1997-12-21 15:40:37 +00:00
hubertf 6e5296d50f Fix up documentation (MASTER_SITE_SUBDIR, PATCH_SITE_SUBDIR,
MASTER_SITE_BACKUP).
1997-12-21 01:59:44 +00:00
hubertf 320012817f Now that we have ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles,
add it to MASTER_SITE_BACKUP.
1997-12-19 10:20:02 +00:00
hubertf b747ec162b - move definition of ARCH and OPSYS so it is even available if
ONLY_FOR_ARCHS is set
 - Usage points to PLIST_SRC
1997-12-13 21:28:24 +00:00
hubertf 67a5e86031 do not depend on gmake being called gmake (pointed out by Matt Green) 1997-12-03 08:32:01 +00:00
mikel a206ea679a add missing 'man' so unformatted manpage installation will work when
target exists; solution provided by christos
1997-12-02 08:42:28 +00:00
agc 53596376fe Fix missing backslash when gzipping manual pages.
If we're going to go to the bother of defining LDCONFIG, we might as
well use it.
1997-11-26 09:24:18 +00:00
hubertf 6b7391ff96 We use perl 5.004_04 now 1997-11-22 04:20:49 +00:00
hubertf 31316d681a Use MI/MD PLIST files pkg/PLIST-{mi,md-{shared,static}} 1997-11-22 03:39:20 +00:00
agc 2998c94db0 Remove the magic control characters in a similar way to Bill Fenner's
patch for bsd.port.subdir.mk.
1997-11-21 17:44:11 +00:00
agc 92ed0869d5 Modification by Bill Fenner which removes the embedded control
characters, and avoids the wrong interpretation of magic HTML
characters in DESCR files or categories.

Forwarded to me by Chris Demetriou, and refers to PR 4341.
1997-11-21 16:01:54 +00:00
agc 16b3bf5830 Eliminate a nasty and horrible kluge by using the BSD.x11.dist when
checking the directory tree for an X11 package.
1997-11-19 16:41:21 +00:00
thorpej f72895d295 Echo the target we're working on while traversing subdirs, so one can
better judge how much longer a build will take.  Patch submitted
by Brian Grayson <bgrayson@ece.utexas.edu> in PR #4419.
1997-11-13 09:18:19 +00:00
hubertf 3c59683dc1 Remove unneeded RCS Id 1997-11-10 08:07:29 +00:00
hubertf 11f07e2683 - Not only add $CAT[1-9] to _CATLIST, but also $CAT[NL}
- Fixup documentation for CAT<sect>, CATPREFIX.
(these two changes were accidentally committed to the 1.3 branch
 as revisions 1.13.2.3 and 1.13.2.4 before!)
1997-11-08 00:18:24 +00:00
agc d8ac6639ac Let make do the work:
+ set MAKE_PROGRAM variable in bsd.port.mk to either ${GMAKE} or
${MAKE}, and use it in do-build and do-install targets

+ if X11 package, and man pages are installed, add install.man to
${INSTALL_TARGET}, rather than using a separate command to do this.

Also added CATn= blah.0, similar to MANn= blah.1, which installs
pre-formatted man pages, like the ones imake produces.
1997-11-05 13:36:30 +00:00
thorpej 42b5acd98e Fix .c.ln rule: use CPPFLAGS, not CFLAGS. 1997-11-05 05:34:24 +00:00
gwr 5c8e26aed2 Move definitions of: NM, LORDER, TSORT from bsd.sys.mk to sys.mk
so they are more easly used by things like sys/libkern/Makefile.inc
(Besides, all the other tool definitions are in sys.mk)
1997-11-04 21:12:41 +00:00
gwr 0919e2346b Use LORDER, TSORT 1997-11-04 20:33:11 +00:00
gwr dff2b93f7d Define LORDER, TSORT 1997-11-04 20:31:56 +00:00
cgd 87d5df18e3 add '-z' to LINTFLAGS, so that forward structure definions (for pointer
args, etc.), don't cause warnings if the structure isn't ever completely
defined.
1997-11-03 22:56:27 +00:00
cgd 3e16a4f314 if "NONOLINT" is defined, don't automatically define NOLINT. "yuck."
Once lint support is completely working, NOLINT's definition should be
removed from this file entirely.
1997-11-03 22:53:25 +00:00
cgd d74926452e echo the lint command line when making 'lint'. 1997-11-03 22:51:23 +00:00
mrg b7a9acd4a5 set all: target for defined(NOMAN) that does nothing. 1997-10-30 12:57:19 +00:00
lukem 513a06e6f5 remove lint rules for objective c as lint can't cope 1997-10-30 07:25:32 +00:00
agc c72a8fd6be When a package depends on an executable from another package,
bsd.port.mk would always find the executable (using which), even if
there wasn't an executable in the $PATH.  I've modified bsd.port.mk to
look for the executable directly, and simplified the shell code
somewhat in the process.  There may be a lurking bug in shell exit
status handling here.

Noted by matthew green <mrg@madrugada.eterna.com.au> and Chris
Demetriou <cgd@netbsd.org> (PR pkg/4337) but I was too stupid to
realise what was happening.  That, and a copy of gmake in
/usr/local/bin.
1997-10-28 12:46:37 +00:00
lukem 6f77030130 add ${LIBOBJC} 1997-10-28 12:46:30 +00:00
lukem 55209d604d add default rules for Objective C sources (`.m' suffix):
- sys.mk:
	add ${OBJC} and ${OBJCFLAGS} (equivalent to ${CC} and
	${CFLAGS} respectively), and ${COMPILE.m} and ${LINK.m} rules
- bsd.sys.mk:
	add .m, .m.o, and .m.ln rules (as per the C rules in sys.mk).
	it's here, rather than in sys.mk, because `.m' isn't
	exclusively used for Objective C files.
- bsd.lib.mk:
	add .m.o, .m.po, .m.so, and .m.ln rules (as per C)
1997-10-28 12:40:16 +00:00
drochner 978c73b8c6 Fix the before/after-install ordering problem in a different way.
The old fix broke with multiple targets on the make command line.
1997-10-27 19:41:05 +00:00
drochner 86bc651566 Force "beforeinstall" and "afterinstall" to be executed before/after
"install". (pr misc/4319)
1997-10-23 12:44:28 +00:00
hubertf cfc838616e - don't clean out dependent packages (requested by thorpej)
- actually document the feature used above (NOCLEANDEPENDS)
 - put pkg/MESSAGE file into /var/db/pkg/XXX/+DISPLAY, if
   present (from FreeBSD)
1997-10-18 23:33:25 +00:00
thorpej 4cfd0c8e5c Make sure the ${PREFIX} directory exists before invoking mtree. 1997-10-17 01:40:49 +00:00
mikel d76d14e5e5 add -Wpointer-arith to flags enabled by WARNS 1997-10-12 01:37:50 +00:00
mycroft ef2bc499bd Don't include bsd.obj.mk in these two files. 1997-10-11 08:43:34 +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
mycroft b7362c7c30 Move the previous to a different place, because `.if !target(...' sucks. 1997-10-11 07:26:53 +00:00
mycroft 6bb70fa48b As the comment says:
Make sure all of the standard targets are defined, even if they do nothing.

Also, add a .PHONY for regress.
1997-10-11 07:14:57 +00:00
mycroft 430cf95918 Massively simplify this. Partly from David Holland in PR 3823. 1997-10-10 09:12:28 +00:00
agc faf7739143 s/sed/${SED}/g
Change <$ARCH> into bsd.port.mk's ${ARCH} value (uname -m) when
constructing the derived PLIST, so that we can use packages on
non-i386 NetBSD architectures and have the correct file names in the
installed inventory.
1997-10-09 10:38:13 +00:00
mycroft d39697696f Put the `-nostdinc -idirafter ...' in CPPFLAGS, not CFLAGS. 1997-10-08 13:17:00 +00:00
hubertf e6d2b60658 Be correct about manpage compression by regarding MANZ and fixing
PLIST before applying.

It is assumed that ports do install manpages uncompressed, if not
they have to set MANCOMPRESSED. Upon that, the pages will be
(un)compressed according to the setting of MANZ.
1997-10-07 00:30:31 +00:00
mycroft 448f02237b Install man page source, in addition to the cat files. 1997-10-03 19:20:56 +00:00
agc 0f091effee + Move inclusion of bsd.own.mk to the end of bsd.port.mk.
<bsd.own.mk> defines its own `install' target if none is defined,
which conflicts with the default one we define later on in bsd.port.mk.
This may nuke any WRKOBJDIR definitions (which I have yet to encounter),
but enables "make install" to work as expected.

+ Add temporary mtree file for any X11 packages (like xpm, jpeg etc),
which require a default X11 tree. This will change when we get a NetBSD
x11.dist mtree file.

+ Define SHAREOWN, SHAREGRP and SHAREMODE (in NetBSD) to be the same as
DOCOWN, DOCGRP and DOCMODE respectively.
1997-10-03 09:16:15 +00:00
hubertf 45d4babcbd MACHINE -> MACHINE_ARCH, as pointed out by thorpej.
(Changed in ARCH_ONLY stuff as well as WRKDIR definition)
1997-10-01 23:38:34 +00:00
hubertf f6a5b0843d /usr/pkg/src -> /usr/pkgsrc 1997-09-30 23:16:03 +00:00
is ce5ef83f97 Make "make regress" work; by Charles Hannum. 1997-09-30 22:19:22 +00:00
gwr 42a70b47e1 Add $LIBBFD 1997-09-29 15:02:49 +00:00
hubertf 8f15104e92 - Move around .include <bsd.own.mk> so PORTSDIR gets set propperly
- make 'make clean' DTRT when WRKOBJDIR is set
1997-09-28 11:22:40 +00:00
hubertf 049546f7dd Forgot to include <bsd.own.mk> in last commit
(from OpenBSD)
1997-09-28 00:56:00 +00:00