From ad5d7390e7bdd179ed7d7b63ae1a360de05f232a Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 7 Feb 2021 15:52:06 +0000 Subject: add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f93ab6 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC = gcc +CFLAGS = -Wall -lm +PREFIX ?= /usr/local/bin +EXECUTABLE = snc + +.PHONY: all clean install uninstall +all: + @$(CC) $(CFLAGS) snc.c -o $(EXECUTABLE) + +clean: + @rm -f $(EXECUTABLE) *.o + +install: all + @echo installing snc to $(PREFIX) + @install -m 755 $(EXECUTABLE) $(PREFIX) + +uninstall: + @rm -vf $(PREFIX)/$(EXECUTABLE) \ No newline at end of file -- cgit v1.2.3-18-g5258