The NetBSD Project

CVS log for src/share/mk/bsd.lib.mk

[BACK] Up to [cvs.NetBSD.org] / src / share / mk

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.289.2.5 / (download) - annotate - [select for diffs], Wed Sep 3 02:09:24 2014 UTC (6 weeks, 5 days ago) by msaitoh
Branch: netbsd-5
Changes since 1.289.2.4: +15 -15 lines
Diff to previous 1.289.2.4 (colored) to branchpoint 1.289 (colored) next main 1.290 (colored) to selected 1.188 (colored)

Pull up following revision(s) (requested by tls in ticket #1338):
	share/mk/bsd.README: revision 1.265
	share/mk/bsd.lib.mk: revision 1.304
Change shared object file extension from .so to .pico, to avoid
conflicts with shared libaries names libXX.so; as recently seen with
MKUPDATE=yes builds for libelf and libnvpair.
All now stalled regular .so files need to be manually removed from
object directories.

Revision 1.324.2.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:38 2014 UTC (2 months ago) by tls
Branch: tls-maxphys
Changes since 1.324.2.3: +23 -46 lines
Diff to previous 1.324.2.3 (colored) to branchpoint 1.324 (colored) next main 1.325 (colored) to selected 1.188 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.349.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:30 2014 UTC (2 months, 1 week ago) by tls
Branch: tls-earlyentropy
Changes since 1.349: +4 -5 lines
Diff to previous 1.349 (colored) next main 1.350 (colored) to selected 1.188 (colored)

Rebase.

Revision 1.355 / (download) - annotate - [select for diffs], Fri Jun 13 01:17:45 2014 UTC (4 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7, HEAD
Changes since 1.354: +1 -3 lines
Diff to previous 1.354 (colored) to selected 1.188 (colored)

remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)

Revision 1.318.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:37:53 2014 UTC (4 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.318.2.3: +220 -186 lines
Diff to previous 1.318.2.3 (colored) to branchpoint 1.318 (colored) next main 1.319 (colored) to selected 1.188 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.354 / (download) - annotate - [select for diffs], Thu Apr 24 00:14:59 2014 UTC (5 months, 3 weeks ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.353: +3 -1 lines
Diff to previous 1.353 (colored) to selected 1.188 (colored)

allow use with linkers that don't support --warn-shared-textrel
(Solaris, OpenBSD)

Revision 1.353 / (download) - annotate - [select for diffs], Fri Apr 11 16:51:43 2014 UTC (6 months, 1 week ago) by matt
Branch: MAIN
Changes since 1.352: +3 -12 lines
Diff to previous 1.352 (colored) to selected 1.188 (colored)

Back changes from 1.349 on since the -Wl,-x bug has been fixed in binutils.

Revision 1.352 / (download) - annotate - [select for diffs], Fri Apr 11 15:56:09 2014 UTC (6 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.351: +8 -2 lines
Diff to previous 1.351 (colored) to selected 1.188 (colored)

explain what's going on, add another kludge for -g

Revision 1.351 / (download) - annotate - [select for diffs], Wed Apr 9 19:23:09 2014 UTC (6 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.350: +4 -2 lines
Diff to previous 1.350 (colored) to selected 1.188 (colored)

Since the objcopy -x removes debugging symbols, delay that if we are building
debugging libraries and do the stripping with the debug symbol separation
step.

Revision 1.350 / (download) - annotate - [select for diffs], Wed Apr 9 16:29:08 2014 UTC (6 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.349: +2 -2 lines
Diff to previous 1.349 (colored) to selected 1.188 (colored)

change -x to OBJCOPYLIBFLAGS like everywhere else.

Revision 1.349 / (download) - annotate - [select for diffs], Fri Apr 4 05:10:15 2014 UTC (6 months, 2 weeks ago) by matt
Branch: MAIN
Branch point for: tls-earlyentropy
Changes since 1.348: +4 -3 lines
Diff to previous 1.348 (colored) to selected 1.188 (colored)

Using -Wl,-x breaks build ARM BE8 shared libraries by striping the $a/$d/$t
symbols before the linker can use them.  Instead do ${OBJCOPY} -x ${.TARGET}
afterwards.

Revision 1.289.2.2.2.1.2.3 / (download) - annotate - [select for diffs], Fri Apr 4 05:07:14 2014 UTC (6 months, 2 weeks ago) by matt
Branch: matt-nb5-mips64
Changes since 1.289.2.2.2.1.2.2: +4 -3 lines
Diff to previous 1.289.2.2.2.1.2.2 (colored) to branchpoint 1.289.2.2.2.1 (colored) next main 1.289.2.3 (colored) to selected 1.188 (colored)

Using -Wl,-x breaks build ARM BE8 shared libraries by striping the $a/$d/$t
symbols before the linker can use them.  Instead do ${OBJCOPY} -x ${.TARGET}
afterwards.

Revision 1.348 / (download) - annotate - [select for diffs], Sun Mar 9 18:00:51 2014 UTC (7 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Changes since 1.347: +2 -2 lines
Diff to previous 1.347 (colored) to selected 1.188 (colored)

let's see if the new dwarf library can handle dwarf 4

Revision 1.347 / (download) - annotate - [select for diffs], Sun Mar 2 22:22:05 2014 UTC (7 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.346: +4 -1 lines
Diff to previous 1.346 (colored) to selected 1.188 (colored)

If we are compiling with -g and using gcc4.8 and dtrace downgrade
dwarf generation to version 2 for now.

Revision 1.346 / (download) - annotate - [select for diffs], Wed Feb 26 02:51:02 2014 UTC (7 months, 3 weeks ago) by mrg
Branch: MAIN
Changes since 1.345: +2 -2 lines
Diff to previous 1.345 (colored) to selected 1.188 (colored)

define EXTERNAL_GCC_SUBDIR based upon HAVE_GCC, for GCC >= 4.5,
and use it in the one place (bsd.lib.mk) it's used in share/mk.

Revision 1.345 / (download) - annotate - [select for diffs], Tue Jan 14 11:31:01 2014 UTC (9 months ago) by apb
Branch: MAIN
Changes since 1.344: +2 -2 lines
Diff to previous 1.344 (colored) to selected 1.188 (colored)

Let MKARZERO default to the same value as MKREPRO, so callers
can set MKREPRO=yes and automatically get MKARZERO=yes.

Revision 1.289.2.2.2.1.2.2 / (download) - annotate - [select for diffs], Wed Dec 18 18:39:05 2013 UTC (10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.289.2.2.2.1.2.1: +20 -20 lines
Diff to previous 1.289.2.2.2.1.2.1 (colored) to branchpoint 1.289.2.2.2.1 (colored) to selected 1.188 (colored)

Bring OBJCOPYLIBFLAGS from HEAD so we can preserve $a/$d/$t on BE ARM

Revision 1.344 / (download) - annotate - [select for diffs], Mon Dec 16 21:34:16 2013 UTC (10 months ago) by matt
Branch: MAIN
Changes since 1.343: +1 -5 lines
Diff to previous 1.343 (colored) to selected 1.188 (colored)

Back out change for bsd.lib.mk which skips objcopy -x for BE ARM.
Change OBJCOPYLIBFLAGS to keep $a/$d/$t symbols on BE ARM.

Revision 1.343 / (download) - annotate - [select for diffs], Fri Dec 13 02:47:45 2013 UTC (10 months, 1 week ago) by matt
Branch: MAIN
Changes since 1.342: +5 -1 lines
Diff to previous 1.342 (colored) to selected 1.188 (colored)

Don't strip local symbols for earmv7*eb images since that will break linking.

Revision 1.342 / (download) - annotate - [select for diffs], Fri Oct 18 16:06:52 2013 UTC (12 months ago) by christos
Branch: MAIN
Changes since 1.341: +2 -2 lines
Diff to previous 1.341 (colored) to selected 1.188 (colored)

change if HAVE_GCC is defined

Revision 1.341 / (download) - annotate - [select for diffs], Mon Oct 14 16:00:16 2013 UTC (12 months ago) by joerg
Branch: MAIN
Changes since 1.340: +2 -2 lines
Diff to previous 1.340 (colored) to selected 1.188 (colored)

Rename USE_LIBGCC to HAVE_LIBGCC and retry using it as flag on unwind.h.

Revision 1.340 / (download) - annotate - [select for diffs], Mon Oct 14 01:30:21 2013 UTC (12 months ago) by joerg
Branch: MAIN
Changes since 1.339: +2 -2 lines
Diff to previous 1.339 (colored) to selected 1.188 (colored)

Include compiler-rt and libunwind in libc for Clang/x86 builds.

Revision 1.339 / (download) - annotate - [select for diffs], Thu Sep 12 17:14:20 2013 UTC (13 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.338: +8 -1 lines
Diff to previous 1.338 (colored) to selected 1.188 (colored)

Handle dependency on libstdc++ / libc++ in bsd.lib.mk.

Revision 1.338 / (download) - annotate - [select for diffs], Thu Sep 12 15:36:16 2013 UTC (13 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.337: +7 -44 lines
Diff to previous 1.337 (colored) to selected 1.188 (colored)

Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.

Revision 1.336.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:33 2013 UTC (14 months, 3 weeks ago) by riastradh
Branch: riastradh-drm2
Changes since 1.336: +3 -1 lines
Diff to previous 1.336 (colored) next main 1.337 (colored) to selected 1.188 (colored)

sync with HEAD

Revision 1.337 / (download) - annotate - [select for diffs], Fri Jul 19 11:43:18 2013 UTC (15 months ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.336: +3 -1 lines
Diff to previous 1.336 (colored) to selected 1.188 (colored)

Enable opt-out from shlib mapfile creation.  Not all linkers (namely
the solaris one) support such fancy features.

no default functional change

Revision 1.336 / (download) - annotate - [select for diffs], Tue Jul 16 02:58:19 2013 UTC (15 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.335: +3 -1 lines
Diff to previous 1.335 (colored) to selected 1.188 (colored)

When linking shared libraries, produce a map file.

Revision 1.324.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:54 2013 UTC (15 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.324.2.2: +56 -21 lines
Diff to previous 1.324.2.2 (colored) to branchpoint 1.324 (colored) to selected 1.188 (colored)

resync from head

Revision 1.335 / (download) - annotate - [select for diffs], Mon Apr 22 22:16:14 2013 UTC (17 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.334: +11 -12 lines
Diff to previous 1.334 (colored) to selected 1.188 (colored)

Move addition of -g to CSHLIBFLAGS later in bsd.lib.mk.

It is now past any conditionals where its emptiness or nonemptiness can
influence the decision of what objects get built.

Fixes MKDEBUG=yes build on vax (PR 47700).

Revision 1.334 / (download) - annotate - [select for diffs], Thu Apr 11 01:27:47 2013 UTC (18 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.333: +6 -1 lines
Diff to previous 1.333 (colored) to selected 1.188 (colored)

Install shlibdir debug links

Revision 1.333 / (download) - annotate - [select for diffs], Thu Apr 4 21:15:15 2013 UTC (18 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.332: +45 -15 lines
Diff to previous 1.332 (colored) to selected 1.188 (colored)

fix mkdebug for private libraries.
while here, centralize the strip variable handling per type of object.

Revision 1.332.2.1 / (download) - annotate - [select for diffs], Tue Mar 26 01:54:23 2013 UTC (18 months, 3 weeks ago) by agc
Branch: agc-symver
Changes since 1.332: +10 -1 lines
Diff to previous 1.332 (colored) next main 1.333 (colored) to selected 1.188 (colored)

Add the version-script invocation for symbol versioning to the agc-symver
branch.

Revision 1.332 / (download) - annotate - [select for diffs], Tue Mar 5 21:16:24 2013 UTC (19 months, 2 weeks ago) by pooka
Branch: MAIN
CVS Tags: agc-symver-base
Branch point for: agc-symver
Changes since 1.331: +3 -2 lines
Diff to previous 1.331 (colored) to selected 1.188 (colored)

Make "make DBG=-g -O2" for a library once again produce a shared library
with debugging symbols (irregardless of .debug).

Revision 1.324.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:16 2013 UTC (19 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.324.2.1: +148 -128 lines
Diff to previous 1.324.2.1 (colored) to branchpoint 1.324 (colored) to selected 1.188 (colored)

resync with head

Revision 1.331 / (download) - annotate - [select for diffs], Wed Feb 13 08:00:47 2013 UTC (20 months ago) by nakayama
Branch: MAIN
Changes since 1.330: +3 -3 lines
Diff to previous 1.330 (colored) to selected 1.188 (colored)

Fix copy and paste miss introduced in rev 1.327.

Revision 1.330 / (download) - annotate - [select for diffs], Sat Feb 9 17:18:17 2013 UTC (20 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.329: +4 -4 lines
Diff to previous 1.329 (colored) to selected 1.188 (colored)

Allow setting _LIB_PREFIX externally.

Revision 1.329 / (download) - annotate - [select for diffs], Sat Feb 9 12:17:20 2013 UTC (20 months, 1 week ago) by spz
Branch: MAIN
Changes since 1.328: +2 -2 lines
Diff to previous 1.328 (colored) to selected 1.188 (colored)

typo in a MKDEBUGLIB part

Revision 1.328 / (download) - annotate - [select for diffs], Fri Feb 8 04:06:25 2013 UTC (20 months, 1 week ago) by matt
Branch: MAIN
Changes since 1.327: +2 -2 lines
Diff to previous 1.327 (colored) to selected 1.188 (colored)

Add missing }

Revision 1.327 / (download) - annotate - [select for diffs], Fri Feb 8 02:30:53 2013 UTC (20 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.326: +137 -123 lines
Diff to previous 1.326 (colored) to selected 1.188 (colored)

- factor out variables so that the code is more readable, make them conistent
- use _LIB_PREFIX correctly.

Revision 1.326 / (download) - annotate - [select for diffs], Tue Jan 22 20:43:17 2013 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.325: +9 -3 lines
Diff to previous 1.325 (colored) to selected 1.188 (colored)

Make the libfoo.so.X.Y.debug files actually contain debug symbols if MKDEBUG.

Revision 1.318.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:38 2013 UTC (21 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.318.2.2: +5 -1 lines
Diff to previous 1.318.2.2 (colored) to branchpoint 1.318 (colored) to selected 1.188 (colored)

sync with (a bit old) head

Revision 1.324.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:52 2012 UTC (22 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.324: +5 -1 lines
Diff to previous 1.324 (colored) to selected 1.188 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.325 / (download) - annotate - [select for diffs], Tue Nov 13 22:30:38 2012 UTC (23 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.324: +5 -1 lines
Diff to previous 1.324 (colored) to selected 1.188 (colored)

Make it easier build binaries against the host's libs, e.g.
libpthread which might be in /lib/x86_64-linux-gnu/libpthread.so.0
or some other unholy place.

Revision 1.318.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:46 2012 UTC (23 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.318.2.1: +3 -3 lines
Diff to previous 1.318.2.1 (colored) to branchpoint 1.318 (colored) to selected 1.188 (colored)

sync with head

Revision 1.324 / (download) - annotate - [select for diffs], Thu Aug 23 21:21:16 2012 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.323: +5 -1 lines
Diff to previous 1.323 (colored) to selected 1.188 (colored)

Revert last, it breaks the tricks xsrc uses.

Revision 1.323 / (download) - annotate - [select for diffs], Thu Aug 23 15:45:03 2012 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.322: +2 -6 lines
Diff to previous 1.322 (colored) to selected 1.188 (colored)

Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
SHLIBDIR differs from /usr/lib.

Revision 1.322 / (download) - annotate - [select for diffs], Thu Jul 19 19:42:45 2012 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.321: +3 -3 lines
Diff to previous 1.321 (colored) to selected 1.188 (colored)

From pooka: Fix EXTERNAL_TOOLCHAIN compilation where crti/crtn are not in the
same directory as crtbegin

Revision 1.318.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:50 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.318: +50 -20 lines
Diff to previous 1.318 (colored) to selected 1.188 (colored)

sync with head

Revision 1.321 / (download) - annotate - [select for diffs], Sun Feb 19 23:19:37 2012 UTC (2 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.320: +31 -1 lines
Diff to previous 1.320 (colored) to selected 1.188 (colored)

Add support for --combine with gcc.

Revision 1.320 / (download) - annotate - [select for diffs], Sat Jan 28 23:13:24 2012 UTC (2 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.319: +20 -20 lines
Diff to previous 1.319 (colored) to selected 1.188 (colored)

rename to OBJCOPYLIBFLAGS

Revision 1.319 / (download) - annotate - [select for diffs], Sat Jan 28 21:32:14 2012 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.318: +20 -20 lines
Diff to previous 1.318 (colored) to selected 1.188 (colored)

Provide a way to override the default objcopy flags for library modules.

Revision 1.318 / (download) - annotate - [select for diffs], Fri Oct 7 09:15:22 2011 UTC (3 years ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.317: +2 -2 lines
Diff to previous 1.317 (colored) to selected 1.188 (colored)

obsolete libgcc_pic and friends.  all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.

Revision 1.317 / (download) - annotate - [select for diffs], Sun Sep 25 11:20:41 2011 UTC (3 years ago) by apb
Branch: MAIN
Changes since 1.316: +21 -8 lines
Diff to previous 1.316 (colored) to selected 1.188 (colored)

If the number of entries in CLEANFILES is too large, then the
commands in bsd.clean.mk encounter errors like "exec(/bin/sh)
failed (Argument list too long)".  Avoid that by splitting the
files to clean into several lists using different variable names.

This should fix PR 45397, at least until the number of files
grows much larger.

Revision 1.316 / (download) - annotate - [select for diffs], Sat Sep 10 16:57:35 2011 UTC (3 years, 1 month ago) by apb
Branch: MAIN
Changes since 1.315: +9 -10 lines
Diff to previous 1.315 (colored) to selected 1.188 (colored)

Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.

Revision 1.315 / (download) - annotate - [select for diffs], Sat Aug 27 18:35:20 2011 UTC (3 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.314: +2 -1 lines
Diff to previous 1.314 (colored) to selected 1.188 (colored)

Add new "analyze" command to run clang's static analyzer in a directory
on all C/C++ files.

Revision 1.314 / (download) - annotate - [select for diffs], Mon Apr 11 23:03:38 2011 UTC (3 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.313: +3 -4 lines
Diff to previous 1.313 (colored) to selected 1.188 (colored)

Adjust --sysroot related usage:
-Wl,-rpath does not expand =, so just drop it.

Drop -Wl,-rpath-link entries that duplicate the -Wl,-rpath entries, this
is done implicitly now that ld is built with sysroot support.

Use ${DESTDIR} explicitly for the remaining -Wl,-rpath-link entries.

Revision 1.313 / (download) - annotate - [select for diffs], Sun Apr 10 16:52:36 2011 UTC (3 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.312: +6 -26 lines
Diff to previous 1.312 (colored) to selected 1.188 (colored)

For USETOOLS=yes, use the --sysroot support of the compiler to cut down
the number of hard-coded pathes and magic invocations.

Revision 1.310.2.2 / (download) - annotate - [select for diffs], Thu Feb 17 11:59:27 2011 UTC (3 years, 8 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.310.2.1: +5 -1 lines
Diff to previous 1.310.2.1 (colored) to branchpoint 1.310 (colored) next main 1.311 (colored) to selected 1.188 (colored)

Sync with HEAD

Revision 1.312 / (download) - annotate - [select for diffs], Thu Feb 10 21:55:33 2011 UTC (3 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.311: +5 -1 lines
Diff to previous 1.311 (colored) to selected 1.188 (colored)

Only define DPLIBC if LIBC_SO is not empty otherwise we an errant
dependency on DESTDIR.

Revision 1.310.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:08 2011 UTC (3 years, 8 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.310: +3 -2 lines
Diff to previous 1.310 (colored) to selected 1.188 (colored)

Sync with HEAD

Revision 1.311 / (download) - annotate - [select for diffs], Sun Feb 6 00:52:49 2011 UTC (3 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.310: +3 -2 lines
Diff to previous 1.310 (colored) to selected 1.188 (colored)

Allow HOSTLIB to use C++ by not specifying -nostdinc++.

Revision 1.289.2.4 / (download) - annotate - [select for diffs], Thu Jan 6 05:20:25 2011 UTC (3 years, 9 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.289.2.3: +4 -4 lines
Diff to previous 1.289.2.3 (colored) to branchpoint 1.289 (colored) to selected 1.188 (colored)

Apply patch (requested by mrg in ticket #1499):

src/compat version 2.  this allows building any number of alternate
library / program target ABIs.  rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support

Revision 1.310 / (download) - annotate - [select for diffs], Wed Dec 8 01:57:22 2010 UTC (3 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.309: +2 -2 lines
Diff to previous 1.309 (colored) to selected 1.188 (colored)

Don't depend on ${CC} passing down -R to ld, use -Wl,-rpath explicitly.

Revision 1.309 / (download) - annotate - [select for diffs], Mon Nov 8 06:54:52 2010 UTC (3 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.308: +5 -5 lines
Diff to previous 1.308 (colored) to selected 1.188 (colored)

Preserve date on original shared library or program when stripping
the debug symbols and adding the debug-link to .debug.
Use '(rm -f file; false)' in the failure path to force failure.
Based on solution proposed by Nicolas Joly on tech-toolchain in July 2010.
Should fix PR toolchain/44046 from Andreas Gustafsson.

Revision 1.308 / (download) - annotate - [select for diffs], Tue Jul 6 05:59:56 2010 UTC (4 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.307: +3 -14 lines
Diff to previous 1.307 (colored) to selected 1.188 (colored)

remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h

Revision 1.307 / (download) - annotate - [select for diffs], Tue Apr 27 14:32:14 2010 UTC (4 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.306: +26 -3 lines
Diff to previous 1.306 (colored) to selected 1.188 (colored)

Support MKDEBUG for shared libraries.

Revision 1.306 / (download) - annotate - [select for diffs], Mon Apr 26 03:46:00 2010 UTC (4 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.305: +2 -2 lines
Diff to previous 1.305 (colored) to selected 1.188 (colored)

fix comment (so bracket matching works as intended)

Revision 1.305 / (download) - annotate - [select for diffs], Tue Mar 2 20:49:18 2010 UTC (4 years, 7 months ago) by darran
Branch: MAIN
Changes since 1.304: +37 -1 lines
Diff to previous 1.304 (colored) to selected 1.188 (colored)

DTrace: Add CTF generation to the make framework.  Only enabled when
MKDTRACE=yes.

Revision 1.304 / (download) - annotate - [select for diffs], Mon Feb 22 12:33:22 2010 UTC (4 years, 7 months ago) by njoly
Branch: MAIN
Changes since 1.303: +15 -15 lines
Diff to previous 1.303 (colored) to selected 1.188 (colored)

Change shared object file extension from .so to .pico, to avoid
conflicts with shared libaries names libXX.so; as recently seen with
MKUPDATE=yes builds for libelf and libnvpair.

All now stalled regular .so files need to be manually removed from
object directories.

Revision 1.303 / (download) - annotate - [select for diffs], Mon Jan 25 00:43:00 2010 UTC (4 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.302: +3 -3 lines
Diff to previous 1.302 (colored) to selected 1.188 (colored)

PR/42658: Geoff Wing: Quote directory variables to deal with spaces in the
source pathname.

Revision 1.302 / (download) - annotate - [select for diffs], Wed Dec 30 12:34:13 2009 UTC (4 years, 9 months ago) by abs
Branch: MAIN
Changes since 1.301: +3 -1 lines
Diff to previous 1.301 (colored) to selected 1.188 (colored)

Add brief line on SHLIB_MAJOR, SHLIB_MINOR and SHLIB_TEENY in comments
section - addresses PR bin/39693

Revision 1.289.2.2.2.1.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 06:33:16 2009 UTC (4 years, 10 months ago) by mrg
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.289.2.2.2.1: +4 -4 lines
Diff to previous 1.289.2.2.2.1 (colored) to selected 1.188 (colored)

from current:
>replace /usr/lib with ${_GCC_CRTDIR} or ${SHLIBDIR} as appropriate.

Revision 1.301 / (download) - annotate - [select for diffs], Sat Dec 12 21:33:50 2009 UTC (4 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.300: +4 -4 lines
Diff to previous 1.300 (colored) to selected 1.188 (colored)

replace /usr/lib with ${_GCC_CRTDIR} or ${SHLIBDIR} as appropriate.

Revision 1.300 / (download) - annotate - [select for diffs], Tue Dec 8 15:18:42 2009 UTC (4 years, 10 months ago) by uebayasi
Branch: MAIN
Changes since 1.299: +8 -12 lines
Diff to previous 1.299 (colored) to selected 1.188 (colored)

When PROGS / LIBS are used, you can pass each PROG / LIB specific parameters
to ${LD} via:

	${LDADD.${PROG}}
	${LDFLAGS.${PROG}}
	${LDSTATIC.${PROG}}
	${LDADD.${LIB}}
	${LDFLAGS.${LIB}}

OTOH you can't pass parameters to ${CC}, because in suffix rules make(1) only
knows the name of ${.IMPSRC} and ${.TARGET}; it's users' responsivility to
define ${CC} parameters to all the sources of a given ${PROG} / ${LIB}.

Should address bin/42381.

(Bug in this commit log was pointed out by mrg@.)

Revision 1.299 / (download) - annotate - [select for diffs], Fri Nov 27 11:44:36 2009 UTC (4 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.298: +5 -1 lines
Diff to previous 1.298 (colored) to selected 1.188 (colored)

If CPPFLAGS or CXXFLAGS already contains -nostdinc or -nostdinc++,
don't add ${CPPFLAGS_ISYSTEM} or ${CPPFLAGS_ISYSTEMXX} to refer
${DESTDIR}/usr/include or ${DESTDIR}/usr/include/g++.

This change might cause errors on some MD stand dir, but in that case
each Makefile should be fixed to search proper system include paths
by -Ipath option in own CPPFLAGS.

Revision 1.289.2.2.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 22:10:49 2009 UTC (5 years, 4 months ago) by bouyer
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.289.2.2: +4 -1 lines
Diff to previous 1.289.2.2 (colored) next main 1.289.2.3 (colored) to selected 1.188 (colored)

Pull up following revision(s) (requested by snj in ticket #790):
	share/mk/bsd.lib.mk: revision 1.298
	share/mk/bsd.man.mk: revision 1.100
	share/mk/bsd.hostprog.mk: revision 1.55
	distrib/sets/maketars: revision 1.66
	share/zoneinfo/Makefile: revision 1.43
	share/mk/bsd.kmodule.mk: revision 1.19
	usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
	share/mk/bsd.prog.mk: revision 1.241
	share/dict/Makefile: revision 1.17
	share/mk/bsd.README: revision 1.249
	distrib/common/parselist.awk: revision 1.16
	share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.289.2.3 / (download) - annotate - [select for diffs], Sat Jun 6 22:10:12 2009 UTC (5 years, 4 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.289.2.2: +4 -1 lines
Diff to previous 1.289.2.2 (colored) to branchpoint 1.289 (colored) to selected 1.188 (colored)

Pull up following revision(s) (requested by snj in ticket #790):
	share/mk/bsd.lib.mk: revision 1.298
	share/mk/bsd.man.mk: revision 1.100
	share/mk/bsd.hostprog.mk: revision 1.55
	distrib/sets/maketars: revision 1.66
	share/zoneinfo/Makefile: revision 1.43
	share/mk/bsd.kmodule.mk: revision 1.19
	usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
	share/mk/bsd.prog.mk: revision 1.241
	share/dict/Makefile: revision 1.17
	share/mk/bsd.README: revision 1.249
	distrib/common/parselist.awk: revision 1.16
	share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.295.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:16 2009 UTC (5 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.295: +18 -4 lines
Diff to previous 1.295 (colored) next main 1.296 (colored) to selected 1.188 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.298 / (download) - annotate - [select for diffs], Fri Apr 10 16:16:12 2009 UTC (5 years, 6 months ago) by apb
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.297: +4 -1 lines
Diff to previous 1.297 (colored) to selected 1.188 (colored)

Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.297 / (download) - annotate - [select for diffs], Wed Apr 1 17:47:39 2009 UTC (5 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.296: +3 -1 lines
Diff to previous 1.296 (colored) to selected 1.188 (colored)

Add a _ARRANFL for the flags for invoking ar as ranlib.
Will be used only for Makefile.rump for now.

Revision 1.296 / (download) - annotate - [select for diffs], Fri Mar 13 16:23:31 2009 UTC (5 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.295: +13 -4 lines
Diff to previous 1.295 (colored) to selected 1.188 (colored)

Add a MKARZERO flag, which invokes ar(1) with the new D flag when it
is set to "yes" -- defaults to "no" except for build.sh builds. This
results in a deterministic .a file rather than one that reflects
timestamps and permissions on the source files.

Also, clean up the ar flags we're using, and remove a redundant use of
ranlib that on a modern POSIX ar can be done with the "s" flag.

Discussed on tech-toolchain

Revision 1.295 / (download) - annotate - [select for diffs], Sat Jan 17 12:09:58 2009 UTC (5 years, 9 months ago) by he
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.294: +3 -1 lines
Diff to previous 1.294 (colored) to selected 1.188 (colored)

If we have a SHLIB_VERSION_FILE, add is as a dependency for the
library.  This is mostly a convenience, so that you can trigger
a shared library rebuild by touching the shlib_version file, it
should not otherwise impact the build one way or the other.

Revision 1.294 / (download) - annotate - [select for diffs], Sat Jan 17 12:07:59 2009 UTC (5 years, 9 months ago) by he
Branch: MAIN
Changes since 1.293: +3 -3 lines
Diff to previous 1.293 (colored) to selected 1.188 (colored)

Move _LIBLDOPTS and LDFLAGS to a spot behind LDADD when making a
shared library.  This is done so that -L options pointing into
DESTDIR will come after -L options pointing into our object tree
for shared libraries this shared library depends on.

This makes a difference when shared library major numbers are bumped
(as was recently done in our tree), and you build into an already-
populated DESTDIR, because otherwise the old major version shared
libraries will be picked up, because the new ones have not yet been
installed at this stage. This will in all probability lead to
conflicts later on when linking programs, where one would try to
mix new and old major versions for the same shared library.

I *hope* this will not have any negatively impact by moving other
order-dependent options around; local tests with rebuilds did not
uncover any problems I could see.

OK'ed by lukem@

Revision 1.289.2.2 / (download) - annotate - [select for diffs], Fri Jan 9 03:35:51 2009 UTC (5 years, 9 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1
Branch point for: netbsd-5-0
Changes since 1.289.2.1: +10 -3 lines
Diff to previous 1.289.2.1 (colored) to branchpoint 1.289 (colored) to selected 1.188 (colored)

Pull up following revision(s) (requested by mrg in ticket #242):
	external/mit/xorg/lib/libGLU/Makefile: revision 1.3
	share/mk/bsd.README: revision 1.244
	share/mk/bsd.lib.mk: revision 1.291
add LIBISCXX.  if it is != "no", use ${CXX} instead of ${CC} to link
shared libraries.  use it for the one c++ library we have.
fixes PR#39936.

Revision 1.293 / (download) - annotate - [select for diffs], Thu Jan 8 20:03:59 2009 UTC (5 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.292: +3 -1 lines
Diff to previous 1.292 (colored) to selected 1.188 (colored)

Add comment requesting modifications to __archivebuild be reflected
in the rump build.

Revision 1.292 / (download) - annotate - [select for diffs], Mon Dec 8 13:10:21 2008 UTC (5 years, 10 months ago) by pooka
Branch: MAIN
Changes since 1.291: +5 -1 lines
Diff to previous 1.291 (colored) to selected 1.188 (colored)

Don't use -isystem in rump builds.  This ensures that only headers
in the kernel tree are used.

Revision 1.291 / (download) - annotate - [select for diffs], Sat Dec 6 19:32:05 2008 UTC (5 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.290: +10 -3 lines
Diff to previous 1.290 (colored) to selected 1.188 (colored)

add LIBISCXX.  if it is != "no", use ${CXX} instead of ${CC} to link
shared libraries.  use it for the one c++ library we have.

fixes PR#39936.

Revision 1.289.2.1 / (download) - annotate - [select for diffs], Mon Dec 1 00:36:29 2008 UTC (5 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.289: +7 -4 lines
Diff to previous 1.289 (colored) to selected 1.188 (colored)

Pull up following revision(s) (requested by cube in ticket #151):
	share/mk/bsd.lib.mk: revision 1.290
Allow the use of NOSTATICLIB along with LIBISPRIVATE to build private libs
that are suitable to be linked into a shared lib.

Revision 1.290 / (download) - annotate - [select for diffs], Mon Nov 24 02:01:46 2008 UTC (5 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.289: +7 -4 lines
Diff to previous 1.289 (colored) to selected 1.188 (colored)

Allow the use of NOSTATICLIB along with LIBISPRIVATE to build private libs
that are suitable to be linked into a shared lib.

Revision 1.289 / (download) - annotate - [select for diffs], Sun Oct 19 22:05:21 2008 UTC (6 years ago) by apb
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.288: +2 -1 lines
Diff to previous 1.288 (colored) to selected 1.188 (colored)

Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.

Revision 1.288 / (download) - annotate - [select for diffs], Sun Oct 19 15:22:50 2008 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.287: +2 -1 lines
Diff to previous 1.287 (colored) to selected 1.188 (colored)

handle assembly files for MKPIE

Revision 1.287 / (download) - annotate - [select for diffs], Fri Oct 17 17:29:39 2008 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.286: +7 -1 lines
Diff to previous 1.286 (colored) to selected 1.188 (colored)

make .a archives PIC for MKPIE

Revision 1.273.4.2 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:24 2008 UTC (6 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.273.4.1: +45 -21 lines
Diff to previous 1.273.4.1 (colored) to branchpoint 1.273 (colored) next main 1.274 (colored) to selected 1.188 (colored)

Sync with HEAD.

Revision 1.281.2.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:41:22 2008 UTC (6 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.281.2.1: +4 -1 lines
Diff to previous 1.281.2.1 (colored) to branchpoint 1.281 (colored) next main 1.282 (colored) to selected 1.188 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.281.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:38:09 2008 UTC (6 years, 1 month ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.281: +43 -22 lines
Diff to previous 1.281 (colored) to selected 1.188 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.286 / (download) - annotate - [select for diffs], Tue Sep 9 11:54:19 2008 UTC (6 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, mjf-devfs2-base
Changes since 1.285: +4 -1 lines
Diff to previous 1.285 (colored) to selected 1.188 (colored)

Add MKSTRIPIDENT to remove the RCS IDs from binary programs and shared
libraries for space-constraint systems. The description is based on the
feedback of hubertf@, the logic on input from lukem@

This obsoletes the removal of LIBC_SCCS and SYSLIBC_SCCS for libc builds.

Revision 1.285 / (download) - annotate - [select for diffs], Wed Aug 13 16:36:15 2008 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.284: +2 -2 lines
Diff to previous 1.284 (colored) to selected 1.188 (colored)

fix debugging library build.

Revision 1.284 / (download) - annotate - [select for diffs], Sun Aug 10 11:06:43 2008 UTC (6 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.283: +8 -4 lines
Diff to previous 1.283 (colored) to selected 1.188 (colored)

Fix installed symlinks for LIBISMODULE=yes.
Further fixes to support for SHLIB_MAJOR set without SHLIB_MINOR.

Revision 1.283 / (download) - annotate - [select for diffs], Sun Aug 10 10:42:01 2008 UTC (6 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.282: +3 -1 lines
Diff to previous 1.282 (colored) to selected 1.188 (colored)

When building a .so, don't require the library to have a minor version.
Prevents a "stat: Too many levels of symlinks" build error.

Revision 1.282 / (download) - annotate - [select for diffs], Sun Aug 10 09:25:04 2008 UTC (6 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.281: +34 -19 lines
Diff to previous 1.281 (colored) to selected 1.188 (colored)

Implement LIBISMODULE:
	If not "no", install as ${LIB}.so (without the "lib" prefix),
	and act as "MKDEBUGLIB=no MKLINT=no MKPICINSTALL=no
	MKPROFILE=no MKSTATICLIB=no".
	Default: no

Revision 1.273.4.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:43 2008 UTC (6 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.273: +45 -12 lines
Diff to previous 1.273 (colored) to selected 1.188 (colored)

Sync with HEAD.

Revision 1.273.6.1 / (download) - annotate - [select for diffs], Sun May 18 12:31:18 2008 UTC (6 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.273: +45 -12 lines
Diff to previous 1.273 (colored) next main 1.274 (colored) to selected 1.188 (colored)

sync with head.

Revision 1.281 / (download) - annotate - [select for diffs], Sat May 3 14:48:31 2008 UTC (6 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.280: +7 -5 lines
Diff to previous 1.280 (colored) to selected 1.188 (colored)

Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)

Revision 1.280 / (download) - annotate - [select for diffs], Sat May 3 14:36:06 2008 UTC (6 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.279: +15 -2 lines
Diff to previous 1.279 (colored) to selected 1.188 (colored)

Provide a "lint" target that will lint all the sources, even if MKLINT=no.
(MKLINT=no still prevents installation of the lint libraries).
Explictly disable some library variations if MKPRIVATELIB=yes.

Revision 1.279 / (download) - annotate - [select for diffs], Fri May 2 11:45:19 2008 UTC (6 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.278: +4 -4 lines
Diff to previous 1.278 (colored) to selected 1.188 (colored)

Explicitly set MKLINT=no if MKLINKLIB==no, rather than just acting that way.

Revision 1.278 / (download) - annotate - [select for diffs], Tue Apr 29 07:48:31 2008 UTC (6 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.277: +6 -3 lines
Diff to previous 1.277 (colored) to selected 1.188 (colored)

Use -nodefaultlibs instead of -nostdlib when linking libc and libgcc*
so that we still link in the crt* start/end files.
Explicitly link libc against gcc_pic, since -nodefaultlibs undoes this.

Fixes problems where shared libraries don't get init/fini sections,
most easily noticable with pthreads programs not working.

Approved by: skrll
Thanks: bjs, mrg, icb peanut gallery.

Revision 1.277 / (download) - annotate - [select for diffs], Sun Apr 27 23:48:10 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.276: +13 -9 lines
Diff to previous 1.276 (colored) to selected 1.188 (colored)

now that gcc adds -lc, reverse the logic and explain.

Revision 1.276 / (download) - annotate - [select for diffs], Sat Apr 26 22:28:13 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.275: +7 -2 lines
Diff to previous 1.275 (colored) to selected 1.188 (colored)

Exempt gcc libraries from linking against libc.

Revision 1.275 / (download) - annotate - [select for diffs], Sat Apr 26 21:26:03 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.274: +2 -2 lines
Diff to previous 1.274 (colored) to selected 1.188 (colored)

deal with modules that don't define lib.

Revision 1.274 / (download) - annotate - [select for diffs], Sat Apr 26 20:03:44 2008 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.273: +10 -4 lines
Diff to previous 1.273 (colored) to selected 1.188 (colored)

make all shared libraries depend on libc.

Revision 1.271.4.2 / (download) - annotate - [select for diffs], Sun Mar 23 00:45:37 2008 UTC (6 years, 6 months ago) by matt
Branch: matt-armv6
Changes since 1.271.4.1: +1 -10 lines
Diff to previous 1.271.4.1 (colored) to branchpoint 1.271 (colored) next main 1.272 (colored) to selected 1.188 (colored)

sync with HEAD

Revision 1.273 / (download) - annotate - [select for diffs], Wed Jan 9 11:26:14 2008 UTC (6 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.272: +1 -10 lines
Diff to previous 1.272 (colored) to selected 1.188 (colored)

Remove support for NetBSD/pc532.

Revision 1.271.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:13:21 2007 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.271: +2 -1 lines
Diff to previous 1.271 (colored) to selected 1.188 (colored)

sync with HEAD

Revision 1.272 / (download) - annotate - [select for diffs], Sat Sep 15 14:36:14 2007 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pc532-eol-2008, matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.271: +2 -1 lines
Diff to previous 1.271 (colored) to selected 1.188 (colored)

Enable text relocation warnings.

Revision 1.271 / (download) - annotate - [select for diffs], Sun Mar 18 09:08:45 2007 UTC (7 years, 7 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.270: +2 -2 lines
Diff to previous 1.270 (colored) to selected 1.188 (colored)

CPPICFLAGS -> CPPPICFLAGS (in comments)

Revision 1.270 / (download) - annotate - [select for diffs], Thu Nov 23 12:05:26 2006 UTC (7 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.269: +7 -7 lines
Diff to previous 1.269 (colored) to selected 1.188 (colored)

When checking wether we are debugging, look for -g in ${CFLAGS} instead
of ${COPTS}. The latter explicitly includes the former and ${DBG}, where
the -g most likely is hidden.

Revision 1.269 / (download) - annotate - [select for diffs], Mon Sep 18 05:15:35 2006 UTC (8 years, 1 month ago) by dbj
Branch: MAIN
Changes since 1.268: +8 -8 lines
Diff to previous 1.268 (colored) to selected 1.188 (colored)

pay attention to MKUPDATE instead of UPDATE when installing libs

Revision 1.268 / (download) - annotate - [select for diffs], Sat Jul 22 05:29:03 2006 UTC (8 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.267: +3 -3 lines
Diff to previous 1.267 (colored) to selected 1.188 (colored)

Rename MKDEBUG to MKDEBUGLIB.

Revision 1.267 / (download) - annotate - [select for diffs], Thu May 11 23:47:34 2006 UTC (8 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.266: +8 -6 lines
Diff to previous 1.266 (colored) to selected 1.188 (colored)

add support for ${OBJCOPTS} and ${OBJCOPTS}.<lib|prog|fn>.

Revision 1.266 / (download) - annotate - [select for diffs], Sun Apr 9 01:52:06 2006 UTC (8 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.265: +58 -5 lines
Diff to previous 1.265 (colored) to selected 1.188 (colored)

Add MKDEBUG and the ability to build debugging versions of the libraries.

Revision 1.265 / (download) - annotate - [select for diffs], Thu Mar 30 19:49:02 2006 UTC (8 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.264: +2 -2 lines
Diff to previous 1.264 (colored) to selected 1.188 (colored)

make symlink types consistent.

Revision 1.264 / (download) - annotate - [select for diffs], Thu Mar 16 18:43:34 2006 UTC (8 years, 7 months ago) by jwise
Branch: MAIN
Changes since 1.263: +10 -10 lines
Diff to previous 1.263 (colored) to selected 1.188 (colored)

Now that we have real build system support for syspkgs, remove someone's
half-implemented idea of building `syspkgs' (really a few giant blobs of the
same granularity of the old sets) using install(1).

Revision 1.263 / (download) - annotate - [select for diffs], Sat Jan 28 11:10:18 2006 UTC (8 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.262: +49 -91 lines
Diff to previous 1.262 (colored) to selected 1.188 (colored)

Use ${OBJCOPY} -[xX] ${.TARGET} instead of getting the file written to
${.TARGET}.tmp and running ${LD} -[xX] ...
I don't believe there are any architectures where objcopy can't delete local
symbols.

Revision 1.262 / (download) - annotate - [select for diffs], Sun Jan 8 01:23:51 2006 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.261: +8 -7 lines
Diff to previous 1.261 (colored) to selected 1.188 (colored)

Compile all profiling sources with -DPROF -DGPROF, not just assembly sources.

Revision 1.261 / (download) - annotate - [select for diffs], Tue May 10 14:54:02 2005 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.260: +2 -2 lines
Diff to previous 1.260 (colored) to selected 1.188 (colored)

Also use relative symlinks for the /usr/lib/lib${LIB}.so.${SHLIB_FULLVERSION}
symlink to ../../lib/... because runtime lookups on the former aren't
speed critical either.

Revision 1.260 / (download) - annotate - [select for diffs], Tue May 10 02:01:06 2005 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.259: +2 -2 lines
Diff to previous 1.259 (colored) to selected 1.188 (colored)

Restore rev 1.247:
Use relative symlinks for /usr/lib/libfoo.so -> /lib/libfoo.so.M.N
This should work now that "install -l r -d destdir" works if destdir
contains a symlink.

Revision 1.259 / (download) - annotate - [select for diffs], Mon Jan 10 02:42:34 2005 UTC (9 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.258: +1 -5 lines
Diff to previous 1.258 (colored) to selected 1.188 (colored)

Revert previous (1.258): we don't want to link .so libraries against
(non-PIC) .a libraries, and the problem which triggered the addition
of the previous has been fixed by providing librpcsvc as a .so.

Revision 1.258 / (download) - annotate - [select for diffs], Wed Dec 29 14:41:05 2004 UTC (9 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.257: +5 -1 lines
Diff to previous 1.257 (colored) to selected 1.188 (colored)

When setting DPADD based on LIBDPLIBS, only add the .so if it exists
and fallback to the .a instead.  This allows the use of libraries
which are .so only, have both .so & .a, and are .a only.

Revision 1.257 / (download) - annotate - [select for diffs], Thu Dec 2 00:00:41 2004 UTC (9 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.256: +2 -1 lines
Diff to previous 1.256 (colored) to selected 1.188 (colored)

Add COPTS to AFLAGS so assembly files pick up flags like -msoft-float.

Revision 1.256 / (download) - annotate - [select for diffs], Wed Aug 4 08:00:27 2004 UTC (10 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.255: +13 -1 lines
Diff to previous 1.255 (colored) to selected 1.188 (colored)

Implement LIBDPLIBS, which is a list of the tuples:
	libname  path-to-srcdir-of-libname

For each tuple;
     *	LIBDO.libname contains the .OBJDIR of the library `libname', and
	if it is not set it is determined from the srcdir and added to
	MAKEOVERRIDES (the latter is to allow for build time optimization).
     *	LDADD gets  -L${LIBDO.libname} -llibname    added.
     *	DPADD gets  ${LIBDO.libname}/liblibname.so  added.

Revision 1.255 / (download) - annotate - [select for diffs], Thu Jul 29 03:14:04 2004 UTC (10 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.254: +8 -6 lines
Diff to previous 1.254 (colored) to selected 1.188 (colored)

Assign STOBJS the value of OBJS, and use that when referring to static
library objects, rather than using OBJS to refer to them.  This gives us
a separate variable to refer to static library objects that does not affect
profile library objects (which has POBJS) or shared library objects (which
has SOBJS).

Revision 1.254 / (download) - annotate - [select for diffs], Thu Jun 10 00:29:59 2004 UTC (10 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.253: +2 -2 lines
Diff to previous 1.253 (colored) to selected 1.188 (colored)

Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253

Revision 1.253 / (download) - annotate - [select for diffs], Wed Jun 9 22:45:24 2004 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.252: +6 -5 lines
Diff to previous 1.252 (colored) to selected 1.188 (colored)

PR/25887: Peter Bex: Missing yacc dependency in bsd Make system

Revision 1.252 / (download) - annotate - [select for diffs], Sun May 23 01:45:21 2004 UTC (10 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.251: +27 -19 lines
Diff to previous 1.251 (colored) to selected 1.188 (colored)

* Add MKPRIVATELIB; if not "no", act as "MKPROFILE=no MKPIC=no MKLINT=no"
  and don't install the (.a) library.
  This is useful for "build only" helper libraries.
* Add some  #{  [...]  #}  comments around large conditional statements.

Revision 1.251 / (download) - annotate - [select for diffs], Sun Apr 18 13:11:31 2004 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.250: +25 -20 lines
Diff to previous 1.250 (colored) to selected 1.188 (colored)

Rework .s.{o,po,so} and .S.{o,po,so} to be more like the <bsd.sys.mk> rules:
- support ${COPTS.<fn>} ${CPUFLAGS.<fn>} ${CPPFLAGS.<fn>}
  (deficiency noted by Tyler Retzlaff <rtr@NetBSD.org>)
- use ${COMPILE.s} for .s.o .s.po .s.so (instead of ${COMPILE.S})
- don't support AINC anymore; append to AFLAGS instead

Remove .c.ln - it was a duplicate of the rule in <bsd.sys.mk>

Revision 1.250 / (download) - annotate - [select for diffs], Mon Feb 23 21:12:13 2004 UTC (10 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.249: +1 -9 lines
Diff to previous 1.249 (colored) to selected 1.188 (colored)

hppa can uses the standard flags so remove the unnecessary special case.

Revision 1.249 / (download) - annotate - [select for diffs], Sun Feb 15 19:52:27 2004 UTC (10 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.248: +1 -4 lines
Diff to previous 1.248 (colored) to selected 1.188 (colored)

Be more gcc like in the way we deal with libgcc so that sh3/hppa millicode
and exception handling have a chance of working properly.

        - creates libgcc, libgcc_eh and libgcc_s

        - updates LIBGCC_SPEC to use them appropriately.

          There's a hack in here at the moment with respect to libgcc_so in that it
          is preferable to link against libgcc_so will only when -shared-libgcc is
          specified (the c++ frontend does this automatically.) Configurations where
          LINK_EH_SPEC is defined already do this. The gcc configuration for
          NetBSD/alpha and another NetBSD platform (I forget which) actually define
          LINK_EH_SPEC probably by accident rather than design.

        - updates share/mk to use the compiler's knowledge of what needs linking into
          libraries and executables. This removes an hppa hack.

        - updates the sets for the newly created libgcc* files.

	- support for linking against the _pg version of libgcc has been removed.

Revision 1.248 / (download) - annotate - [select for diffs], Mon Feb 9 06:35:18 2004 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.247: +1 -1 lines
Diff to previous 1.247 (colored) to selected 1.188 (colored)

Revert previous; install -l r  doesn't appear to work correctly when
DESTDIR is a symlink.
(Yet another reason why "-l r" looks good on paper but sucks in practice).

Revision 1.247 / (download) - annotate - [select for diffs], Fri Feb 6 12:34:11 2004 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.246: +2 -2 lines
Diff to previous 1.246 (colored) to selected 1.188 (colored)

Convert the /usr/lib/libfoo.so -> /lib/libfoo.so.M.N link into a relative link.
This simplifies using ld with ${DESTDIR}/usr/lib whilst retaining the
(slightly faster) absolute links for the run-time libraries.
Per discussion on tech-toolchain.

(Side note;  install(1) -l r  needs the source to be prefixed with ${DESTDIR}
to operate correctly, which makes it non trivial to enable '-l r' by default
for all ${INSTALL_SYMLINK}s)

Revision 1.246 / (download) - annotate - [select for diffs], Thu Jan 29 01:48:45 2004 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.245: +3 -3 lines
Diff to previous 1.245 (colored) to selected 1.188 (colored)

Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.

Revision 1.245 / (download) - annotate - [select for diffs], Tue Jan 27 03:31:48 2004 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.244: +14 -5 lines
Diff to previous 1.244 (colored) to selected 1.188 (colored)

Replace
	:M-[IDU]*
with
	:C/-([IDU])[  ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)

Revision 1.244 / (download) - annotate - [select for diffs], Wed Jan 7 15:27:08 2004 UTC (10 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.243: +2 -2 lines
Diff to previous 1.243 (colored) to selected 1.188 (colored)

Correct a comment

Revision 1.243 / (download) - annotate - [select for diffs], Tue Dec 23 10:30:02 2003 UTC (10 years, 9 months ago) by rtr
Branch: MAIN
Changes since 1.242: +5 -1 lines
Diff to previous 1.242 (colored) to selected 1.188 (colored)

Need to provide alternate definitions of __archive{build,install} for x11.
approved by lukem

Revision 1.242 / (download) - annotate - [select for diffs], Sun Dec 7 12:56:45 2003 UTC (10 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.241: +10 -1 lines
Diff to previous 1.241 (colored) to selected 1.188 (colored)

No shared libraries on ns32k at the moment - set *PICFLAGS to nothing.

Revision 1.241 / (download) - annotate - [select for diffs], Thu Nov 13 05:56:30 2003 UTC (10 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.240: +4 -4 lines
Diff to previous 1.240 (colored) to selected 1.188 (colored)

Use ${HOST_LN}
Fix how hppa gets to -lgcc_pic

Revision 1.240 / (download) - annotate - [select for diffs], Tue Nov 11 11:43:45 2003 UTC (10 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.239: +2 -9 lines
Diff to previous 1.239 (colored) to selected 1.188 (colored)

Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend.  I don't think .afterdepend is used anywhere any more.

Revision 1.239 / (download) - annotate - [select for diffs], Sun Oct 26 03:29:44 2003 UTC (10 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.238: +2 -2 lines
Diff to previous 1.238 (colored) to selected 1.188 (colored)

use ${HOST_SH} instead of sh

Revision 1.238 / (download) - annotate - [select for diffs], Tue Oct 21 10:01:21 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.237: +25 -112 lines
Diff to previous 1.237 (colored) to selected 1.188 (colored)

Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.

Revision 1.237 / (download) - annotate - [select for diffs], Sun Oct 19 03:00:55 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.236: +25 -25 lines
Diff to previous 1.236 (colored) to selected 1.188 (colored)

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} "  ...  {$.TARGET}"  and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO

Revision 1.236 / (download) - annotate - [select for diffs], Sat Oct 18 15:33:59 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.235: +115 -9 lines
Diff to previous 1.235 (colored) to selected 1.188 (colored)

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
    0	Minimal output ("quiet")
    1	Describe what is occurring
    2	Describe what is occurring and echo the actual command ("verbose")
	This is the default, and is equivalent to the previous behaviour.

Revision 1.235 / (download) - annotate - [select for diffs], Tue Sep 30 07:24:23 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.234: +15 -3 lines
Diff to previous 1.234 (colored) to selected 1.188 (colored)

Set _LIBLDOPTS to set -Wl,-rpath-link -R -L appropriately based
on the setting of ${SHLIBDIR} and ${SHLIBINSTALLDIR} (_not_ ${_LIBSODIR}).

Fixes cruel and unusual ^W^W^W obscure native-build and not-so-obscure
cross-builds problems I was having with shared libraries with a
non-base LIBDIR (e.g, /usr/X11R6/lib) that use LDADD to pull in other
libraries from /usr/lib (such as libm) which are really in /lib and the
symlink from ${DESTDIR}/usr/lib/libm.so to /lib/libm.so.N.M was confusing
the linker.  Stuffing -rpath-link ${DESTDIR}/lib in solves the problem.

This should mean that shared libraries that depend upon other shared
libraries in other directories should DTRT in a DESTDIR (cross-)build...

Inspired by _PROGLDOPTS in <bsd.prog.mk>

Revision 1.234 / (download) - annotate - [select for diffs], Sat Sep 13 19:08:27 2003 UTC (11 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.233: +9 -9 lines
Diff to previous 1.233 (colored) to selected 1.188 (colored)

implement MKSTATICLIB, which defaults to "yes".  if "no" (which NOSTATICLIB
also sets, a la the other variables), prevents build and installation
of the "normal" static *.a libraries.

Revision 1.233 / (download) - annotate - [select for diffs], Sat Sep 13 03:44:20 2003 UTC (11 years, 1 month ago) by erh
Branch: MAIN
Changes since 1.232: +3 -1 lines
Diff to previous 1.232 (colored) to selected 1.188 (colored)

Also support per-program LDFLAGS and LDSTATIC.

Revision 1.232 / (download) - annotate - [select for diffs], Sat Sep 13 02:52:05 2003 UTC (11 years, 1 month ago) by erh
Branch: MAIN
Changes since 1.231: +7 -1 lines
Diff to previous 1.231 (colored) to selected 1.188 (colored)

Create a way to add additional flags to COPTS, CPPFLAGS, CXXFLAGS and LDADD
for particular libraries or programs by specifying the additions in mk.conf
instead of needing to go edit individual Makefiles.

Revision 1.231 / (download) - annotate - [select for diffs], Sun Aug 24 09:35:49 2003 UTC (11 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored) to selected 1.188 (colored)

Support ${LDFLAGS} when linking libraries

Revision 1.230 / (download) - annotate - [select for diffs], Fri Aug 1 17:04:01 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.229: +5 -2 lines
Diff to previous 1.229 (colored) to selected 1.188 (colored)

Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".

Revision 1.229 / (download) - annotate - [select for diffs], Mon Jul 28 23:54:24 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.228: +2 -2 lines
Diff to previous 1.228 (colored) to selected 1.188 (colored)

be consistent when adding *.y and *.l to DPSRCS

Revision 1.228 / (download) - annotate - [select for diffs], Mon Jul 28 04:08:47 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.227: +65 -79 lines
Diff to previous 1.227 (colored) to selected 1.188 (colored)

Overhaul how the .{c,cc,cpp,cxx,C,f,m.S}.{o,po,so} rules are implemented:
only list the (often complicated) ${COMPILE.*} rules once always building
to ${.TARGET}.tmp.  Then, depending on whether *OPTS has -g, either
"mv ${.TARGET}.tmp ${.TARGET}" or "${LD} -[xX] -r ${TARGET}.tmp -o ${.TARGET}"
as appropriate.
This can prevent inconsistency that could occur between "echo ${COMPILE.*:Q}"
and "${COMPILE.*}", such as the problem in rev 1.226.  (There were still
examples of this in .cc.so and .m.so !!!)

Remove `@' from most non-echo rules, so that we can actually see what's
happening.  This helps debugging problems, such as that fixed by rev 1.226.

Always remove all possible temp files that might occur because of the above.

Be consistent about ${CC} instead of $(CC)

Revision 1.227 / (download) - annotate - [select for diffs], Mon Jul 28 02:29:35 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.226: +3 -2 lines
Diff to previous 1.226 (colored) to selected 1.188 (colored)

Pull in <bsd.sys.mk> before supplying our own .c.o (et al) rules.
Otherwise, <bsd.sys.mk>'s implementations will be used instead.  (oops!)

Revision 1.226 / (download) - annotate - [select for diffs], Mon Jul 28 00:51:47 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.225: +2 -2 lines
Diff to previous 1.225 (colored) to selected 1.188 (colored)

fix typo (insert botch? :) in previous, which broke .cxx.po

Revision 1.225 / (download) - annotate - [select for diffs], Sun Jul 27 14:49:22 2003 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.224: +11 -11 lines
Diff to previous 1.224 (colored) to selected 1.188 (colored)

introduce a new $CPPFLAG_ISYSTEMXX that is used to reference c++ system
includes.  for GCC3, set this to -I instead of -isystem.

XXX this should really be either not required or a -isystem-cxx, but for
now this is required to build libstdc++-v3, which otherwise complains
heavily about STL headers not being C code(!)

Revision 1.224 / (download) - annotate - [select for diffs], Tue Jul 22 06:53:22 2003 UTC (11 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.223: +11 -11 lines
Diff to previous 1.223 (colored) to selected 1.188 (colored)

Add source-file-specific variables in <bsd.lib.mk> and <bsd.prog.mk>:

COPTS.<fn>	Additional flags to the compiler when creating the C objects
		for <fn>.

CPUFLAGS.<fn>	Additional flags to the compiler/assembler for <fn>.

CPPFLAGS.<fn>	Additional flags to the C pre-processor for <fn>.


(For <fn>.[ly], "<fn>.c" must be used.)

Revision 1.223 / (download) - annotate - [select for diffs], Sun Jul 20 17:01:58 2003 UTC (11 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.222: +5 -5 lines
Diff to previous 1.222 (colored) to selected 1.188 (colored)

Consistently support the different C++ file extensions: .cc .cpp .cxx .C
Noted by Andrew White in PR toolchain/18246

Revision 1.222 / (download) - annotate - [select for diffs], Fri Jul 18 04:04:03 2003 UTC (11 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.221: +6 -6 lines
Diff to previous 1.221 (colored) to selected 1.188 (colored)

whitespace cleanup

Revision 1.221 / (download) - annotate - [select for diffs], Fri Jun 27 17:27:11 2003 UTC (11 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.220: +11 -14 lines
Diff to previous 1.220 (colored) to selected 1.188 (colored)

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.

Revision 1.220 / (download) - annotate - [select for diffs], Wed Jun 11 04:56:58 2003 UTC (11 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.219: +2 -2 lines
Diff to previous 1.219 (colored) to selected 1.188 (colored)

catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX

Revision 1.219 / (download) - annotate - [select for diffs], Sat May 31 20:33:16 2003 UTC (11 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.218: +4 -9 lines
Diff to previous 1.218 (colored) to selected 1.188 (colored)

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.

Revision 1.218 / (download) - annotate - [select for diffs], Tue May 27 19:32:18 2003 UTC (11 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.217: +6 -6 lines
Diff to previous 1.217 (colored) to selected 1.188 (colored)

Use && instead of ; to only overwrite a file if the corresponding sed worked (from christos).
Add .cpp rules.

Revision 1.217 / (download) - annotate - [select for diffs], Mon May 26 12:38:59 2003 UTC (11 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.216: +2 -2 lines
Diff to previous 1.216 (colored) to selected 1.188 (colored)

s/${ECHO}/@echo/, since we don't define ECHO in share/mk.

Revision 1.216 / (download) - annotate - [select for diffs], Tue Apr 22 12:55:26 2003 UTC (11 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.215: +5 -2 lines
Diff to previous 1.215 (colored) to selected 1.188 (colored)

fix lossage caused by previous commit.

Revision 1.215 / (download) - annotate - [select for diffs], Sun Apr 20 21:57:17 2003 UTC (11 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.214: +3 -1 lines
Diff to previous 1.214 (colored) to selected 1.188 (colored)

PR/6257: Izumi Tsutsui: bsd.lib.mk should set target only if LIB is defined.

Revision 1.214 / (download) - annotate - [select for diffs], Fri Apr 11 22:40:31 2003 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.213: +1 -14 lines
Diff to previous 1.213 (colored) to selected 1.188 (colored)

Provide the MKPICLIB value in bsd.own.mk, rather than bsd.lib.mk.  It
is sometimes necessary for non-library Makefiles to determine if _pic
libraries are being built.

Problem pointed out by Havard Eidnes.

Revision 1.213 / (download) - annotate - [select for diffs], Sun Mar 30 00:35:07 2003 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.212: +7 -1 lines
Diff to previous 1.212 (colored) to selected 1.188 (colored)

If MACHINE_ARCH is powerpc and we HAVE_GCC3, add crtsaveres.o to the
endfile spec.

Revision 1.203.2.1 / (download) - annotate - [select for diffs], Sat Nov 30 15:31:03 2002 UTC (11 years, 10 months ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.203: +5 -1 lines
Diff to previous 1.203 (colored) next main 1.204 (colored) to selected 1.188 (colored)

Pull up revision 1.206 (requested by thorpej in ticket #814):
  If DESTDIR is set, add ${DESTDIR}/usr/libdata to the lint
  library search path.  This works around the problem of lint
  using the wrong lint libraries until a "lint -d ..."
  equivalent is implemented for libraries.

Revision 1.212 / (download) - annotate - [select for diffs], Fri Nov 22 06:44:56 2002 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.211: +3 -3 lines
Diff to previous 1.211 (colored) to selected 1.188 (colored)

Split crtbegin/crtend into crti/crtbegin/crtend/crtn.  NetBSD-specific
things like the .note.netbsd.ident section are provided by crti/crtn.
crti/crtn also provide the _init() and _fini() routines.

crtbegin/crtend now only provide support for ctors/dtors.  This paves
the way to using the "crtstuff" provided with GCC (when we upgrade to
GCC 3.3), which provides, among other things, much better C++/Java
exception handling.

Revision 1.211 / (download) - annotate - [select for diffs], Sun Nov 10 21:26:44 2002 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.210: +6 -6 lines
Diff to previous 1.210 (colored) to selected 1.188 (colored)

Oops, AINC actually is still used; put it back.

Revision 1.210 / (download) - annotate - [select for diffs], Sun Nov 10 18:15:29 2002 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.209: +7 -10 lines
Diff to previous 1.209 (colored) to selected 1.188 (colored)

The MIPS toolchain now defines __ABICALLS__ when abicalls are in use,
and the sources now use that define, so there is no need for us to define
ABICALLS.  Since that was the only use for the AINC variable, garbage-collect
it.

Revision 1.209 / (download) - annotate - [select for diffs], Sat Nov 9 08:22:04 2002 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.208: +7 -6 lines
Diff to previous 1.208 (colored) to selected 1.188 (colored)

Now that the compiler does the right thing with -KPIC, we no longer
need to add it (or -fpic, for that matter) explicitly when building
shared libraries on MIPS.

Revision 1.208 / (download) - annotate - [select for diffs], Tue Oct 22 18:48:28 2002 UTC (12 years ago) by perry
Branch: MAIN
Changes since 1.207: +20 -15 lines
Diff to previous 1.207 (colored) to selected 1.188 (colored)

Pass 1 of SYSPKG changes to automatically add tags=pkgname_pkg to METALOG.
Not quite ready for prime time yet.

Revision 1.207 / (download) - annotate - [select for diffs], Fri Sep 27 21:37:56 2002 UTC (12 years ago) by thorpej
Branch: MAIN
Changes since 1.206: +2 -1 lines
Diff to previous 1.206 (colored) to selected 1.188 (colored)

Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being
built is /bin or /sbin.

The reason we do this is because now all programs *except* those in
/bin and /sbin (i.e. the "special cases") match the default the compiler
uses, which is what is used for things in e.g. xsrc, pkgsrc, and other
random 3rd party programs.

This is done by decoupling where a shlib is installed from how it
is located.  Two new variables, SHLIBINSTALLDIR and SHLINKINSTALLDIR,
contain the former information, and key off MKDYNAMICROOT only.  SHLIBDIR
and SHLINKDIR contain the latter, and key off MKDYNAMICROOT and BINDIR.

The SHLIBINSTALLDIR, SHLIBDIR, _LIBSODIR, SHLINKINSTALLDIR, and
SHLINKDIR parameters are moved to a new <bsd.shlib.mk>; see bsd.README
for usage details.

Revision 1.206 / (download) - annotate - [select for diffs], Sat Sep 14 16:56:10 2002 UTC (12 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.205: +5 -1 lines
Diff to previous 1.205 (colored) to selected 1.188 (colored)

If DESTDIR is set, add ${DESTDIR}/usr/libdata to the lint library
search path.  This works around the problem of lint using the
wrong lint libraries until a "lint -d ..." equivalent is implemented
for libraries.

Revision 1.205 / (download) - annotate - [select for diffs], Sat Jul 20 08:50:10 2002 UTC (12 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.204: +30 -10 lines
Diff to previous 1.204 (colored) to selected 1.188 (colored)

- add CSHLIBFLAGS.
- fix typos in comment.

Revision 1.204 / (download) - annotate - [select for diffs], Mon Jul 1 19:29:31 2002 UTC (12 years, 3 months ago) by fredette
Branch: MAIN
Changes since 1.203: +12 -1 lines
Diff to previous 1.203 (colored) to selected 1.188 (colored)

Added a temporary workaround when building libraries for hppa:
link in libgcc to get the millicode routines.

Revision 1.203 / (download) - annotate - [select for diffs], Tue May 7 02:06:32 2002 UTC (12 years, 5 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.202: +2 -2 lines
Diff to previous 1.202 (colored) to selected 1.188 (colored)

Don't add -DBIGPIC to APICFLAGS.

Revision 1.202 / (download) - annotate - [select for diffs], Tue May 7 01:45:45 2002 UTC (12 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.201: +5 -4 lines
Diff to previous 1.201 (colored) to selected 1.188 (colored)

Turn on 32-bit relocations for sparc64 PIC code.

Revision 1.201 / (download) - annotate - [select for diffs], Fri Apr 26 15:02:02 2002 UTC (12 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.200: +3 -3 lines
Diff to previous 1.200 (colored) to selected 1.188 (colored)

Implement NETBSDSRCDIR, which is the top level of the NetBSD source tree.
Defaults to the directory determined by the _SRC_TOP_ logic (if != ""),
and the BSDSRCDIR.

NETBSDSRCDIR has been provided for use by the various NetBSD source
Makefiles to find the top of the NetBSD source tree, and isn't
affected by the inheritance properties of _SRC_TOP_, nor does it
have the magic BSDOBJDIR baggage that BSDSRCDIR is stuck with.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Apr 10 15:05:45 2002 UTC (12 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored) to selected 1.188 (colored)

replace BSDSRCDIR with _SRC_TOP_, since the latter is more likely to
be "accurate".  document _SRC_TOP_.

Revision 1.199 / (download) - annotate - [select for diffs], Tue Mar 19 22:17:23 2002 UTC (12 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.198: +2 -2 lines
Diff to previous 1.198 (colored) to selected 1.188 (colored)

use ${VAR:D:U...}  if we only want a value in the undefined case

Revision 1.198 / (download) - annotate - [select for diffs], Tue Mar 19 14:39:22 2002 UTC (12 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.197: +3 -4 lines
Diff to previous 1.197 (colored) to selected 1.188 (colored)

Change library installation.
Instead of:
	install -m 600 [...]
	ranlib -t [...]
	chmod 444 [...]
use the newly added "-a" flag to install(1) to invoke ranlib ifndef UPDATE.
Should prevent unnecessary ranlib-ing of installed libraries with UPDATE
defined.

Per discussion with simonb.

Revision 1.197 / (download) - annotate - [select for diffs], Mon Feb 11 21:15:00 2002 UTC (12 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.196: +39 -13 lines
Diff to previous 1.196 (colored) to selected 1.188 (colored)

Don't use .PHONY for targets that are actually installed.  Instead use force
dependencies.  (Among other things, `make -t install' does something vaguely
sensible now.)

Revision 1.196 / (download) - annotate - [select for diffs], Fri Dec 28 01:40:50 2001 UTC (12 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.195: +4 -4 lines
Diff to previous 1.195 (colored) to selected 1.188 (colored)

cosmetic tweak on an older comment

Revision 1.195 / (download) - annotate - [select for diffs], Fri Dec 28 01:32:41 2001 UTC (12 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.194: +24 -11 lines
Diff to previous 1.194 (colored) to selected 1.188 (colored)

* 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

Revision 1.194 / (download) - annotate - [select for diffs], Wed Nov 28 04:38:29 2001 UTC (12 years, 10 months ago) by tv
Branch: MAIN
Changes since 1.193: +2 -1 lines
Diff to previous 1.193 (colored) to selected 1.188 (colored)

If DESTDIR is set, do a similar nostdinc dance for the standard C++ include
directory.

Revision 1.193 / (download) - annotate - [select for diffs], Sat Nov 24 21:23:38 2001 UTC (12 years, 10 months ago) by perry
Branch: MAIN
Changes since 1.192: +7 -9 lines
Diff to previous 1.192 (colored) to selected 1.188 (colored)

Now that install has been fixed to deal with -r in the symlink case,
make bsd.lib.mk use INSTALL_SYMLINK instead of mv and ln -s.
Note: There is still one weird case I left alone, in which symlinks
get built in the objdir. I didn't want to log metadata for those links
so I left the old machinery in for them.
XXX do we even need that elaborate dance for the ln's in the objdir?

Revision 1.192 / (download) - annotate - [select for diffs], Mon Nov 19 02:46:50 2001 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.191: +2 -2 lines
Diff to previous 1.191 (colored) to selected 1.188 (colored)

Use a little transitional hack to determine if we use -isystem
or -idirafter.  Use the former only of USE_NEW_TOOLCHAIN, since
-isystem causes the old toolchain to bomb out when building
libstdc++.

Revision 1.191 / (download) - annotate - [select for diffs], Wed Nov 14 23:06:26 2001 UTC (12 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored) to selected 1.188 (colored)

C/..$/.c/ -> C/\..$/.c/

Revision 1.190 / (download) - annotate - [select for diffs], Wed Nov 14 21:49:53 2001 UTC (12 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.189: +3 -1 lines
Diff to previous 1.189 (colored) to selected 1.188 (colored)

Move the DESTDIR-based nostdinc logic to bsd.lib.mk and bsd.prog.mk where
it belongs (with the native target compile rules).

Revision 1.189 / (download) - annotate - [select for diffs], Fri Nov 2 07:25:58 2001 UTC (12 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.188: +1 -3 lines
Diff to previous 1.188 (colored)

Set installed library mode correctly in UNPRIVILEGED case.

Revision 1.188 / (download) - annotate - [selected], Fri Nov 2 05:21:50 2001 UTC (12 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.187: +13 -19 lines
Diff to previous 1.187 (colored)

Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments.  The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ.  Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.

Revision 1.187 / (download) - annotate - [select for diffs], Thu Oct 25 19:32:15 2001 UTC (12 years, 11 months ago) by nathanw
Branch: MAIN
Changes since 1.186: +2 -4 lines
Diff to previous 1.186 (colored) to selected 1.188 (colored)

Don't explicitly set SHLIB_LDSTARTFILE and SHLIB_LDENDFILE for the
generic architecture case; this permits the later ELF clause to set
them properly for ELF platforms.

This will cause crtbeginS.o and crtendS.o to be included in shared
libraries built on all ELF platforms, not just alpha, mips, vax, and
sparc.

Revision 1.186 / (download) - annotate - [select for diffs], Fri Oct 19 15:55:52 2001 UTC (13 years ago) by tv
Branch: MAIN
Changes since 1.185: +5 -7 lines
Diff to previous 1.185 (colored) to selected 1.188 (colored)

Add .NOPATH for all files generated from .l or .y files in SRCS.  Fixes PRs
bin/14187 and lib/14239.

Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.

Revision 1.185 / (download) - annotate - [select for diffs], Fri Sep 21 15:25:49 2001 UTC (13 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.184: +4 -4 lines
Diff to previous 1.184 (colored) to selected 1.188 (colored)

Since SHLIB_MAJOR may be set even in a MKPIC=no situation, make sure that
print-shlib-* targets only print stuff if MKPIC=yes.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Sep 21 15:16:09 2001 UTC (13 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.183: +2 -2 lines
Diff to previous 1.183 (colored) to selected 1.188 (colored)

If SHLIB_MAJOR is explicitly set in a Makefile, don't even look for a
shlib_version file.  (Part of a larger change which will also update
checkver to deal with this, and migrate old makefiles to include
SHLIB_MAJOR/SHLIB_MINOR.  For now, just add the hooks so that the old
gnu/lib toolchain libraries can use this as a workaround.)

Revision 1.183 / (download) - annotate - [select for diffs], Tue Aug 14 07:02:13 2001 UTC (13 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.182: +2 -2 lines
Diff to previous 1.182 (colored) to selected 1.188 (colored)

Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").

Revision 1.182 / (download) - annotate - [select for diffs], Fri Jun 8 11:41:59 2001 UTC (13 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.181: +5 -5 lines
Diff to previous 1.181 (colored) to selected 1.188 (colored)

redo the previous; allow SHLIB_LDSTARTFILE and SHLIB_LDENDFILE to be overridden.

Revision 1.181 / (download) - annotate - [select for diffs], Thu Jun 7 15:28:55 2001 UTC (13 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored) to selected 1.188 (colored)

set SHLIB_LDSTARTFILE and SHLIB_LDENDFILE based on ${LIBDIR} not hard coded
/usr/lib.

Revision 1.180 / (download) - annotate - [select for diffs], Fri Jun 1 17:49:33 2001 UTC (13 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.179: +2 -2 lines
Diff to previous 1.179 (colored) to selected 1.188 (colored)

Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).

Revision 1.179 / (download) - annotate - [select for diffs], Fri Apr 27 17:04:39 2001 UTC (13 years, 5 months ago) by dmcmahill
Branch: MAIN
Changes since 1.178: +49 -6 lines
Diff to previous 1.178 (colored) to selected 1.188 (colored)

add support for building shared libs from fortran sources.  Works correctly
with the default of 'f77' as the fortran compiler or using the 'f2c-f77'
script from pkgsrc (selected by overriding the FC variable)

Revision 1.178 / (download) - annotate - [select for diffs], Tue Dec 5 22:18:30 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.177: +5 -5 lines
Diff to previous 1.177 (colored) to selected 1.188 (colored)

This is *purely* anal-retentive, but: remove extra spaces in the generated
commands in the previous.

Revision 1.177 / (download) - annotate - [select for diffs], Tue Dec 5 22:12:37 2000 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.176: +11 -9 lines
Diff to previous 1.176 (colored) to selected 1.188 (colored)

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).

Revision 1.169.2.6 / (download) - annotate - [select for diffs], Fri Sep 29 19:27:00 2000 UTC (14 years ago) by skrll
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.169.2.5: +28 -18 lines
Diff to previous 1.169.2.5 (colored) to branchpoint 1.169 (colored) next main 1.170 (colored) to selected 1.188 (colored)

Pullup 1.172->1.173 of bsd.lib.mk
Approved by: thorpej

PR/10556: Veego: Shared library support was broken if shlib_version file
was not present.

Revision 1.169.2.5 / (download) - annotate - [select for diffs], Tue Aug 22 06:27:13 2000 UTC (14 years, 2 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.169.2.4: +2 -1 lines
Diff to previous 1.169.2.4 (colored) to branchpoint 1.169 (colored) to selected 1.188 (colored)

pull up from trunk, approved by thorpej:
>revision 1.175
>date: 2000/07/19 14:16:22;  author: mrg;  state: Exp;  lines: +3 -9
>simplify previous.
>revision 1.174
>date: 2000/07/17 16:49:30;  author: eeh;  state: Exp;  lines: +8 -1
>Tell gas how to make PIC objects on sparc64.

Revision 1.152.2.4 / (download) - annotate - [select for diffs], Mon Aug 14 14:04:12 2000 UTC (14 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.152.2.3: +15 -8 lines
Diff to previous 1.152.2.3 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored) to selected 1.188 (colored)

Apply revision 1.173 (via patch, requested by he):
  Make shared library support work if shlib_version file is missing.
  Fixes PR#10556.

Revision 1.169.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 10:39:57 2000 UTC (14 years, 2 months ago) by kleink
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.169.2.3: +32 -20 lines
Diff to previous 1.169.2.3 (colored) to branchpoint 1.169 (colored) to selected 1.188 (colored)

Pull up rev. 1.171 (approved by thorpej):
Introduce the optional "teeny" variable in shlib_version, so that
we don't abuse the "minor" number to optionally include the
"teeny" number.  Replace explicit ${SHLIB_MAJOR}.${SHLIB_MINOR}
with ${SHLIB_FULLVERSION}.

Revision 1.169.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 03:24:25 2000 UTC (14 years, 2 months ago) by gmcgarry
Branch: netbsd-1-5
Changes since 1.169.2.2: +2 -2 lines
Diff to previous 1.169.2.2 (colored) to branchpoint 1.169 (colored) to selected 1.188 (colored)

Pull-up approved by releng-1-5:

 > basesrc/lib/checkvers (revision 1.6)
 > sharesrc/share/mk/bsd.lib.mk (revision 1.176)
 >
 > Remove executable permission from src/lib/checkver.

Revision 1.176 / (download) - annotate - [select for diffs], Wed Aug 9 23:41:24 2000 UTC (14 years, 2 months ago) by gmcgarry
Branch: MAIN
Changes since 1.175: +2 -2 lines
Diff to previous 1.175 (colored) to selected 1.188 (colored)

Remove executable permission from src/lib/checkver.

Revision 1.169.2.2 / (download) - annotate - [select for diffs], Wed Jul 26 23:15:49 2000 UTC (14 years, 2 months ago) by mycroft
Branch: netbsd-1-5
Changes since 1.169.2.1: +8 -1 lines
Diff to previous 1.169.2.1 (colored) to branchpoint 1.169 (colored) to selected 1.188 (colored)

Approved by thorpej:
Add support for building PIC on sparc64.

sharesrc/share/mk/bsd.lib.mk				1.173 -> 1.174

Revision 1.175 / (download) - annotate - [select for diffs], Wed Jul 19 14:16:22 2000 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.174: +3 -9 lines
Diff to previous 1.174 (colored) to selected 1.188 (colored)

simplify previous.

Revision 1.174 / (download) - annotate - [select for diffs], Mon Jul 17 16:49:30 2000 UTC (14 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.173: +8 -1 lines
Diff to previous 1.173 (colored) to selected 1.188 (colored)

Tell gas how to make PIC objects on sparc64.

Revision 1.173 / (download) - annotate - [select for diffs], Fri Jul 14 19:53:04 2000 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.172: +28 -18 lines
Diff to previous 1.172 (colored) to selected 1.188 (colored)

PR/10556: Veego: Shared library support was broken if shlib_version file
was not present.

Revision 1.152.2.3 / (download) - annotate - [select for diffs], Thu Jul 6 16:54:37 2000 UTC (14 years, 3 months ago) by he
Branch: netbsd-1-4
Changes since 1.152.2.2: +2 -2 lines
Diff to previous 1.152.2.2 (colored) to branchpoint 1.152 (colored) to selected 1.188 (colored)

Apply patch (requested by he):
  Correct a typo.

Revision 1.172 / (download) - annotate - [select for diffs], Thu Jul 6 16:48:48 2000 UTC (14 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.171: +5 -1 lines
Diff to previous 1.171 (colored) to selected 1.188 (colored)

Add NetBSD/vax ELF hook.

Revision 1.152.2.2 / (download) - annotate - [select for diffs], Wed Jul 5 20:48:04 2000 UTC (14 years, 3 months ago) by he
Branch: netbsd-1-4
Changes since 1.152.2.1: +23 -17 lines
Diff to previous 1.152.2.1 (colored) to branchpoint 1.152 (colored) to selected 1.188 (colored)

Pull up revision 1.171 (via patch, requested by he):
  Introduce the optional "teeny" variable in shlib_version, so that
  we don't abuse the "minor" number to optionally include the
  "teeny" number.  Replace explicit ${SHLIB_MAJOR}.${SHLIB_MINOR}
  with ${SHLIB_FULLVERSION}.

Revision 1.171 / (download) - annotate - [select for diffs], Mon Jul 3 21:08:55 2000 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.170: +33 -21 lines
Diff to previous 1.170 (colored) to selected 1.188 (colored)

add support for teeny dewey numbers; cleanup duplicated variables.

Revision 1.169.2.1 / (download) - annotate - [select for diffs], Thu Jun 29 23:35:08 2000 UTC (14 years, 3 months ago) by thorpej
Branch: netbsd-1-5
Changes since 1.169: +2 -2 lines
Diff to previous 1.169 (colored) to selected 1.188 (colored)

Update from trunk:
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.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Jun 25 05:07:22 2000 UTC (14 years, 3 months ago) by erh
Branch: MAIN
Changes since 1.169: +2 -2 lines
Diff to previous 1.169 (colored) to selected 1.188 (colored)

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.

Revision 1.167.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 16:17:55 2000 UTC (14 years, 4 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.167: +22 -10 lines
Diff to previous 1.167 (colored) next main 1.168 (colored) to selected 1.188 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Jun 19 19:35:05 2000 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.168: +12 -1 lines
Diff to previous 1.168 (colored) to selected 1.188 (colored)

Add print-shlib-major and print-shlib-minor targets.

Revision 1.168 / (download) - annotate - [select for diffs], Tue Jun 6 09:22:01 2000 UTC (14 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.167: +11 -10 lines
Diff to previous 1.167 (colored) to selected 1.188 (colored)

Minor rearrangement.

Revision 1.167 / (download) - annotate - [select for diffs], Wed May 3 15:15:50 2000 UTC (14 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.166: +9 -6 lines
Diff to previous 1.166 (colored) to selected 1.188 (colored)

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}.

Revision 1.166 / (download) - annotate - [select for diffs], Wed May 3 03:44:12 2000 UTC (14 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.165: +6 -4 lines
Diff to previous 1.165 (colored) to selected 1.188 (colored)

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).

Revision 1.165 / (download) - annotate - [select for diffs], Sat Apr 29 17:41:11 2000 UTC (14 years, 5 months ago) by dmcmahill
Branch: MAIN
Changes since 1.164: +4 -4 lines
Diff to previous 1.164 (colored) to selected 1.188 (colored)

Change -fpic to -fPIC.  Change was approved by mycroft.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Apr 24 14:22:05 2000 UTC (14 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.163: +10 -10 lines
Diff to previous 1.163 (colored) to selected 1.188 (colored)

White space bogons (double spaces, spaces instead of tabs).

Revision 1.163 / (download) - annotate - [select for diffs], Sat Feb 19 05:36:23 2000 UTC (14 years, 8 months ago) by erh
Branch: MAIN
Changes since 1.162: +2 -1 lines
Diff to previous 1.162 (colored) to selected 1.188 (colored)

Add NOPATH for all output files to prevent their presence in the search path from causing problems.

Revision 1.162 / (download) - annotate - [select for diffs], Sat Jan 22 19:31:01 2000 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.161: +2 -2 lines
Diff to previous 1.161 (colored) to selected 1.188 (colored)

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.

Revision 1.161 / (download) - annotate - [select for diffs], Mon Jan 17 18:37:23 2000 UTC (14 years, 9 months ago) by abs
Branch: MAIN
Changes since 1.160: +1 -2 lines
Diff to previous 1.160 (colored) to selected 1.188 (colored)

remove duplicate += of OBJS, introduced in 1.158 - fixes PR #8487

Revision 1.159.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:31:11 1999 UTC (14 years, 9 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.159: +24 -16 lines
Diff to previous 1.159 (colored) next main 1.160 (colored) to selected 1.188 (colored)

Pull up to last week's -current.

Revision 1.160 / (download) - annotate - [select for diffs], Sun Nov 28 04:50:42 1999 UTC (14 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.159: +24 -16 lines
Diff to previous 1.159 (colored) to selected 1.188 (colored)

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.

Revision 1.159 / (download) - annotate - [select for diffs], Tue Sep 14 01:31:11 1999 UTC (15 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.158: +2 -1 lines
Diff to previous 1.158 (colored) to selected 1.188 (colored)

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".

Revision 1.158 / (download) - annotate - [select for diffs], Sun Sep 12 00:31:34 1999 UTC (15 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.157: +9 -5 lines
Diff to previous 1.157 (colored) to selected 1.188 (colored)

sort the object file build so that we get better buffer cache behavior.
[from perry, with fixes from me]

Revision 1.152.2.1 / (download) - annotate - [select for diffs], Fri Sep 10 22:55:14 1999 UTC (15 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002
Changes since 1.152: +6 -6 lines
Diff to previous 1.152 (colored) to selected 1.188 (colored)

Pull up revision 1.157:
  Allow natural use of multiple "make" targets in the main tree
  without setting BUILD, fixing PR#8313 and PR#3894.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Sep 4 21:48:33 1999 UTC (15 years, 1 month ago) by fredb
Branch: MAIN
Changes since 1.156: +6 -6 lines
Diff to previous 1.156 (colored) to selected 1.188 (colored)

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.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Aug 21 06:17:46 1999 UTC (15 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.155: +7 -7 lines
Diff to previous 1.155 (colored) to selected 1.188 (colored)

Add ${INSTPRIV} to ${INSTALL} commands.

Revision 1.155.2.1 / (download) - annotate - [select for diffs], Tue Aug 10 00:43:36 1999 UTC (15 years, 2 months ago) by mcr
Branch: mortalinstall
Changes since 1.155: +17 -2 lines
Diff to previous 1.155 (colored) next main 1.156 (colored) to selected 1.188 (colored)

	added Makefile flag "MORTALINSTALL" which removes -o/-g from
	install arguments:
MORTALINSTALL	If "yes", then omit setting group and ownership on
		all files that are installed. This can be used to
		permit non-root to install files, particularly
		useful when working across NFS, or when $DESTDIR
		is local. Do not use on production systems.

	This relates to PR bin/3563.
	These files are being checked into a branch because I want
	them carefully reviewed by various parties, and because they
	are not fully tested.

Revision 1.155 / (download) - annotate - [select for diffs], Wed Jul 14 20:18:07 1999 UTC (15 years, 3 months ago) by wrstuden
Branch: MAIN
Branch point for: mortalinstall
Changes since 1.154: +3 -3 lines
Diff to previous 1.154 (colored) to selected 1.188 (colored)

Re-arrange location of "-nostdlib" in DESTDIR case so that cross-ld's
won't name the output file "stdlib".

Revision 1.154 / (download) - annotate - [select for diffs], Thu Jun 10 00:40:05 1999 UTC (15 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.153: +6 -5 lines
Diff to previous 1.153 (colored) to selected 1.188 (colored)

Use ${SHLIB_VERSION_FILE} as the location of the shared library version
file.  Pass this to checkver with the new -v option as well.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Jun 7 01:37:00 1999 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.152: +37 -1 lines
Diff to previous 1.152 (colored) to selected 1.188 (colored)

Don't strip symbols if -g is specified. We might want to be able to debug
libraries!

Revision 1.152 / (download) - annotate - [select for diffs], Tue Mar 30 09:30:43 1999 UTC (15 years, 6 months ago) by fair
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.151: +10 -1 lines
Diff to previous 1.151 (colored) to selected 1.188 (colored)

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!).

Revision 1.151 / (download) - annotate - [select for diffs], Wed Feb 24 14:42:36 1999 UTC (15 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored) to selected 1.188 (colored)

add missing parts of the "mips"->"mipse?" transition

Revision 1.150 / (download) - annotate - [select for diffs], Sun Feb 14 19:12:09 1999 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.149: +8 -1 lines
Diff to previous 1.149 (colored) to selected 1.188 (colored)

Add sparc/elf bits.

Revision 1.149 / (download) - annotate - [select for diffs], Fri Feb 12 12:38:45 1999 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.148: +4 -4 lines
Diff to previous 1.148 (colored) to selected 1.188 (colored)

for MKSHARE=no, set MKDOC=no MKMAN=no MKNLS=no, and for MKMAN=no, set
MKCATPAGES=no.  this simplifies various tests.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Feb 12 01:10:07 1999 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.147: +19 -19 lines
Diff to previous 1.147 (colored) to selected 1.188 (colored)

* 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).

Revision 1.147 / (download) - annotate - [select for diffs], Thu Feb 4 11:58:30 1999 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.146: +7 -7 lines
Diff to previous 1.146 (colored) to selected 1.188 (colored)

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.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Dec 2 22:52:21 1998 UTC (15 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.145: +4 -1 lines
Diff to previous 1.145 (colored) to selected 1.188 (colored)

When installing a shared library, run /sbin/ldconfig -m ${LIBDIR} if
DESTDIR is not set and the object format is a.out.

Revision 1.145 / (download) - annotate - [select for diffs], Mon Nov 30 23:34:44 1998 UTC (15 years, 10 months ago) by erh
Branch: MAIN
Changes since 1.144: +3 -2 lines
Diff to previous 1.144 (colored) to selected 1.188 (colored)

Don't do the version check if we can't find the script.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Nov 12 05:39:45 1998 UTC (15 years, 11 months ago) by erh
Branch: MAIN
Changes since 1.143: +3 -2 lines
Diff to previous 1.143 (colored) to selected 1.188 (colored)

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.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Nov 7 09:40:35 1998 UTC (15 years, 11 months ago) by erh
Branch: MAIN
Changes since 1.142: +13 -3 lines
Diff to previous 1.142 (colored) to selected 1.188 (colored)

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.

Revision 1.117.2.3 / (download) - annotate - [select for diffs], Sat Nov 7 00:22:23 1998 UTC (15 years, 11 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.117.2.2: +3 -3 lines
Diff to previous 1.117.2.2 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored) to selected 1.188 (colored)

specify SHLIB_LDSTARTFILE and SHLIB_LDENDFILE for mips.  Done
differently on the trunk.  (jonathan)

Revision 1.142 / (download) - annotate - [select for diffs], Thu Nov 5 00:52:02 1998 UTC (15 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.141: +3 -7 lines
Diff to previous 1.141 (colored) to selected 1.188 (colored)

Set SHLIB_LD{START,END}FILE to crt{begin,end}S.o for all ELF ports.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 7 17:49:15 1998 UTC (16 years ago) by wrstuden
Branch: MAIN
Changes since 1.140: +2 -2 lines
Diff to previous 1.140 (colored) to selected 1.188 (colored)

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.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Sep 28 08:13:38 1998 UTC (16 years ago) by christos
Branch: MAIN
Changes since 1.139: +6 -6 lines
Diff to previous 1.139 (colored) to selected 1.188 (colored)

Use preserve flag in install.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Sep 13 23:25:18 1998 UTC (16 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.138: +14 -16 lines
Diff to previous 1.138 (colored) to selected 1.188 (colored)

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.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Aug 22 18:59:40 1998 UTC (16 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored) to selected 1.188 (colored)

Fix the .c.a brokenness with libbfd the "right" way - nuke everything but
*o from .ALLSRC.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Aug 9 14:46:19 1998 UTC (16 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored) to selected 1.188 (colored)

add distclean as a synonym for cleandir

Revision 1.136 / (download) - annotate - [select for diffs], Sat May 2 15:19:04 1998 UTC (16 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored) to selected 1.188 (colored)

fix lint library rule bug; use ${.ALLSRC} as suggested.

Revision 1.135 / (download) - annotate - [select for diffs], Fri Apr 17 13:34:55 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.134: +5 -5 lines
Diff to previous 1.134 (colored) to selected 1.188 (colored)

Fix symlinks creation in the build directory: create the symlinks there,
not in ${DESTDIR}.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Apr 15 12:07:10 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.133: +5 -3 lines
Diff to previous 1.133 (colored) to selected 1.188 (colored)

Braindead pmake conditionals.

Revision 1.133 / (download) - annotate - [select for diffs], Wed Apr 15 02:39:53 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.132: +10 -2 lines
Diff to previous 1.132 (colored) to selected 1.188 (colored)

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.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Apr 15 01:38:27 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored) to selected 1.188 (colored)

Compare ${LDSTATIC} against ""; don't check for definition.  Make this
DTRT on setups with a global setting of LDSTATIC= (nothing)

Revision 1.131 / (download) - annotate - [select for diffs], Sun Apr 12 21:22:20 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored) to selected 1.188 (colored)

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).

Revision 1.130 / (download) - annotate - [select for diffs], Thu Apr 9 00:51:06 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.129: +9 -4 lines
Diff to previous 1.129 (colored) to selected 1.188 (colored)

New flag, NOSTATICLIB, prevents build and install of the standard static
library unless NOPIC is set.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Apr 9 00:32:36 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.128: +4 -1 lines
Diff to previous 1.128 (colored) to selected 1.188 (colored)

.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.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Apr 1 16:58:33 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored) to selected 1.188 (colored)

Revert.  This broke too much in the build tree, and a better solution
needs to be created.  (The existing situation breaks a lot too.)

Revision 1.127 / (download) - annotate - [select for diffs], Wed Apr 1 15:23:36 1998 UTC (16 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored) to selected 1.188 (colored)

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.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Mar 7 02:02:58 1998 UTC (16 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored) to selected 1.188 (colored)

Use the new binutils-compatible ld commandline syntax to build
shared-library .so files on both ELf and  a.out platforms.

Revision 1.125 / (download) - annotate - [select for diffs], Mon Feb 23 10:09:31 1998 UTC (16 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.124: +9 -12 lines
Diff to previous 1.124 (colored) to selected 1.188 (colored)

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.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Feb 18 08:14:31 1998 UTC (16 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) to selected 1.188 (colored)

Fix dyslexic typo.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Feb 18 03:14:31 1998 UTC (16 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.122: +25 -17 lines
Diff to previous 1.122 (colored) to selected 1.188 (colored)

Make bsd.lib.mk rules to build ELF vs a.out shlibs more table-driven.
No more .if in solib link rule.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Dec 24 05:15:54 1997 UTC (16 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored) to selected 1.188 (colored)

kill a couple of (insignificant but) bogus extra spaces

Revision 1.117.2.2 / (download) - annotate - [select for diffs], Wed Nov 5 05:35:40 1997 UTC (16 years, 11 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.117.2.1: +2 -2 lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored) to selected 1.188 (colored)

Update from trunk: Fix .c.ln rule: use CPPFLAGS, not CFLAGS.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Nov 5 05:34:24 1997 UTC (16 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored) to selected 1.188 (colored)

Fix .c.ln rule: use CPPFLAGS, not CFLAGS.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Tue Nov 4 21:52:50 1997 UTC (16 years, 11 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.117: +22 -3 lines
Diff to previous 1.117 (colored) to selected 1.188 (colored)

Pull up from trunk: Add objective-c rules, use ${LORDER} rather than lorder.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Nov 4 20:33:11 1997 UTC (16 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored) to selected 1.188 (colored)

Use LORDER, TSORT

Revision 1.119 / (download) - annotate - [select for diffs], Thu Oct 30 07:25:32 1997 UTC (16 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.118: +1 -4 lines
Diff to previous 1.118 (colored) to selected 1.188 (colored)

remove lint rules for objective c as lint can't cope

Revision 1.118 / (download) - annotate - [select for diffs], Tue Oct 28 12:40:16 1997 UTC (16 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.117: +24 -2 lines
Diff to previous 1.117 (colored) to selected 1.188 (colored)

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)

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Sun Oct 12 22:11:24 1997 UTC (17 years ago) by cjs
Branch: cjs-build-against-obj-dir
Changes since 1.114: +10 -12 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.188 (colored)

Update to 1.117.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Oct 11 08:16:26 1997 UTC (17 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.116: +9 -11 lines
Diff to previous 1.116 (colored) to selected 1.188 (colored)

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.)

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jun 4 08:38:45 1997 UTC (17 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored) to selected 1.188 (colored)

Put `-DPIC' back in CPICFLAGS (a.out section); at least one C source
file (sparc/include/profile.h) relies on this.

Revision 1.115 / (download) - annotate - [select for diffs], Sat May 31 21:21:57 1997 UTC (17 years, 4 months ago) by cjs
Branch: MAIN
Changes since 1.114: +6 -48 lines
Diff to previous 1.114 (colored) to selected 1.188 (colored)

Back out BUILDDIR and NOINSTALL changes.

Revision 1.114 / (download) - annotate - [select for diffs], Fri May 30 01:54:42 1997 UTC (17 years, 4 months ago) by cjs
Branch: MAIN
Branch point for: cjs-build-against-obj-dir
Changes since 1.113: +11 -5 lines
Diff to previous 1.113 (colored) to selected 1.188 (colored)

Add NOINSTALL option for libraries that are used only during the build
of a program, and not installed into the final system.

Revision 1.113 / (download) - annotate - [select for diffs], Thu May 29 15:37:11 1997 UTC (17 years, 4 months ago) by veego
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored) to selected 1.188 (colored)

Fix pr#3679 a little different.
Remove the '-nostdlib' flag for ELF systems and keep it for a.out systems.

Revision 1.112 / (download) - annotate - [select for diffs], Wed May 28 11:16:19 1997 UTC (17 years, 4 months ago) by veego
Branch: MAIN
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored) to selected 1.188 (colored)

Add '-nostdlib -L${BUILDDIR}/usr/lib' for ${LDADD} so it links a shared
library with the correct shared library.

Revision 1.111 / (download) - annotate - [select for diffs], Tue May 27 18:51:12 1997 UTC (17 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.188 (colored)

Add a missing / in SHLIB_LD*FILE.

Revision 1.110 / (download) - annotate - [select for diffs], Tue May 27 18:21:16 1997 UTC (17 years, 4 months ago) by cjs
Branch: MAIN
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.188 (colored)

Always look in usr/lib for crtbegin/crtend; LIBDIR is the destination
directory of the library we're currently compiling.

Revision 1.109 / (download) - annotate - [select for diffs], Tue May 27 17:45:57 1997 UTC (17 years, 4 months ago) by cjs
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored) to selected 1.188 (colored)

Re-add other folks' changes that I accidently reverted when I did my
build system changes commit.

Revision 1.108 / (download) - annotate - [select for diffs], Mon May 26 03:58:18 1997 UTC (17 years, 4 months ago) by cjs
Branch: MAIN
Changes since 1.107: +40 -4 lines
Diff to previous 1.107 (colored) to selected 1.188 (colored)

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.

Revision 1.107 / (download) - annotate - [select for diffs], Sat May 24 01:42:38 1997 UTC (17 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.106: +15 -8 lines
Diff to previous 1.106 (colored) to selected 1.188 (colored)

More table-driven changes: split CPICFLAGS into separate flags, to
support the two different incompatible rules for build .so files from
.S source on both NetBSD and binutils toolchains:

	 ${CPP} | ${AS} for syscalls
	 ${CC}   	for non-syscalls
for which the different toolchains's ${AS}  requires diffferent flags.

Revision 1.106 / (download) - annotate - [select for diffs], Sat May 17 16:43:31 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored) to selected 1.188 (colored)

Do LINKS and SYMLINKS after FILES and INCS.

Revision 1.105 / (download) - annotate - [select for diffs], Sat May 17 02:01:08 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored) to selected 1.188 (colored)

Remove unneeded .SUFFIXES lines, and move .s and .S closer to .o to give the
right preferences.

Revision 1.104 / (download) - annotate - [select for diffs], Fri May 9 13:40:36 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored) to selected 1.188 (colored)

Fix typo in previous.

Revision 1.103 / (download) - annotate - [select for diffs], Fri May 9 13:25:53 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.102: +10 -8 lines
Diff to previous 1.102 (colored) to selected 1.188 (colored)

Automatically add the .c files corresponding to .l and .y files to DPSRCS.
Automatically add DPSRCS to CLEANFILES.

Revision 1.102 / (download) - annotate - [select for diffs], Fri May 9 07:56:02 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.101: +2 -3 lines
Diff to previous 1.101 (colored) to selected 1.188 (colored)

Remove cruft.

Revision 1.101 / (download) - annotate - [select for diffs], Fri May 9 06:19:55 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.100: +5 -5 lines
Diff to previous 1.100 (colored) to selected 1.188 (colored)

Don't empty the suffix list.

Revision 1.100 / (download) - annotate - [select for diffs], Fri May 9 05:43:42 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored) to selected 1.188 (colored)

Oops; rearrange dependencies to get things built early enough.

Revision 1.99 / (download) - annotate - [select for diffs], Fri May 9 05:17:30 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored) to selected 1.188 (colored)

Make sure INCS and SRCS are built if necessary.

Revision 1.98 / (download) - annotate - [select for diffs], Wed May 7 17:06:22 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.188 (colored)

Don't use _SUBDIRUSE outside of bsd.subdir.mk.

Revision 1.97 / (download) - annotate - [select for diffs], Wed May 7 15:53:30 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.96: +6 -23 lines
Diff to previous 1.96 (colored) to selected 1.188 (colored)

Various simplifications.

Revision 1.96 / (download) - annotate - [select for diffs], Wed May 7 08:42:19 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored) to selected 1.188 (colored)

Shuffle some .PHONYs around, to work better with `-t'.

Revision 1.95 / (download) - annotate - [select for diffs], Tue May 6 21:29:38 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.94: +7 -2 lines
Diff to previous 1.94 (colored) to selected 1.188 (colored)

Make most of the install targets .PRECIOUS.

Revision 1.94 / (download) - annotate - [select for diffs], Tue May 6 20:54:35 1997 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.93: +4 -3 lines
Diff to previous 1.93 (colored) to selected 1.188 (colored)

Add a pile of missing .PHONYs.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Apr 17 06:32:23 1997 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored) to selected 1.188 (colored)

Pass the program to use for nm(1) to lorder(1), helps cross-compiling.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Mar 29 08:02:50 1997 UTC (17 years, 6 months ago) by mikel
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.188 (colored)

merge lite-2 changes (mostly SCCSids)

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Mar 29 06:27:34 1997 UTC (17 years, 6 months ago) by mikel
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +24 -11 lines
Diff to previous 1.1.1.1 (colored) to selected 1.188 (colored)

import 4.4BSD-Lite2 versions

Revision 1.91 / (download) - annotate - [select for diffs], Thu Mar 27 17:33:34 1997 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.90: +3 -2 lines
Diff to previous 1.90 (colored) to selected 1.188 (colored)

Put the FILES generated rules in a separate .mk file since both bsd.prog.mk
and bsd.lib.mk use them.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Mar 24 23:19:12 1997 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored) to selected 1.188 (colored)

put the 'r' back in archive.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Mar 24 21:54:17 1997 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.88: +75 -59 lines
Diff to previous 1.88 (colored) to selected 1.188 (colored)

make rules update:
- add UPDATE and BUILD features
- add new FILES, INCS, SCRIPTS variables
- allow man pages source installation

Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 23 00:52:20 1997 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.87: +5 -2 lines
Diff to previous 1.87 (colored) to selected 1.188 (colored)

add SHLIB_LDSTARTFILE and SHLIB_LDENDFILE variables for a.out shared lib
architectures, for consistency.  (For a.out shared libs, they're empty.)
Make the shared library target depend on them.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Mar 22 22:33:57 1997 UTC (17 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored) to selected 1.188 (colored)

Fix SYMLINKS not to include DESTDIR in the link itself

Revision 1.86 / (download) - annotate - [select for diffs], Sat Mar 15 11:35:04 1997 UTC (17 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.85: +67 -17 lines
Diff to previous 1.85 (colored) to selected 1.188 (colored)

Use table-driven rules for linking shared libraries on a.out or ELF systems.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Mar 14 00:52:50 1997 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored) to selected 1.188 (colored)

pull crtbeginS.o and crtendS.o in from DESTDIR

Revision 1.84 / (download) - annotate - [select for diffs], Thu Mar 13 02:46:00 1997 UTC (17 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.83: +13 -1 lines
Diff to previous 1.83 (colored) to selected 1.188 (colored)

add SYMLINKS, by analogy to LINKS. Vetted by Christos.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Feb 17 19:24:47 1997 UTC (17 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.82: +11 -4 lines
Diff to previous 1.82 (colored) to selected 1.188 (colored)

clean up Alpha (ELF) shared library build and install rules.  The latter
are now more like what's "normal" for ELF.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Jan 28 03:38:40 1997 UTC (17 years, 8 months ago) by mikel
Branch: MAIN
Changes since 1.81: +3 -1 lines
Diff to previous 1.81 (colored) to selected 1.188 (colored)

add support for COPTS, as in bsd.prog.mk

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jan 22 01:34:12 1997 UTC (17 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.80: +6 -3 lines
Diff to previous 1.80 (colored) to selected 1.188 (colored)

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.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Dec 29 19:14:32 1996 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.79: +10 -10 lines
Diff to previous 1.79 (colored) to selected 1.188 (colored)

Don't use @echo "${command}" to echo commands, because if ${command} contains
double quotes we generate shell syntax errors. Use @echo ${command:Q} instead
which properly quotes shell metacharacters.

Revision 1.79 / (download) - annotate - [select for diffs], Fri Dec 20 16:36:56 1996 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored) to selected 1.188 (colored)

change the afterdepend target so that its sed script adds <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).

Revision 1.78 / (download) - annotate - [select for diffs], Thu Dec 19 07:51:59 1996 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored) to selected 1.188 (colored)

remove outdated XXX comment (mine)

Revision 1.77 / (download) - annotate - [select for diffs], Tue Dec 17 23:14:23 1996 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.76: +6 -5 lines
Diff to previous 1.76 (colored) to selected 1.188 (colored)

undo (or actually, do differently) that last: On the Alpha, build shared
libraries with LD, but add /usr/lib/crtbegin.o and /usr/lib/crtend.o
before and after the rest of the stuff being linked.  This is a losing
situation all-around: for correct 'DESTDIR' builds, it should be including
them from ${DESTDIR}/usr/lib.  However, since those objects should be
included for all shared libraries, including them from ${DESTDIR} won't work,
because they won't be installed by normal builds by the time they need to
be used.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Dec 17 21:05:40 1996 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.75: +5 -4 lines
Diff to previous 1.75 (colored) to selected 1.188 (colored)

build Alpha shared libraries with ${CC} rather than ${LD}, because cc
understands how to do the c run-time startup magic necessary for shared
libraries and ld doesn't.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Nov 30 02:18:54 1996 UTC (17 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.188 (colored)

Define GPROF when assembling *.S files

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 5 05:40:28 1996 UTC (17 years, 11 months ago) by mikel
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.188 (colored)

Remove extra ".o"s;  fixes PR misc/2883.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Oct 18 02:34:43 1996 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.72: +6 -6 lines
Diff to previous 1.72 (colored) to selected 1.188 (colored)

Use ${INSTALL} rather than "install".
From Simon J. Gerraty <sjg@zen.void.oz.au>, PR #1458.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Oct 13 20:39:36 1996 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.71: +7 -1 lines
Diff to previous 1.71 (colored) to selected 1.188 (colored)

if ${MACHINE_ARCH} is "alpha" build shared libs with the 'normal' GNU
linker's command line args, rather than the NetBSD linker's command
line args.  This is a hack, and should go away in favor of something
more general when that something is developed.  In the mean time, it
might be appropriate for the various mips ports to do the same thing.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 23 20:23:05 1996 UTC (18 years, 1 month ago) by abrown
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) to selected 1.188 (colored)

Add missing quote (") in @echo line of .S.o rule, to prevent sh from
getting confused in certain cases.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Sep 23 18:15:48 1996 UTC (18 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored) to selected 1.188 (colored)

Fix from Aaron Brown that fixes some typos

Revision 1.69 / (download) - annotate - [select for diffs], Fri Sep 20 19:51:50 1996 UTC (18 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.68: +6 -12 lines
Diff to previous 1.68 (colored) to selected 1.188 (colored)

Use `${COMPILE.S}' instead of `${CPP} ..... | ${AS} ....' to compile
assembly language source.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Sep 5 19:12:33 1996 UTC (18 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored) to selected 1.188 (colored)

use -pg rather than -p when compiling profiled objects.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 17 20:39:26 1996 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.188 (colored)

Use the `-q' option to tsort(1).  From der Mouse, PR 1204.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Oct 22 00:45:56 1995 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.65: +2 -1 lines
Diff to previous 1.65 (colored) to selected 1.188 (colored)

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.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Sep 30 12:21:33 1995 UTC (19 years ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored) to selected 1.188 (colored)

Use CPPFLAGS in .S rules.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Sep 27 01:15:20 1995 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) to selected 1.188 (colored)

- make sure the afterdepend rule fires `after' .depend gets created.
  [fixed for parallel make]
- make depend prettier printing.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Sep 26 23:48:24 1995 UTC (19 years ago) by jtc
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored) to selected 1.188 (colored)

Fix .cc.o .C.o rule; PR #1522

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 25 00:53:09 1995 UTC (19 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.61: +43 -31 lines
Diff to previous 1.61 (colored) to selected 1.188 (colored)

- Actually commit the bsd.lib.mk changes mentioned above...

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jun 29 17:43:13 1995 UTC (19 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.188 (colored)

oops

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jun 27 20:37:29 1995 UTC (19 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) to selected 1.188 (colored)

fix a paste-o

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 26 00:19:44 1995 UTC (19 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.58: +5 -7 lines
Diff to previous 1.58 (colored) to selected 1.188 (colored)

fix more possibly-empty 'rm's, here.  kill long-dead {profiled,...}/* cleans

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jun 24 08:27:37 1995 UTC (19 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.57: +28 -12 lines
Diff to previous 1.57 (colored) to selected 1.188 (colored)

update lint rules, but keep linting disabled

Revision 1.57 / (download) - annotate - [select for diffs], Fri Apr 21 20:29:40 1995 UTC (19 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.56: +5 -1 lines
Diff to previous 1.56 (colored) to selected 1.188 (colored)

.include <bsd.nls.mk> unless NONLS is defined.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 19 06:26:50 1995 UTC (19 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.55: +7 -4 lines
Diff to previous 1.55 (colored) to selected 1.188 (colored)

don't ranlib read-only files.  patch for bug 977, from Greg Hudson
(ghudson@MIT.EDU).  He doesn't think this patch is particularly
beautiful, but i'm not sure much can be done about that.
in particular:
	(1) installing to a different file name, then chowning that
		and using 'mv' brings up a couple of bugs that
		can't reasonably be tested for (and shouldn't have to be),
	(2) you don't particularly want people trying to use the libraries
		until they've been successfully installed, anyway.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 13 08:46:22 1994 UTC (19 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +7 -7 lines
Diff to previous 1.54 (colored) to selected 1.188 (colored)

Slight simpliciation.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Wed Aug 24 19:11:18 1994 UTC (20 years, 2 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.188 (colored)

update from trunk

Revision 1.54 / (download) - annotate - [select for diffs], Fri Aug 19 15:48:12 1994 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.53: +3 -1 lines
Diff to previous 1.53 (colored) to selected 1.188 (colored)

include bsd.own.mk early on, to get NOPIC definition.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Aug 9 13:04:28 1994 UTC (20 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored) to selected 1.188 (colored)

Don't keep local symbols in a shared library symbol table.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Jul 6 04:09:55 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.51: +10 -10 lines
Diff to previous 1.51 (colored) to selected 1.188 (colored)

Include ${CPPFLAGS} when compiling .c and .cc files.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jun 30 06:47:38 1994 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored) to selected 1.188 (colored)

.m4 files are sources too

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 30 05:31:13 1994 UTC (20 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored) to selected 1.188 (colored)

RCSID frobbing, and minor sanity adjustments.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jun 30 05:21:30 1994 UTC (20 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.48: +6 -5 lines
Diff to previous 1.48 (colored) to selected 1.188 (colored)

don't be careless with _SUBDIRUSE

Revision 1.48 / (download) - annotate - [select for diffs], Thu Mar 24 16:11:38 1994 UTC (20 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.188 (colored)

Remove *.core on clean.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Feb 9 23:50:36 1994 UTC (20 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.46: +1 -2 lines
Diff to previous 1.46 (colored) to selected 1.188 (colored)

kill install -d's.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jan 31 18:40:10 1994 UTC (20 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.188 (colored)

Moved manpage formatting rules from sys.mk to bsd.man.mk.
Some programs (like ispell) use *.[0-8] for non-manpage things, and having
the manpage rules in sys.mk really messes things up.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 7 00:52:44 1994 UTC (20 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) to selected 1.188 (colored)

Archive member names need no longer be truncated.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 6 04:32:35 1994 UTC (20 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +7 -1 lines
Diff to previous 1.43 (colored) to selected 1.188 (colored)

`ld -x -r' on .so files really does work now.  Maybe it will continue to for
a little while.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 5 23:29:39 1994 UTC (20 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +1 -7 lines
Diff to previous 1.42 (colored) to selected 1.188 (colored)

ld -x -r for .so files clearly does not work yet.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jan 4 20:26:52 1994 UTC (20 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored) to selected 1.188 (colored)

Use ${DPADD} and ${LDADD} only when building shared library.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 4 19:08:55 1994 UTC (20 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +7 -1 lines
Diff to previous 1.40 (colored) to selected 1.188 (colored)

Reinstate `ld -x -r' for .so.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 4 01:28:39 1993 UTC (20 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored) to selected 1.188 (colored)

allow .S; keep .s around for now

Revision 1.39 / (download) - annotate - [select for diffs], Sun Nov 14 16:45:05 1993 UTC (20 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.188 (colored)

Always install lib*_pic.a archives.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 2 23:14:50 1993 UTC (20 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored) to selected 1.188 (colored)

make libfoo.so.m.n depend on libfoo_pic.a, and also explain
what we're  doing when building libfoo.so.m.n.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 2 23:08:20 1993 UTC (20 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.36: +11 -10 lines
Diff to previous 1.36 (colored) to selected 1.188 (colored)

MAJOR -> SHLIB_MAJOR, MINOR -> SHLIB_MINOR

Revision 1.36 / (download) - annotate - [select for diffs], Tue Nov 2 22:59:06 1993 UTC (20 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.188 (colored)

Add `-Bshareable' to shared library rule.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 2 22:02:12 1993 UTC (20 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.34: +15 -6 lines
Diff to previous 1.34 (colored) to selected 1.188 (colored)

Don't try to build things when installing.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 27 00:58:31 1993 UTC (20 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.188 (colored)

`-Bshareable' added to link rule for shared libs.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Oct 24 00:05:31 1993 UTC (21 years ago) by pk
Branch: MAIN
Changes since 1.32: +9 -1 lines
Diff to previous 1.32 (colored) to selected 1.188 (colored)

Install shared library with version numbers from `shlib_version'.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Oct 17 01:09:01 1993 UTC (21 years ago) by pk
Branch: MAIN
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored) to selected 1.188 (colored)

Added rule for installing PIC archives (not the shared libraries themselves).

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 11 21:49:06 1993 UTC (21 years ago) by pk
Branch: MAIN
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored) to selected 1.188 (colored)

Removed `ld -r -X' line from the .cc.so and .C.so rule, as ld does
not yet support it.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 7 01:34:07 1993 UTC (21 years ago) by cgd
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) to selected 1.188 (colored)

rm _pic libs on clean, too.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 6 17:54:01 1993 UTC (21 years ago) by pk
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.188 (colored)

Added .so to `.depend' (Thanks to Andrew Wheadon for poiting this out).

Revision 1.28 / (download) - annotate - [select for diffs], Mon Oct 4 20:54:33 1993 UTC (21 years ago) by cgd
Branch: MAIN
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored) to selected 1.188 (colored)

add .so rules for c++ files.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 29 01:02:21 1993 UTC (21 years ago) by pk
Branch: MAIN
Changes since 1.26: +26 -2 lines
Diff to previous 1.26 (colored) to selected 1.188 (colored)

Support for building PIC libraries.
Given a library name `x', an archive `libx_pic.a is built, unless NOPIC
is defined (like NOPROFILE).

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 16 01:41:01 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored) to selected 1.188 (colored)

Don't define afterdepend if no SRCS.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 15 20:59:36 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +3 -4 lines
Diff to previous 1.24 (colored) to selected 1.188 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 15 20:42:41 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +6 -37 lines
Diff to previous 1.23 (colored) to selected 1.188 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Aug 15 19:37:06 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +6 -20 lines
Diff to previous 1.22 (colored) to selected 1.188 (colored)

Abstract out dependency stuff, and add RCS identifiers.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 15 19:26:06 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +2 -33 lines
Diff to previous 1.21 (colored) to selected 1.188 (colored)

Create target directories with `install -d', and move `obj' targets into one
file.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 30 03:40:07 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 (colored) to selected 1.188 (colored)

When generating a default OBJS, ignore .h files.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 29 22:04:55 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.188 (colored)

Don't print the `making ...' message if an obj dir already exists.
Also, a minor cleanup.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 17 13:43:50 1993 UTC (21 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.18: +9 -1 lines
Diff to previous 1.18 (colored) to selected 1.188 (colored)

Fix C++ dependencies for good.  `make depend' is now done in two passes--one
of C files and one for C++ files.  No need to specify `-+' in your Makefile,
as it is now done automatically.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 17 12:29:17 1993 UTC (21 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -12 lines
Diff to previous 1.17 (colored) to selected 1.188 (colored)

Combine some suffix rules.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 17 12:09:51 1993 UTC (21 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +21 -1 lines
Diff to previous 1.16 (colored) to selected 1.188 (colored)

Add suffix rules for C++ files.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 17 03:45:08 1993 UTC (21 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.188 (colored)

Never mind.  I was being led astray.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 17 03:37:23 1993 UTC (21 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.188 (colored)

We use ranlib; we don't need lorder.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 2 14:56:16 1993 UTC (21 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored) to selected 1.188 (colored)

get make depend right, so that it depends .po's too.

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 26 11:51:50 1993 UTC (21 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored) to selected 1.188 (colored)

change libraries to use ${RANLIB} rather than "ranlib" explicitly,
also, ranlib them when they're made, so /usr/obj can be read-only

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 26 11:48:40 1993 UTC (21 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.11: +2 -0 lines
Diff to previous 1.11 (colored) to selected 1.188 (colored)

if NOPROFILE defined, don't try to install the profiled libs.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 25 05:21:08 1993 UTC (21 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored) to selected 1.188 (colored)

Add afterinstall and make maninstall not lose if bsd.man.mk not included (i.e. NOMAN set).

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 25 02:51:01 1993 UTC (21 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +5 -0 lines
Diff to previous 1.9 (colored) to selected 1.188 (colored)

Don't build man pages if NOMAN set.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 20 03:29:36 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.8: +8 -4 lines
Diff to previous 1.8 (colored) to selected 1.188 (colored)

get make clean[dir] to work right.  fixes /bin/sh: not found problem

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 9 20:05:58 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) to selected 1.188 (colored)

various changes to default make rules.  from patch 101.
note that only the "sensible" changes in patch 101 are implemented.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 8 17:18:44 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored) to selected 1.188 (colored)

try to do the right thing, in terms making directories before we
install into them, and get the manpage cleans _OUT_ of "clean".
they don't belong there, only in cleandir, WFJ be damned.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 8 14:10:30 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored) to selected 1.188 (colored)

fixed typos...

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 8 14:02:00 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.4: +8 -0 lines
Diff to previous 1.4 (colored) to selected 1.188 (colored)

(silently) make sure we have directories before installing

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 4 15:31:38 1993 UTC (21 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.188 (colored)

make `install' of libraries copy rather than move.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 07:26:50 1993 UTC (21 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored) to selected 1.188 (colored)

made .CURDIR be absolute, not relative, thereby eliminating
the need for some of the makefile trickery when making objects,
and fixing a few .PATH bugs

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:09:36 1993 UTC (21 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.1: +18 -6 lines
Diff to previous 1.1 (colored) to selected 1.188 (colored)

fixed "make obj" for cases when sources not in /usr/src/...
if sources not there, it now mkdirs obj, but some trickery
is necessary, to avoid deleting cwd.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (21 years, 7 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.188 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 7 months ago) by cgd
Branch: MAIN
Diff to selected 1.188 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>