
CPP		= c++

ALL = stlrev

all : $(ALL) test

stlrev : stlrev.cpp
	$(CPP) $@.cpp -o $@

test: stlrev
	./stlrev < stlrev.cpp > tmp
	./stlrev < tmp > tmp2
	diff stlrev.cpp tmp2
	rm -f  tmp tmp2
	@echo "PASSED TEST"

clean :
	rm -rf *.o $(ALL)
