summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2017-04-17 17:00:39 +0200
committerGitHub <noreply@github.com>2017-04-17 17:00:39 +0200
commit0bed914e8eccb5d62cb12de4b26541b7441c94dc (patch)
tree513909183e7b174b06f5bc2b2e66230b23dd4e4f /Makefile
parent512c10f1ddff05998b23450a2d834ffb36a5be38 (diff)
parent68fc2e8b5f8bcd203598e6da2a98d5aa7359af1e (diff)
Merge pull request #123 from jasperla/bsdauth
Add support for bsd_auth(3) as authentication backend
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b3d4dc2..3acb272 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
TOPDIR=$(shell pwd)
+UNAME=$(shell uname)
INSTALL=install
PREFIX=/usr
@@ -16,10 +17,14 @@ CFLAGS += -Wall
CPPFLAGS += -D_GNU_SOURCE
CFLAGS += $(shell $(PKG_CONFIG) --cflags cairo xcb-composite xcb-xinerama xcb-atom xcb-image xcb-xkb xkbcommon xkbcommon-x11)
LIBS += $(shell $(PKG_CONFIG) --libs cairo xcb-composite xcb-xinerama xcb-atom xcb-image xcb-xkb xkbcommon xkbcommon-x11)
-LIBS += -lpam
LIBS += -lev
LIBS += -lm
+# OpenBSD lacks PAM, use bsd_auth(3) instead.
+ifneq ($(UNAME),OpenBSD)
+ LIBS += -lpam
+endif
+
FILES:=$(wildcard *.c)
FILES:=$(FILES:.c=.o)