aboutsummaryrefslogtreecommitdiff
path: root/mk/os-Linux.mk
blob: dc76b968190ca532a74b29f403ae9f6b0cb8cae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.

SFX=		.Linux.in
PKG_PREFIX?=	/usr

CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=700
LIBDL=		-Wl,-Bdynamic -ldl

ifeq (${MKSELINUX},yes)
CPPFLAGS+= -DHAVE_SELINUX
LIBSELINUX= -lselinux
LDADD += $(LIBSELINUX)
endif