#CFLAGS=-ggdb -pg -Wall
CFLAGS=-ggdb -Wall
#CFLAGS=-Wall -O

cspy: main.o readlog.o linecount.o relations.o output.o
	g++ ${CFLAGS} -o cspy $^

clean:
	rm *.o

%.o: %.cc *.h
	g++ ${CFLAGS} -c -o $@ $<

test.ps: cspy log.txt
	./cspy -f log.txt -T "#loimaan_nortit" -c | dot -Tps > test.ps

test2.ps: cspy log.txt
	./cspy -f log.txt -T "#loimaan_nortit" -w "8)" -w "8D" -w "homo" | circo -Tps > test2.ps

op.ps: cspy 2007-01.log
	./cspy -f 2007-01.log -T "#ohjelmointiputka" | dot -Tps > op.ps
