aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
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}