aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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}