# makefile for kdsi a source lines of code counter

BIN=../bin
TEST=../testfiles

CFLAGS= -O
LDFLAGS= 

all: kdsi

kdsi:
	$(CC) $(CFLAGS) $(LDFLAGS) -o kdsi kdsi.c

install:
	mv kdsi $(BIN)/kdsi
	chmod 755 $(BIN)/kdsi

clean:
	-rm -f core kdsi *.o _test
	
test:
	@echo results of this command should be the same as test.result
	@cp $(TEST)/test1.c $(TEST)/test2.y $(TEST)/test3.c .
	kdsi test1.c test2.y test3.c > _test
	diff _test test.result
	@/bin/rm -f test1.c test2.y test3.c
