From 4496ddff1f5d7a6f3844bf3601ae8674a39802f2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 19 Sep 2022 22:01:07 +0200 Subject: Genesis --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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} -- cgit v1.2.3