freebsd-skq/lib/libc/tests
Bryan Drewery 114350b9de Replace DPSRCS that work fine in SRCS.
This is so that 'make depend' is not a required build step in these
files.

DPSRCS is overall unneeded.  DPSRCS already contains SRCS, so anything
which can safely be in SRCS should be.  DPSRCS is mostly just a way to
generate files that should not be linked into the final PROG/LIB.  For
headers and grammars it is safe for them to be in SRCS since they will
be excluded during linking and installation.

The only remaining uses of DPSRCS are for generating .c or .o files that
must be built before 'make depend' can run 'mkdep' on the SRCS c files
list.  A semi-proper example is in tests/sys/kern/acct/Makefile where a
checked-in .c file has an #include on a generated .c file.  The
generated .c file should not be linked into the final PROG though since
it is #include'd.  The more proper way here is just to build/link it in
though without DPSRCS.  Another example is in sys/modules/linux/Makefile
where a shell script runs to parse a DPSRCS .o file that should not be
linked into the module.  Beyond those, the need for DPSRCS is largely
unneeded, redundant, and forces 'make depend' to be ran.  Generally,
these Makefiles should avoid the need for DPSRCS and define proper
dependencies for their files as well.

An example of an improper usage and why this matters is in usr.bin/netstat.
nl_defs.h was only in DPSRCS and so was not generated during 'make all',
but only during 'make depend'.  The files including it lacked proper
depenencies on it, which forced running 'make depend' to workaround that
bug.  The 'make depend' target should mostly be used for incremental build
help, not to produce a working build.  This specific example was broken in
the meta build until r287905 since it does not run 'make depend'.

The gnu/lib/libreadline/readline case is fine since bsd.lib.mk has 'OBJS:
SRCS:M*.h' when there is no .depend file.

Sponsored by:	EMC / Isilon Storage Division
MFC after:	1 week
2015-11-25 20:38:17 +00:00
..
c063 Add _test suffix to multiple tests in lib/libc to conform to the design noted 2015-11-02 01:29:01 +00:00
db Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
gen Fix -Wmissing-braces warnings by adding braces around all the 2015-11-15 05:13:33 +00:00
hash Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
inet Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
locale Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00
net Use __MAKE_SHELL instead of HOST_SHELL when generating aton_ether_subr.c 2015-11-23 07:57:41 +00:00
regex Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
rpc Replace DPSRCS that work fine in SRCS. 2015-11-25 20:38:17 +00:00
setjmp Add _test suffix to multiple tests in lib/libc to conform to the design noted 2015-11-02 01:29:01 +00:00
ssp Not all targets support by clang have a tested or enabled ubsan yet. 2015-10-30 17:05:52 +00:00
stdio Disable -Wformat with scanfloat_test when compiling with gcc to avoid a 2015-11-15 18:56:58 +00:00
stdlib Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite 2015-11-08 07:03:17 +00:00
string Integrate tools/regression/lib/libc/string into the FreeBSD test suite 2015-11-08 07:53:31 +00:00
sys Add some initial tests for SLIST and STAILQ macros 2015-11-16 04:15:39 +00:00
termios Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
time Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
tls Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
tls_dso Remove unused variable (SRCDIR) 2015-11-02 01:23:04 +00:00
ttyio Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
Makefile Integrate contrib/netbsd-tests/lib/libc/rpc into the FreeBSD test suite 2015-10-30 03:28:00 +00:00
Makefile.netbsd-tests Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00