summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-21 06:33:43 -0500
committerJune McEnroe <june@causal.agency>2019-12-21 06:33:43 -0500
commitf98360441859122fb261d6b3804620c24e7852c9 (patch)
tree85b95b69a8af6dfe4acdc6b769dfbf2234bbf809 /Makefile
parentAdd first working version (diff)
downloadimbox-f98360441859122fb261d6b3804620c24e7852c9.tar.gz
imbox-f98360441859122fb261d6b3804620c24e7852c9.zip
Add Makefile
Diffstat (limited to '')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..312c579
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PREFIX = /usr/local
+MANDIR = ${PREFIX}/share/man
+LIBRESSL_PREFIX = /usr/local
+
+CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
+CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include}
+LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib}
+LDLIBS = -ltls
+
+-include config.mk
+
+imbox:
+
+clean:
+	rm -f imbox
+
+install: imbox imbox.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install imbox ${PREFIX}/bin
+	gzip -c imbox.1 > ${MANDIR}/man1/imbox.1.gz
+
+uninstall:
+	rm -f ${PREFIX}/bin/imbox ${MANDIR}/man1/imbox.1.gz
>June McEnroe 2020-08-27Sandbox pounce with pledge(2)June McEnroe 2020-08-27Sandbox calico with pledge(2) and unveil(2)June McEnroe 2020-08-27Add support for OpenBSDJune McEnroe 2020-08-27Remove rc scriptsJune McEnroe 2020-08-27contrib/palaver: Fix documented database pathJune McEnroe 2020-08-27contrib/palaver: Remove rc scriptJune McEnroe 2020-08-27contrib/palaver: Fix database search and creationJune McEnroe 2020-08-27contrib/palaver: Use pounce's XDG directoryJune McEnroe 2020-08-27contrib/palaver: Only allow HTTPSJune McEnroe 2020-08-25Support the pounce_env rc variableJune McEnroe 2020-08-25Remove deprecated option namesJune McEnroe 2020-08-25Document configuration and data file searchJune McEnroe 2020-08-24Use dataOpen for save fileJune McEnroe 2020-08-24Use configOpen to load localCAJune McEnroe 2020-08-24Use configPath to load client cert/privJune McEnroe 2020-08-24Use configOpen in getopt_configJune McEnroe 2020-08-24Import xdg.c from catgirlJune McEnroe 2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni 2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe 2020-08-13contrib/palaver: Don't set channel for PMsJune McEnroe 2020-08-13Fix unintended interception of NICK after registrationJune McEnroe 2020-08-12Add Additional Components section to READMEJune McEnroe 2020-08-12Document -L / palaver optionJune McEnroe 2020-08-11contrib/palaver: Document service configurationJune McEnroe 2020-08-11contrib/palaver: Add install target and rc scriptJune McEnroe 2020-08-11contrib/palaver: Implement command and notificationsJune McEnroe