From d529707547ae73fdd19221a43fdd0f7438e21b92 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Dec 2025 16:44:15 +0100 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config.mk (limited to 'config.mk') 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) -- cgit v1.2.3-70-g09d2