summaryrefslogtreecommitdiff
path: root/sakisafecli/Makefile
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
committerTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
commitc39de958ace0d6dc0abdf5667bb50a43d9930927 (patch)
treef756c50e9ed36a79b76eef911969cd76285093ea /sakisafecli/Makefile
initial
Diffstat (limited to 'sakisafecli/Makefile')
-rw-r--r--sakisafecli/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/sakisafecli/Makefile b/sakisafecli/Makefile
new file mode 100644
index 0000000..d0c2c36
--- /dev/null
+++ b/sakisafecli/Makefile
@@ -0,0 +1,19 @@
+
+PROG += sakisafecli
+SRCS += funcs.c sakisafecli.c config.c
+MAN += sakisafecli.1 sakisafeclirc.5
+LDADD += -lssl -lz -lpthread -lnghttp2 -lcurl -lconfig -lcrypto -L/usr/local/lib
+PREFIX = /usr/local
+
+# Use libbsd features if wanted
+use-libbsd ?= no
+.if ${use-libbsd} == "yes"
+CFLAGS += -Duse_libbsd
+LDADD += -lbsd
+.endif
+
+BINMODE = 755
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/man/man
+
+.include <bsd.prog.mk>