From ae1db6545981f7bb55f0d0b662a18c55a0a8f1cf Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 4 Aug 2021 11:23:55 +0200 Subject: Genesis commit --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b4ba764 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.POSIX: + +target = mstatus + +CC = cc +CFLAGS = -O3 -std=c11 -pedantic -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes +LDFLAGS = -lX11 + +PREFIX = /usr/local + +all: ${target} +${target}: mstatus.c + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $< + +.PHONY: clean install uninstall +clean: + rm -f ${target} ${objects} + +install: + mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${PREFIX}/share/man/man1 + cp -f ${target} ${DESTDIR}${PREFIX}/bin + cp -f ${target}.1 ${DESTDIR}${PREFIX}/share/man/man1 + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/${target} ${DESTDIR}${PREFIX}/share/man/man1/${target}.1 -- cgit v1.2.3