diff options
author | June McEnroe <june@causal.agency> | 2020-01-26 11:42:46 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-01-26 11:42:46 -0500 |
commit | 0a5584e94293b39424c49a0b8f065436c091d899 (patch) | |
tree | 75a22cd11fea8e3c9c27aff826f98279470d1309 /Makefile | |
parent | Add IMAP-related options to manual page (diff) | |
download | notemap-0a5584e94293b39424c49a0b8f065436c091d899.tar.gz notemap-0a5584e94293b39424c49a0b8f065436c091d899.zip |
Add Makefile
Diffstat (limited to '')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4b27a4 --- /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 + +notemap: + +clean: + rm -f notemap + +install: notemap notemap.1 + install -d ${PREFIX}/bin ${MANDIR}/man1 + install notemap ${PREFIX}/bin + gzip -c notemap.1 > ${MANDIR}/man1/notemap.1.gz + +uninstall: + rm -f ${PREFIX}/bin/notemap ${MANDIR}/man1/notemap.1.gz |