aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..4e8da2d
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,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)