2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2008-03-19 15:38:05 +00:00
|
|
|
|
2011-10-19 21:30:39 -04:00
|
|
|
SFX= .Linux.in
|
|
|
|
PKG_PREFIX?= /usr
|
|
|
|
|
2015-03-23 09:13:55 -05:00
|
|
|
CPPFLAGS+= -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700
|
2008-03-19 15:38:05 +00:00
|
|
|
LIBDL= -Wl,-Bdynamic -ldl
|
2014-07-15 11:38:02 -05:00
|
|
|
|
|
|
|
ifeq (${MKSELINUX},yes)
|
|
|
|
CPPFLAGS+= -DHAVE_SELINUX
|
2014-10-30 10:22:02 +08:00
|
|
|
LIBSELINUX?= -lselinux
|
2014-07-15 11:38:02 -05:00
|
|
|
LDADD += $(LIBSELINUX)
|
2014-10-30 10:22:02 +08:00
|
|
|
|
|
|
|
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 11:38:02 -05:00
|
|
|
endif
|