summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-07 15:52:06 +0000
committerJoursoir <chat@joursoir.net>2021-02-07 15:52:06 +0000
commitad5d7390e7bdd179ed7d7b63ae1a360de05f232a (patch)
tree18638dcdf5409b5fbe00a42272027fa46d4147bb
parent13ccba535cc30f32fe989108ebd16929ca3c7efd (diff)
downloadsnc-ad5d7390e7bdd179ed7d7b63ae1a360de05f232a.tar.gz
snc-ad5d7390e7bdd179ed7d7b63ae1a360de05f232a.tar.bz2
snc-ad5d7390e7bdd179ed7d7b63ae1a360de05f232a.zip
add MakefileHEADmaster
-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