mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
808b18e4d6
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
80 lines
1.5 KiB
Makefile
80 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
# @(#)Makefile 8.1 (Berkeley) 6/8/93
|
|
|
|
# Only parse this if executing make in this directory, not in other places
|
|
# in src that lack a Makefile, such as sys/dev/*. Otherwise the MAKESYSPATH
|
|
# will read this Makefile since it auto includes it into -I.
|
|
.if ${.CURDIR} == ${.PARSEDIR}
|
|
|
|
# Avoid creating a Makefile.depend here as it would get included anywhere
|
|
# in the build, similar to the problem above. It would cause dirdeps.mk
|
|
# to be included more times than desired.
|
|
UPDATE_DEPENDFILE= no
|
|
|
|
.include <src.opts.mk>
|
|
|
|
FILES= \
|
|
auto.obj.mk \
|
|
bsd.README \
|
|
bsd.arch.inc.mk \
|
|
bsd.clang-analyze.mk \
|
|
bsd.compiler.mk \
|
|
bsd.confs.mk \
|
|
bsd.cpu.mk \
|
|
bsd.crunchgen.mk \
|
|
bsd.dep.mk \
|
|
bsd.doc.mk \
|
|
bsd.dtb.mk \
|
|
bsd.endian.mk \
|
|
bsd.files.mk \
|
|
bsd.incs.mk \
|
|
bsd.info.mk \
|
|
bsd.init.mk \
|
|
bsd.kmod.mk \
|
|
bsd.lib.mk \
|
|
bsd.libnames.mk \
|
|
bsd.links.mk \
|
|
bsd.man.mk \
|
|
bsd.mkopt.mk \
|
|
bsd.nls.mk \
|
|
bsd.obj.mk \
|
|
bsd.opts.mk \
|
|
bsd.own.mk \
|
|
bsd.port.mk \
|
|
bsd.port.options.mk \
|
|
bsd.port.post.mk \
|
|
bsd.port.pre.mk \
|
|
bsd.port.subdir.mk \
|
|
bsd.prog.mk \
|
|
bsd.progs.mk \
|
|
bsd.snmpmod.mk \
|
|
bsd.subdir.mk \
|
|
bsd.suffixes-posix.mk \
|
|
bsd.suffixes.mk \
|
|
bsd.symver.mk \
|
|
bsd.sys.mk \
|
|
bsd.test.mk \
|
|
dirdeps.mk \
|
|
gendirdeps.mk \
|
|
install-new.mk \
|
|
meta.autodep.mk \
|
|
meta.stage.mk \
|
|
meta.subdir.mk \
|
|
meta.sys.mk \
|
|
stage-install.sh \
|
|
sys.mk \
|
|
sys.dependfile.mk \
|
|
version_gen.awk
|
|
|
|
FILESDIR= ${BINDIR}/mk
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
FILES+= atf.test.mk
|
|
FILES+= plain.test.mk
|
|
FILES+= suite.test.mk
|
|
FILES+= tap.test.mk
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
.endif # CURDIR == PARSEDIR
|