summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
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