VERSION=\"1.0\"

tcpstatflow: datalink.o flow.o main.o tcpip.o util.o tcpflow.h
	gcc datalink.o flow.o main.o tcpip.o util.o -lpcap -o tcpstatflow

datalink.o: datalink.c tcpflow.h
	gcc -c datalink.c -o datalink.o

flow.o: flow.c tcpflow.h
	gcc -c flow.c -o flow.o

main.o: main.c tcpflow.h
	gcc -c main.c -o main.o -DVERSION=$(VERSION)

tcpip.o: tcpip.c tcpflow.h
	gcc -c tcpip.c -o tcpip.o

util.o: util.c tcpflow.h
	gcc -c util.c -o util.o

clean:
	rm -fr *.o tcpstatflow
