diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-19 16:44:15 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-19 16:44:15 +0100 |
| commit | d529707547ae73fdd19221a43fdd0f7438e21b92 (patch) | |
| tree | 8810013afa97f780a603cdeb4d025fcbf4374c94 /config.mk | |
| download | gasroot-d529707547ae73fdd19221a43fdd0f7438e21b92.tar.gz gasroot-d529707547ae73fdd19221a43fdd0f7438e21b92.tar.bz2 gasroot-d529707547ae73fdd19221a43fdd0f7438e21b92.tar.xz | |
First commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'config.mk')
| -rw-r--r-- | config.mk | 27 |
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) |
