diff options
author | June McEnroe <june@causal.agency> | 2019-12-21 06:33:43 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-12-21 06:33:43 -0500 |
commit | f98360441859122fb261d6b3804620c24e7852c9 (patch) | |
tree | 85b95b69a8af6dfe4acdc6b769dfbf2234bbf809 | |
parent | Add first working version (diff) | |
download | imbox-f98360441859122fb261d6b3804620c24e7852c9.tar.gz imbox-f98360441859122fb261d6b3804620c24e7852c9.zip |
Add Makefile
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af43d4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +config.mk +imbox 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 |