2015-12-05 04:22:19 +05:30
|
|
|
# Copyright (c) 2008-2015 The OpenRC Authors.
|
|
|
|
# See the Authors file at the top-level directory of this distribution and
|
2021-12-21 06:37:00 +05:30
|
|
|
# https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
|
2015-12-05 04:22:19 +05:30
|
|
|
#
|
|
|
|
# This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
# the LICENSE file found in the top-level directory of this
|
2021-12-21 06:37:00 +05:30
|
|
|
# distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
|
2015-12-05 04:22:19 +05:30
|
|
|
# This file may not be copied, modified, propagated, or distributed
|
|
|
|
# except according to the terms contained in the LICENSE file.
|
2008-03-19 21:08:05 +05:30
|
|
|
|
2011-10-20 07:00:39 +05:30
|
|
|
SFX= .Linux.in
|
|
|
|
PKG_PREFIX?= /usr
|
|
|
|
|
2018-12-02 12:13:48 +05:30
|
|
|
CPPFLAGS+= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_XOPEN_SOURCE
|
2008-03-19 21:08:05 +05:30
|
|
|
LIBDL= -Wl,-Bdynamic -ldl
|
2014-07-15 22:08:02 +05:30
|
|
|
|
|
|
|
ifeq (${MKSELINUX},yes)
|
|
|
|
CPPFLAGS+= -DHAVE_SELINUX
|
2014-10-30 07:52:02 +05:30
|
|
|
LIBSELINUX?= -lselinux
|
2014-07-15 22:08:02 +05:30
|
|
|
LDADD += $(LIBSELINUX)
|
2014-10-30 07:52:02 +05:30
|
|
|
|
|
|
|
ifneq (${MKPAM},pam)
|
|
|
|
# if using selinux but not pam then we need crypt
|
|
|
|
LIBCRYPT?= -lcrypt
|
|
|
|
LDADD += $(LIBCRYPT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2021-06-13 22:56:24 +05:30
|
|
|
ifeq (${MKCAP},yes)
|
|
|
|
CPPFLAGS+= -DHAVE_CAP
|
|
|
|
LIBCAP?= -lcap
|
|
|
|
LDADD += $(LIBCAP)
|
|
|
|
endif
|
|
|
|
|
2014-10-30 07:52:02 +05:30
|
|
|
ifeq (${MKAUDIT},yes)
|
|
|
|
LIBAUDIT?= -laudit
|
|
|
|
CPPFLAGS+= -DHAVE_AUDIT
|
|
|
|
LDADD+= ${LIBAUDIT}
|
2014-07-15 22:08:02 +05:30
|
|
|
endif
|