summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6f93ab6db6ba9e1671e89c08ba2a5d67ed32d55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)