Commit Graph

1112 Commits

Author SHA1 Message Date
lukem e928ba19c8 move MKCATPAGES info. add MKHOSTOBJ info 2003-07-18 15:44:07 +00:00
lukem f134f3dc38 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
2003-07-18 08:26:01 +00:00
lukem 87610a53a9 whitespace cleanup 2003-07-18 04:04:03 +00:00
lukem 4d63406463 Add MKMANZ; if not set to "no", compress the manual pages at installation time.
This replaces the previous  .if defined (MANZ) behaviour, although the latter
will set MKMANZ=yes for compatibility purposes.

Don't bother with -P-bou in TOOL_ROFF_HTML; it doesn't appear to be
necessary with groff 1.19.

Fix NOHTML implementation to be consistent with other NOxxx / MKxxx
variables, and expose the user-tweakable MKHTML.
2003-07-18 02:52:51 +00:00
lukem e8de180da8 reorder to be a bit more useable (imho) 2003-07-18 00:33:18 +00:00
lukem 7b7ea97741 Change the default TOOLDIR from
top-of-obj/tools/tools.OS-VERSION-STRING
to
	top-of-obj/tooldir.OS-VERSION-STRING

It's more consistent with the build.sh defaults for DESTDIR and
RELEASEDIR, and it's easier on "mr lazy completion fingers".
2003-07-16 13:19:49 +00:00
itojun e26b0e0cf5 stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)
2003-07-16 05:42:01 +00:00
lukem 8e7657a643 Be consistent with other bsd.*.mk, and pull in <bsd.init.mk> at the
start (which pulls in <bsd.own.mk>), and <bsd.obj.mk> and <bsd.sys.mk>
at the end.  These provide the appropriate settings for TOOL_* .
2003-07-14 00:52:12 +00:00
lukem d72803be72 Pull in <bsd.sys.mk> to provide the defaults for TOOL_* when USETOOLS=never 2003-07-14 00:50:04 +00:00
lukem f0dafe0c0e use full path in default TOOL_MAKEWHATIS 2003-07-14 00:41:17 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
marcus 36874b6c58 With gcc3, PIC code can be created for sh3. 2003-07-02 15:37:21 +00:00
wiz 61ddcbc141 Adapt CATDEPS/HTMLDEPS for groff-1.19. 2003-06-30 18:49:05 +00:00
wiz ee660f962d Add NROFF. 2003-06-30 18:48:52 +00:00
drochner 03caf45b83 For consistency, use "-R" instead of "-Wl,-rpath" to pass
a runtime search path to the linker.
2003-06-27 17:30:16 +00:00
drochner a915fb6b1e Use ${CC} instead of ${LD} to build shared objects.
(g)cc has all the knowledge which startfiles/libgcc to
use, so we don't need to duplicate all that here.

Externally visible change:
Shared objects are linked against libgcc_pic.a now
(if the in-tree gcc2 is used). This fixes problems with
dlopen()'ed objects referencing libgcc functions not used
(thus not linked in) by the main program.
2003-06-27 17:27:11 +00:00
drochner 672eca1975 provide a variable pointing to the directory where
the gcc provided crt*.o are located
2003-06-27 17:13:27 +00:00
tshiozak e376aa8308 Citrus iconv support(3)
add host tools : mkcsmapper and mkesdb
  mkcsmapper - coded character set mapping table compiler
  mkesdb - encoding scheme database compiler
2003-06-26 06:30:07 +00:00
tron 085b2ab641 Fix "clean" rule to honor "CLEANFILES" variable. 2003-06-24 09:49:07 +00:00
itojun ded3919389 define LIBEVENT 2003-06-13 04:04:18 +00:00
provos 5522c1a3bb add LIBEVENT 2003-06-12 23:26:19 +00:00
wiz a233f087fe Add missing } for rev. 1.43. 2003-06-11 18:05:40 +00:00
wiz cdf5450a15 Also recognize cpp files as C++ files for CYGWIN case. 2003-06-11 17:32:45 +00:00
christos d30f98df35 recognize .cpp as c++ files. 2003-06-11 17:24:55 +00:00
msaitoh 535480c5be catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX 2003-06-11 04:56:58 +00:00
thorpej 000836e000 If EXTERNAL_TOOLCHAIN is defined, allow the compiler to define the
location of crt{begin,end}{,S}.o and libgcc.a.  Encapsulate all of
this logic into the new bsd.gcc.mk, and use it in bsd.prog.mk and
bsd.lib.mk.
2003-05-31 20:33:15 +00:00
thorpej 22791b9867 Add a CPUFLAGS variable which can be set by the user's mk.conf or in
the environment:

