2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
2011-06-30 05:16:31 +05:30
|
|
|
# Released under the 2-clause BSD license.
|
2008-03-19 21:08:05 +05:30
|
|
|
|
2011-10-20 07:00:39 +05:30
|
|
|
SFX= .Linux.in
|
|
|
|
PKG_PREFIX?= /usr
|
|
|
|
|
2015-03-23 19:43:55 +05:30
|
|
|
CPPFLAGS+= -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700
|
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
|
|
|
|
|
|
|
|
ifeq (${MKAUDIT},yes)
|
|
|
|
LIBAUDIT?= -laudit
|
|
|
|
CPPFLAGS+= -DHAVE_AUDIT
|
|
|
|
LDADD+= ${LIBAUDIT}
|
2014-07-15 22:08:02 +05:30
|
|
|
endif
|