aboutsummaryrefslogtreecommitdiff
path: root/src/rc/Makefile
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-13 20:11:06 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-13 20:11:06 -0600
commitb34df9dd817069ade7e0526a59aaa9d3f2beb806 (patch)
treec8f11e45e5559636515cc5b10f77f526168e7214 /src/rc/Makefile
parent6f02069746f4d8a2331ab7e000abdca9bbdd622d (diff)
fix selinux build
Diffstat (limited to 'src/rc/Makefile')
-rw-r--r--src/rc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 1df26d86..da1e5ee5 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -75,7 +75,10 @@ check test::
all: ${ALL_PROGS}
-checkpath: checkpath.o _usage.o rc-misc.o rc-selinux.o
+checkpath: checkpath.o _usage.o rc-misc.o
+ifeq (${MKSELINUX},yes)
+checkpath: rc-selinux.o
+endif
${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $^ ${LDADD}
einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
@@ -101,7 +104,10 @@ mark_service_hotplugged mark_service_failed: do_mark_service.o rc-misc.o
mountinfo: mountinfo.o _usage.o rc-misc.o
${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $^ ${LDADD}
-openrc rc: rc.o rc-logger.o rc-misc.o rc-plugin.o rc-selinux.o _usage.o
+openrc rc: rc.o rc-logger.o rc-misc.o rc-plugin.o _usage.o
+ifeq (${MKSELINUX},yes)
+openrc rc: rc-selinux.o
+endif
${CC} ${LOCAL_CFLAGS} ${LOCAL_LDFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $^ ${LDADD}
openrc-run runscript: openrc-run.o _usage.o rc-misc.o rc-plugin.o