#
#	Makefile for simple traffic statistics programm.
#

PROG=trafstat
SRC=main.c trafstat.c
OBJ=$(SRC:.c=.o)
LIB=../lib/libbpft.a
CC=gcc
CFLAGS=-O

all: $(PROG)

$(PROG): $(OBJ)
	$(CC) $(OBJ) $(LIB) -o $(PROG)

clean:
	rm -f $(OBJ) $(PROG)

main.o:	../include/interface.h ../include/addrtoname.h $(LIB) ../Makefile
trafstat.o: ../include/addrtoname.h ../include/traffic.h $(LIB)
