Commit Graph

104 Commits

Author SHA1 Message Date
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
tshiozak dc7d18ff88 refine i18n stuffs.
- add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.
2002-03-17 22:14:05 +00:00
thorpej 9656b77394 No need to reference .OBJDIR here. 2002-03-05 21:25:08 +00:00
tv 641ef06659 Make it possible for ctags to be a host tool. 2002-01-31 19:13:12 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
zuntum beab4b57ef Add pl.msg file to nls/ directory and list it in the Makefile
-- now libc has polish messages

set LANG to "pl" in your environment to use it.
2001-09-02 13:13:41 +00:00
christos 261c265b50 I've had it. Raise the barrier on committing unlinted code. On the i386
make lint exit on warnings.
2001-02-06 18:47:09 +00:00
itojun 2dcdf0fcb8 (finally!) enable multibyte LC_CTYPE locale support.
the functionality will be available for dynamic-linked binary only, due to
limitation with dlopen() from within statically-linked binaries.
(statically-linked binary can still enjoy singlebyte LC_CTYPE locale support)

from citrus project.
2001-01-25 09:21:57 +00:00
tron 216b116e30 Remove duplicate "tags" target. 2001-01-16 12:10:29 +00:00
itojun 99b0df5333 use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix
2001-01-08 08:29:59 +00:00
itojun f039f89ec5 prepare for sh3e[bl] split 2001-01-04 06:53:45 +00:00
bjh21 5aefcfdc06 Create shared ARM source for libc, and move arm26 port over to using it.
The code is (almost) a direct copy of the current arm26 sources.
It's identical to the current arm32 sources, with the following exceptions:
 - _C_LABEL is used on references to C labels from assembler.
 - Function returns in assembler have APCS-26 versions in #ifdef __APCS_26__.
 - It uses SoftFloat 2a rather than SoftFloat 1a.

The first two of these should be inconsequential.  I believe that SoftFloat 2a
should work on arm32 and be backward-compatible with existing code, but this
is not obviously true.  For now, arm32 remains using its own bits of libc.
2000-12-29 20:13:44 +00:00
christos 0c0e139779 Ignore empty translation unit errors. 2000-12-20 21:13:56 +00:00
christos ee788dacd9 Don't enable lin's exit on warnings yet. It'll break most ports. 2000-08-13 23:26:12 +00:00
christos 0aee707a3b add -w to ctags. got finally tired of looking at all those dup error messages
that nobody will ever fix.
2000-08-13 22:43:28 +00:00
fvdl 7df0ccbadc Add new RPC code, based on Sun's TI-RPC code. Adapted to not use XTI,
but sockets instead, internally. Old, backward compatible interfaces
maintained.
2000-06-02 23:11:05 +00:00
minoura 78b105698a Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
2000-04-02 15:35:47 +00:00
itojun ed15f9831a move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
  subdirs as well)
2000-01-26 02:46:36 +00:00
mycroft 44ea18f69f Fix the tags build. 2000-01-23 07:10:13 +00:00
jdolecek 09f91c86b6 Add czech language message catalog 1999-09-26 20:27:59 +00:00
tv 7b36f54b99 Revert part of previous and use C/// instead of S/// for mipse[bl]->mips. 1999-02-27 21:21:26 +00:00
drochner 338f565814 -this fancy S/mipse[bl]/mips/ didn't work - replace it by something simple
-generate an ARCHSUBDIR which contains the last path element
-use ${ARCHSUBDIR} instead of ${MACHINE_ARCH} where appropriate
1999-02-24 15:00:08 +00:00
tv 5592ec7573 Remap mipse[bl] to mips when finding arch directory. 1999-02-09 19:30:03 +00:00
explorer b131132411 add sha1 functions, like md5/4 1999-02-04 05:08:58 +00:00
bouyer dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
lukem de3b78d72a merge nsswitch into main branch 1999-01-15 12:48:41 +00:00
eeh c0d0251b80 sparc doesn't need quad support when running in 64-bit mode either. 1998-11-28 17:01:54 +00:00
kleink 81fe96fbf1 Add _LIBC to the set of preprocessor symbols defined in the libc build
environment; used by source files shared with other parts of the userland
to determine whether certain conventions need to be obeyed or not.
1998-10-14 19:19:32 +00:00
perry 1801e92fce add strchr.c, strrchr.c, memmove.c, memcpy.c, to KSRC for copy to libkern. 1998-08-04 05:55:56 +00:00
mycroft 3bd6c97c08 Enable quad support on PowerPC. 1998-05-06 18:12:35 +00:00
cgd e989882802 add bcopy.c to KSRCS, to sync with charles's libkern changes 1998-03-27 01:29:47 +00:00
mikel aa97080b50 fix typo in comment 1998-03-04 08:17:20 +00:00
cgd f32681cab6 copy memchr.c, index.c, and rindex.c to libkern 1998-01-22 00:17:11 +00:00
lukem d0e23d974a - use CPPFLAGS instead of CFLAGS
- use ${COMPILE.C} ... instead of ${CC} ${CFLAGS} -c ...
1997-10-22 23:14:04 +00:00
lukem 5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
veego 344a043fcf Build with warnings enabled on m68k systems. 1997-07-18 10:52:36 +00:00
thorpej a323ef09ba Build with warnings enabled on the Alpha. 1997-07-18 00:28:15 +00:00
christos ca04b1a733 Add WARNS=1 for the sparc and the i386 1997-07-13 18:36:23 +00:00
mikel 6e6ba705f1 add ${.OBJDIR}/tags to CLEANFILES 1997-06-19 06:12:10 +00:00
christos d5538cb536 Try to fix the tags mess.
- Build in obj/tags
- Only create ${.CURDIR}/tags if 'make tags' is specify.
- ${.CURDIR}/tags is a symlink to /var/db/libc.tags
1997-06-04 23:11:54 +00:00
christos 7c2d8cb288 Use ${.CURDIR}/tags instead of tags. `tags' is .PHONY so it gets rebuilt
all the time.
1997-05-12 16:41:03 +00:00
thorpej 7938ddd169 Add md5c.c to the list of files to copy-to-libkern. 1997-04-30 00:43:08 +00:00
ragge 7196037f1c Svensk meddelandekatalog, ursprungligen skriven av Martin Kullberg.
(frolix@ludd.luth.se)
1997-04-28 21:36:45 +00:00
is 7c37cb4c4b Compile the Dutch message catalog. 1997-04-28 09:00:20 +00:00
is 03a704030c Added Norwegian libc error messages/signal names, donated by Stig
Venaas <venaas@nvg.ntnu.no>.
1997-04-28 08:49:31 +00:00
is 9659f9a2a0 Finnish libc error message/signal name catalog, by Jukka Marin and coworker. 1997-04-17 18:12:47 +00:00
thorpej 6deb3cf346 oops, add missing quotes 1997-03-29 21:01:36 +00:00
thorpej d4c81d9c0f Don't need to build quad stuff on PowerPC. 1997-03-29 21:00:40 +00:00
christos 8259dd08d6 Makefile cleanups:
use INCS variable to install includes and FILES to install objects.
1997-03-24 22:11:48 +00:00
hpeyerl 37c622153f Remove as per discussion with core. 1997-03-10 20:51:01 +00:00