configure: set default values
[vlock.git] / config.mk.dist
blobea6c22f97affe27c0682f71409133520f0477b93
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
23 VLOCK_GROUP = $(ROOT_GROUP)
24 # mode to install privileged plugins with
25 VLOCK_MODULE_MODE = 0750
27 ### paths ###
29 # installation prefix
30 PREFIX = /usr/local
31 # installation root
32 DESTDIR =
33 # path where modules will be located
34 VLOCK_MODULE_DIR = $(PREFIX)/lib/vlock/modules
35 # path where scripts will be located
36 VLOCK_SCRIPT_DIR = $(PREFIX)/lib/vlock/scripts
38 ### programs ###
40 # shell to run vlock.sh with (only bash is known to work)
41 BOURNE_SHELL = /bin/sh
42 # C compiler
43 CC = gcc
44 # gnu install
45 INSTALL = install
46 # linker
47 LD = ld
48 # mkdir
49 MKDIR_P = mkdir -p
51 ### compiler and linker settings ###
53 # C compiler flags
54 ifneq ($(DEBUG),y)
55 CFLAGS = -O2 -Wall -W -pedantic -std=gnu99
56 else
57 CFLAGS = -g -O0 -Wall -W -pedantic -std=gnu99
58 endif
59 # linker flags
60 LDFLAGS = 
61 # linker flags needed for dlopen and friends, default is system dependend
62 # DL_LIB = -ldl
63 # linker flags needed for crypt
64 CRYPT_LIB = -lcrypt
65 # linker flags needed for pam
66 PAM_LIBS = $(DL_LIB) -lpam