aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8f0a1e0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PREFIX ?= /usr/local
+LIBEXECDIR ?= ${PREFIX}/libexec/skein
+
+CFLAGS ?= -O2 -pipe -s
+CFLAGS += -Wall -Wextra -Wpedantic -Werror
+
+LDFLAGS ?= -static
+
+cgit-about-filter: cgit-about-filter.c
+ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $<
+
+install: cgit-chroot cgit-about-filter
+ install -D -m 755 -t '${DESTDIR}${LIBEXECDIR}' cgit-chroot
+ install -D -m 755 -t '${DESTDIR}${LIBEXECDIR}' cgit-about-filter
+
+clean:
+ rm cgit-about-filter
+
+.PHONY: install clean