From 536f57988cde7fb22e52b3c75b3986cd0a457e00 Mon Sep 17 00:00:00 2001 From: "Mr. Sam" Date: Sun, 19 Jul 2026 23:40:53 +0100 Subject: Remade because I kinda deleted the old, perfect version --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..9f1cea8 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +#clear ; vim main.c ; gcc main.c -Wall -Wextra -Wpedantic -std=c99 -o collatz + +PREFIX = /usr/local + +CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os + +CC = gcc + +SRC = main.c + +all: + ${CC} ${CFLAGS} ${SRC} -o collatz + +.PHONY: all clean dist install uninstall + +install: all + ${CC} ${CFLAGS} ${SRC} -o stats + cp -f stats ${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/stats + +uninstall: + rm -f ${PREFIX}/bin/stats + + -- cgit v1.2.3