Commit Graph

18 Commits

Author SHA1 Message Date
wiz 51dc91caa9 Add zlib(3) provided by jmc@openbsd -- thank you! 2003-10-03 18:46:22 +00:00
lukem ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +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
tv 001067bbd1 Readability cleanups; MKfoo=no -> NOfoo. 2001-12-12 00:51:00 +00:00
itojun fb26763771 make z_off_t into off_t, which used to be "long" by mistake.
backward compatibility functions are supplied.

XXX increase shlib major, or minor?
1999-10-26 03:42:58 +00:00
garbled 61abb01179 libz works much better when the examples aren't compiled into the
library.  This caused severe pain with c++, as the example contained
a main().
1999-07-09 07:07:13 +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
tron 36d279e15c Resolve import conflicts. 1998-11-01 20:33:24 +00:00
lukem 570f447f0e use CPPFLAGS instead of CFLAGS 1997-10-23 03:31:09 +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
lukem ae6b9c674a WARNSify 1997-10-09 11:58:15 +00:00
veego 3d60b93f30 Remove the uneeded HDRS= line and add zconf.h to the INCS= line. 1997-05-25 22:58:09 +00:00
gwr 371ce0e795 Remove _ZLIB_PRIVATE and all related changes. The "exported" API
of this library includes the typedefs in zconf.h so export it too.
Our zlib should now work with "png" (fixes PR lib/3030).
1997-05-13 22:57:09 +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
thorpej 7f9ea0f2ed Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
cgd 9118c05a03 RCS ID police: add NetBSD RCS IDs to everything. Since it was imported with
normal RCS IDs apparently unmodified (i.e. they were clobbered), remove
the normal Id tags so they cause fewer conflicts later.
1996-09-13 00:29:49 +00:00
cgd 98a5e78a03 clean up 'make test' so that it works even in the presence of
'obj' dirs, and added minigzip to CLEANFILES.
1996-09-12 22:33:40 +00:00
gwr de831ea222 Separate interface from implementation so that zlib.h can be
included without the other, private header files.  Only zlib.h
should be installed in /usr/include; all others are private.
The Makefile has a "test" rule to verify that minigzip.c can
be compiled using only zlib.h (and that it actually works).
Note: This file has extensive modifications.
1996-09-12 19:33:53 +00:00