aboutsummaryrefslogtreecommitdiff
path: root/sbin/init/Makefile
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2018-09-04 15:48:13 +0000
committerBrad Davis <brd@FreeBSD.org>2018-09-04 15:48:13 +0000
commit966f2a6f275a8081506951656f52d980924c9c94 (patch)
tree57a71824d7677801a5d3b8fd30bed88155a145aa /sbin/init/Makefile
parente165d7bc3934136f4e22d417d7f429fa4cdd87d2 (diff)
Notes
Diffstat (limited to 'sbin/init/Makefile')
-rw-r--r--sbin/init/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile
index 9a40f77598a0..5f0b7bce91d7 100644
--- a/sbin/init/Makefile
+++ b/sbin/init/Makefile
@@ -1,7 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 7/19/93
# $FreeBSD$
-CONFGROUPS= CONFETC CONFETCEXEC CONFETCDEFAULTS
+CONFGROUPS= CONFETC CONFETCEXEC CONFETCDEFAULTS CONFTTYS
CONFETCDIR= /etc
CONFETC= network.subr rc rc.initdiskless rc.subr rc.shutdown
CONFETCMODE= 644
@@ -19,6 +19,17 @@ INSTALLFLAGS=-b -B.bak
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
LIBADD= util crypt
+CONFTTYSNAME= ttys
+.if exists(${.CURDIR}/ttys.${MACHINE})
+CONFTTYS+= ttys.${MACHINE}
+.elif exists(${.CURDIR}/ttys.${MACHINE_ARCH})
+CONFTTYS+= ttys.${MACHINE_ARCH}
+.elif exists(${.CURDIR}/ttys.${MACHINE_CPUARCH})
+CONFTTYS+= ttys.${MACHINE_CPUARCH}
+.else
+.error MACHINE.ttys missing
+.endif
+
# Needed for getmntopts.c
MOUNT= ${SRCTOP}/sbin/mount
CFLAGS+=-I${MOUNT}