diff options
author | Joursoir <chat@joursoir.net> | 2021-02-07 15:52:06 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-02-07 15:52:06 +0000 |
commit | ad5d7390e7bdd179ed7d7b63ae1a360de05f232a (patch) | |
tree | 18638dcdf5409b5fbe00a42272027fa46d4147bb /Makefile | |
parent | 13ccba535cc30f32fe989108ebd16929ca3c7efd (diff) | |
download | snc-master.tar.gz snc-master.tar.bz2 snc-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
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 |