
CPP=g++
CXXFLAGS=-O2 -Wall -pedantic
BINNAME=tagran

all: $(BINNAME)

clean:
	rm -f *.o $(BINNAME)

tagran.o: tagran.cpp makefile
	$(CPP) -c $(CXXFLAGS) -DNDEBUG -fno-rtti tagran.cpp

$(BINNAME): tagran.o
	$(CPP) -o$(BINNAME) tagran.o

install:
	cp tagran.conf /etc/
	cp $(BINNAME) /usr/local/bin/
