26f578ac5b
Alter bsd.compat.mk to set MACHINE and MACHINE_ARCH when included directly so MD paths in Makefiles work. In the process centralize setting them in LIBCOMPATWMAKEENV. Alter .PATH and CFLAGS settings in work when the Makefile is included. While here only support LIB32 on supported platforms rather than always enabling it and requiring users of MK_LIB32 to filter based TARGET/MACHINE_ARCH. The net effect of this change is to make Makefile.libcompat only build compatability libraries. Changes relative to r354449: Correct detection of the compiler type when bsd.compat.mk is used outside Makefile.libcompat. Previously it always matched the clang case. Set LDFLAGS including the linker emulation for mips where -m32 seems to be insufficent. Reviewed by: imp, kib (origional version in r354449) Obtained from: CheriBSD (conceptually) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22251
117 lines
1.6 KiB
Makefile
117 lines
1.6 KiB
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SUBDIR= ${_atf} \
|
|
${_atrun} \
|
|
${_blacklistd-helper} \
|
|
${_comsat} \
|
|
${_dma} \
|
|
getty \
|
|
${_mail.local} \
|
|
${_makewhatis.local} \
|
|
${_mknetid} \
|
|
${_pppoed} \
|
|
rc \
|
|
revnetgroup \
|
|
${_rlogind} \
|
|
rpc.rquotad \
|
|
rpc.rstatd \
|
|
rpc.rusersd \
|
|
rpc.rwalld \
|
|
rpc.sprayd \
|
|
${_rshd} \
|
|
${_rtld-elf} \
|
|
save-entropy \
|
|
${_smrsh} \
|
|
${_telnetd} \
|
|
${_tests} \
|
|
${_tftp-proxy} \
|
|
ulog-helper \
|
|
${_ypxfr}
|
|
|
|
.if ${MK_AT} != "no"
|
|
_atrun= atrun
|
|
.endif
|
|
|
|
.if ${MK_BLACKLIST} != "no"
|
|
_blacklistd-helper+= blacklistd-helper
|
|
.endif
|
|
|
|
.if ${MK_BOOTPD} != "no"
|
|
SUBDIR+= bootpd
|
|
.endif
|
|
|
|
.if ${MK_FINGER} != "no"
|
|
SUBDIR+= fingerd
|
|
.endif
|
|
|
|
.if ${MK_FTP} != "no"
|
|
SUBDIR+= ftpd
|
|
.endif
|
|
|
|
.if ${MK_MAIL} != "no"
|
|
_comsat= comsat
|
|
.endif
|
|
|
|
.if ${MK_DMAGENT} != "no"
|
|
_dma= dma
|
|
.endif
|
|
|
|
.if ${MK_NIS} != "no"
|
|
_mknetid= mknetid
|
|
_ypxfr= ypxfr
|
|
.endif
|
|
|
|
.if ${MK_NETGRAPH} != "no"
|
|
_pppoed= pppoed
|
|
.endif
|
|
|
|
.if ${MK_PF} != "no"
|
|
_tftp-proxy= tftp-proxy
|
|
.endif
|
|
|
|
.if !defined(NO_PIC) && !defined(NO_RTLD)
|
|
_rtld-elf= rtld-elf
|
|
SUBDIR.${MK_LIB32}+= rtld-elf32
|
|
.endif
|
|
|
|
.if ${MK_RBOOTD} != "no"
|
|
SUBDIR+= rbootd
|
|
.endif
|
|
|
|
.if ${MK_SENDMAIL} != "no"
|
|
_mail.local= mail.local
|
|
_smrsh= smrsh
|
|
.endif
|
|
|
|
.if ${MK_MAN_UTILS} != "no"
|
|
_makewhatis.local= makewhatis.local
|
|
.endif
|
|
|
|
.if ${MK_TALK} != "no"
|
|
SUBDIR+= talkd
|
|
.endif
|
|
|
|
.if ${MK_TCP_WRAPPERS} != "no"
|
|
SUBDIR+= tcpd
|
|
.endif
|
|
|
|
.if ${MK_TELNET} != "no"
|
|
_telnetd= telnetd
|
|
.endif
|
|
|
|
.if ${MK_TFTP} != "no"
|
|
SUBDIR+= tftpd
|
|
.endif
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
_atf= atf
|
|
_tests= tests
|
|
.endif
|
|
|
|
.include <bsd.arch.inc.mk>
|
|
|
|
.include <bsd.subdir.mk>
|