diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-04-07 18:51:12 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-04-07 18:51:12 +0200 |
commit | d05041d707a7dc9c43e84ba0c7847b9003a6571b (patch) | |
tree | 6fcfdda736967a42aba2371893f590f8e5a106fb /Makefile |
Genesis commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0c2570e --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.POSIX: + +CFLAGS = -Wall -Wextra -Wpedantic -Werror \ + -O3 -march=native -mtune=native \ + -std=c11 -pipe +LDFLAGS = `pkg-config --libs libpcre2-8` + +PREFIX = /usr/local +DPREFIX = ${DESTDIR}${PREFIX} +MANDIR = ${DPREFIX}/share/man + +target = fsub + +all: ${target} +${target}: ${target}.c + +install: + mkdir -p ${DPREFIX}/bin ${MANDIR}/man1 + cp ${target} ${DPREFIX}/bin + cp *.1 ${MANDIR}/man1 + +clean: + rm -f ${target} |