all: passwords test

passwords: main.o rules.o 
	g++ -o passwords main.o rules.o

test: testRules.o rules.o
	g++ -o test testRules.o rules.o

testRules.o: testRules.cpp
	g++ -g -c testRules.cpp

rules.o: rules.cpp rules.h
	g++ -g -c rules.cpp

main.o: main.cpp
	g++ -g -c main.cpp

clean:
	rm -f test passwords
	rm -f *.o *.bak *~*