TODO: design: non-recoverable errors print to stderr and abort()
[vlock.git] / config.mk
bloba698f669d2084e1a3b3192d105777d6302814c5f
1 ### configuration options ###
3 # operating system, determines some defaults
4 UNAME := $(shell uname)
5 # authentification method (pam or shadow)
6 AUTH_METHOD = pam
7 # use pam for permission checking
8 USE_PAM = n
9 # also prompt for the root password in adition to the user's
10 USE_ROOT_PASS = y
11 # enable plugins for vlock-main
12 USE_PLUGINS = y
13 # which plugins should be build, default is architecture dependent
14 # MODULES =
15 EXTRA_MODULES =
16 # which scripts should be installed
17 SCRIPTS =
19 # root's group, default is architecture dependent
20 ROOT_GROUP =
22 # group to install vlock-main with, defaults to ROOT_GROUP
23 VLOCK_GROUP =
24 # mode to install privileged plugins with, defaults to 0750 if VLOCK_GROUP
25 # is unset and 0755 otherwise
26 VLOCK_MODULE_MODE =
28 ### paths ###
30 # installation prefix
31 PREFIX = /usr/local
32 # installation root
33 DESTDIR =
35 ### programs ###
37 # shell to run vlock.sh with (only bash is known to work)
38 BOURNE_SHELL = /bin/sh
39 # C compiler
40 CC = gcc
41 # C++ compiler
42 CXX = g++
43 # gnu install
44 INSTALL = install
45 # linker
46 LD = ld
47 # mkdir
48 MKDIR_P = mkdir -p
50 ### compiler and linker settings ###
52 # C compiler flags
53 CFLAGS = -O2 -Wall -W -pedantic -std=gnu99
54 # C++ compiler flags
55 CXXFLAGS = -O2 -Wall -W -pedantic
56 # linker flags
57 LDFLAGS =
58 # linker flags needed for dlopen and friends
59 DL_LIB = -ldl
60 # linker flags needed for crypt
61 CRYPT_LIB = -lcrypt
62 # linker flags needed for pam
63 PAM_LIBS = $(DL_LIB) -lpam