CPUFLAGS        Additional flags to the compiler/assembler to select
                CPU instruction set options, CPU tuning options, etc.

Since CPUFLAGS is not implicitly set by any part of the make infrastructure,
it is safe to set in mk.conf, unlike COPTS or DBG.
2003-05-30 18:43:23 +00:00
wiz 53588c2a8b Back this out until I know why it does not work. 2003-05-27 21:43:32 +00:00
wiz 43075c01c6 Use && instead of ; to only overwrite a file if the corresponding sed worked (from christos).
Add .cpp rules.
2003-05-27 19:32:18 +00:00
wiz f338b31357 Add .cpp dependency rules. 2003-05-27 19:30:45 +00:00
wiz 135b433e9c s/${ECHO}/@echo/, since we don't define ECHO in share/mk. 2003-05-26 12:38:59 +00:00
lukem 76a3147d38 Remove dependency on ${RPCGEN}:
*	Unnecessarily causes lib/librpcsvc (etc) to be rebuilt every time
	rpcgen is updated.
    *	No other "generated" file (.l, .y, ...) depends upon its tool
    	like this
    *	As <bsd.own.mk> wasn't being pulled in, the tools/ version
    	wasn't being used, so a lot of times the dependency was wrong.

Fixes [toolchain/11568] by Bernd Ernesti.
2003-05-19 07:19:10 +00:00
lukem 4ae3ede358 Only determine TARGET_ENDIANNESS if it's not already defined. 2003-05-18 08:19:03 +00:00
lukem 65e312f75f Add ${TOOL_DB}; db(1) as a (host) tool.
Note: this is the first tool using a "TOOL_" prefix in the make(1) variable;
other similar "non-standard" variable names will be converted in the future.
2003-05-18 08:09:25 +00:00
lukem 03a26b2c80 make this a no-op if HOSTPROG is defined 2003-05-18 07:36:23 +00:00
dbj f1e0ecadf7 remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets.  Commits fix from PR toolchain/21495
2003-05-14 00:24:06 +00:00
christos b024767c0c Fix _HOST_CYGWIN lossage. 2003-05-08 20:39:00 +00:00
salo 1b089357bd Whitespace. 2003-05-08 18:59:06 +00:00
christos e9672445c0 Hacks for limited command and environment space (John Gordon) 2003-05-08 13:34:07 +00:00
christos 61987b916a Deal with CYGWIN's sh screwage. 2003-05-08 13:02:09 +00:00
fvdl 6fd55b60ac Add -mcmodel=kernel to CFLAGS for amd64. 2003-05-07 22:36:06 +00:00
yamt 7fb7b24fed make RPC_XDRFILES depend on files in right directory. 2003-05-07 13:41:22 +00:00
fvdl cfb43ff372 Default to -O2 for x86_64. 2003-05-04 12:05:50 +00:00
scw ee96a063f1 Build shared libraries by default on sh5. They seem stable enough now. 2003-04-29 14:59:02 +00:00
fvdl ee5c723638 Correct previous. MACHINE is amd64. MACHINE_ARCH is x86_64. 2003-04-27 10:15:01 +00:00
tron ef4a5d5fc9 x86_64 -> amd64 2003-04-27 10:10:28 +00:00
fvdl e937aee3c1 another x86_64 -> amd64 2003-04-26 20:55:40 +00:00
fvdl 0945a6df17 x86_64 -> amd64 2003-04-26 19:02:50 +00:00
matt 275eeea6c9 The __wrap_* symbols need to become local symbols. If you have module
x which is dependent y but they both have __wrap_foo, if the __wrap_foo
is not localized, you will get linker truncation messages.
2003-04-23 18:34:20 +00:00
christos 2b009f6aa8 fix lossage caused by previous commit. 2003-04-22 12:55:26 +00:00