From d05041d707a7dc9c43e84ba0c7847b9003a6571b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 7 Apr 2023 18:51:12 +0200 Subject: Genesis commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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} -- cgit v1.2.3