aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
blob: d5300967e130222e4eaa403f37f67e7cc1768770 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PREFIX     = /usr
MANPREFIX  = $(PREFIX)/share/man
LIBEXECDIR = /libexec/gasroot

CC = c99

PATH_TO_SETUID = $(PREFIX)$(LIBEXECDIR)/gasroot-setuid

CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
CFLAGS   = -Wall -O2
LDFLAGS  = -s

LDFLAGS_SETUID = -lcrypt -lenv

DEFAULT_GASROOT = gasroot-gtk2

CFLAGS_GTK2  = $$(pkg-config --cflags gtk+-2.0)
LDFLAGS_GTK2 = $$(pkg-config --libs gtk+-2.0)
INCLUDE_GTK2 = yes

CFLAGS_GTK3  = $$(pkg-config --cflags gtk+-3.0)
LDFLAGS_GTK3 = $$(pkg-config --libs gtk+-3.0)
INCLUDE_GTK3 = no

# To customise the sleep time between authentication attempts, add -DRETRY_SLEEP=###
# to CPPFLAGS, where ### is the number of seconds (integers only) to sleep, the
# default ### is 1 (= 1 second)