aboutsummaryrefslogtreecommitdiff
path: root/src/rc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/Makefile')
-rw-r--r--src/rc/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 15d07333..c8ac7816 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -6,10 +6,6 @@ SRCS= checkpath.c fstabinfo.c mountinfo.c \
CLEANFILES= version.h
-LDFLAGS+= -L../librc -L../libeinfo
-LDADD+= -lutil -lrc -leinfo
-CFLAGS+= -I../includes -I../librc -I../libeinfo
-
BINDIR?= /sbin
LINKDIR= ${LIBNAME}/${PROG}
@@ -32,11 +28,15 @@ RC_SBINLINKS= mark_service_starting mark_service_started \
rc-abort
MK= ../../mk
-include ${MK}/os.mk
-CFLAGS+= -DLIB=\"${LIBNAME}\"
include ${MK}/cc.mk
+include ${MK}/os.mk
include ${MK}/prog.mk
+LDFLAGS+= -L../librc -L../libeinfo
+LDADD+= -lutil -lrc -leinfo
+CFLAGS+= -I../includes -I../librc -I../libeinfo
+CFLAGS+= -DLIB=\"${LIBNAME}\"
+
include ${MK}/${MKTERMCAP}.mk
LDADD+= ${LIBDL} ${LIBKVM}
include ${MK}/${MKPAM}.mk