aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-09-19 22:01:07 +0200
committerThomas Voss <thomasvoss@live.com> 2022-09-19 22:01:07 +0200
commit4496ddff1f5d7a6f3844bf3601ae8674a39802f2 (patch)
tree4b23a30810a65aa32a407071625e7949ef38904f /Makefile
Genesis
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7657cff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+.POSIX:
+
+LDFLAGS = -llux
+CFLAGS = -std=c11 -O3 -pipe -Wall -Wextra -Werror -pedantic
+PREFIX = /usr
+MANDIR = ${PREFIX}/share/man
+
+target = lux
+
+all: ${target}
+${target}: main.c
+ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $<
+
+install:
+ mkdir -p ${PREFIX}/bin ${MANDIR}/man1
+ cp ${target} ${PREFIX}/bin
+ cp *.1 ${MANDIR}/man1
+
+clean:
+ rm -f ${target}