~ajpaon/squell

59f393a019174f18220c901e1f04a4739500c0b6 — Andrew Paon 10 months ago c7037ec
call it "squell"
2 files changed, 27 insertions(+), 3 deletions(-)

M .gitignore
M makefile
M .gitignore => .gitignore +2 -1
@@ 1,1 1,2 @@
/main
/squell
*.o

M makefile => makefile +25 -2
@@ 1,4 1,27 @@
CC=clang
CFLAGS=-Wall --debug

all: main
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin

all: squell

debug: CFLAGS=-Wall --debug
debug: squell

release: CFLAGS=-Wall -O2
release: squell

squell:	main.o
	$(CC) $(CFLAGS) --debug $< -o $@

.PHONY: clean
clean:
	rm -f *.o squell

.PHONY: install
install: release
	install squell $(BINDIR)

.PHONY: uninstall
uninstall:
	rm -f $(BINDIR)/squell