]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extract suffix rules into bsd.suffixes[-posix].mk.
authorjonathan <jonathan@FreeBSD.org>
Wed, 12 Oct 2016 00:42:46 +0000 (00:42 +0000)
committerjonathan <jonathan@FreeBSD.org>
Wed, 12 Oct 2016 00:42:46 +0000 (00:42 +0000)
commitb0c96bd536101dbbe0f5b7af32e328305406a7e5
treefb924657207198ace02d6f539a2b7f5c284526c3
parentd3cf55773228afa01f170f18e65ca7ddf41a20fc
Extract suffix rules into bsd.suffixes[-posix].mk.

Refactor make suffix rules into separate files (one for POSIX and one not),
and rationalise the rules so that bsd.lib.mk can contain only those rules
that are library-specific (.c.po and .c.pico).

This can be accomplished by adding ${STATIC_CFLAGS} to the .c.o rule
unconditionally. STATIC_CFLAGS are only defined for use by sys.mk rules in
lib/libpam/Makefile.inc (see r227797), so it should be safe to include
them unconditionally in sys.mk's .c.o rule (tested by make universe and a
ports exp-run).

Reviewed by: bdrewery, sjg
Approved by: rwatson (mentor)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D6805
share/mk/Makefile
share/mk/bsd.lib.mk
share/mk/bsd.suffixes-posix.mk [new file with mode: 0644]
share/mk/bsd.suffixes.mk [new file with mode: 0644]
share/mk/sys.mk