freebsd-dev/share/mk
Baptiste Daroussin 85e4c389d1 Implement LIBADD
LIBADD will automatically set DPADD and LDADD when needed including their
dependencies, LIBADD automatically handles private and internal libs so that
the end user Makefile does not have to care about it.

This allows to reduce overlinking on the base system leaving the framework get
the dependencies properly.

It also allows to built components binaries statically.

To use it:

Replace:
DPADD=	${LIBARCHIVE} ${LIBSSL}
LDADD=	-larchive -lssl

by:
LIBADD=	archive ssl

Differential Revision:	https://reviews.freebsd.org/D1209
Reviewed by:	brooks imp
2014-11-24 21:31:08 +00:00
..
atf.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
bsd.arch.inc.mk Merge from tbemd 2010-06-11 02:50:53 +00:00
bsd.compiler.mk When using an external toolchain note that gcc 4.8+ supports C++11 2014-10-21 19:58:23 +00:00
bsd.cpu.mk Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different 2014-07-08 14:37:01 +00:00
bsd.crunchgen.mk NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. 2014-04-25 19:25:18 +00:00
bsd.dep.mk The dependencies are computed with CC even if sources are C++, when building 2014-10-21 19:56:45 +00:00
bsd.doc.mk Move DOCCOMPRESS to MK variable. 2014-05-10 16:38:54 +00:00
bsd.endian.mk Clean up detection of big-endian ARM. In all cases we follow the pattern 2014-10-01 16:00:21 +00:00
bsd.files.mk Ensure files are created during the build when using bsd.subdir.mk. 2014-06-09 14:36:49 +00:00
bsd.incs.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
bsd.info.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.init.mk Include bsd.opts.mk before Makefile.inc so Makefile.inc can do things 2014-04-24 02:02:51 +00:00
bsd.kmod.mk Fix comma splice, can't ambiguity and quoting. 2012-02-16 21:04:47 +00:00
bsd.lib.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.libnames.mk Enforce -lpthread and -lc to always be the 2 last components of the link list 2014-11-22 12:48:09 +00:00
bsd.links.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.man.mk Convert NO_MANCOMPRESSED to MK_MANCOMPRESSED. 2014-04-18 17:03:49 +00:00
bsd.mkopt.mk fix spelling of DEFAULT in comments... 2014-10-22 06:53:55 +00:00
bsd.nls.mk
bsd.obj.mk Ignore errors from rm -rf to support high -j builds. This is, at best, 2014-11-06 17:19:41 +00:00
bsd.opts.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
bsd.own.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.port.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.port.options.mk Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle 2007-06-01 15:17:51 +00:00
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Revise r272363 by collapsing the tests into a for loop. 2014-10-01 20:52:08 +00:00
bsd.prog.mk Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is 2014-11-08 18:16:39 +00:00
bsd.progs.mk Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
bsd.README Make MLINKS text match text in bsd.man.mk added by wosch@ in 1996. 2014-11-21 17:55:38 +00:00
bsd.snmpmod.mk Add an additional make variable EXTRAMIBSYMS which allows to specify 2008-01-08 12:55:56 +00:00
bsd.subdir.mk Create a mechanism for providing fine-grained build order dependencies 2014-06-15 13:45:37 +00:00
bsd.symver.mk Explicitly verify if we have found the VERSION_GEN script 2007-10-18 15:21:35 +00:00
bsd.sys.mk Add -Wthread-safety to WARNS=6. 2014-09-01 20:18:09 +00:00
bsd.test.mk Fix the logic inversion in the previous commit by ensuring that the matched 2014-10-29 04:32:46 +00:00
Makefile Remove bsd.dtrace.mk. 2014-07-12 07:46:18 +00:00
netbsd-tests.test.mk Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
plain.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
src.libnames.mk Implement LIBADD 2014-11-24 21:31:08 +00:00
src.opts.mk Acutally, replaces NO_INCS with WITHOUT_INCLUDES and make 2014-11-18 17:06:44 +00:00
src.sys.mk We do not ever want _srcconf_included_ as MAIN target. 2014-07-28 23:36:21 +00:00
suite.test.mk Move FreeBSD Test Suite-specific code to a suite.test.mk file. 2014-03-14 12:52:55 +00:00
sys.mk Add OBJDUMP to sys.mk. The EFI loader uses it however without this it can 2014-11-14 14:45:36 +00:00
tap.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
version_gen.awk Distinguish the cases when a dup symbol is in different versions 2007-10-18 10:32:28 +00:00