obj-m += sm_netflow.o
sm_netflow-objs := nf_hook.o netlink.o netflow.o policy_list.o tuple_queue.o hashtab.o log_queue.o netflow_fs.o

#KDIR := /lib/modules/$(shell ls -lt /lib/modules | head -n 2 | tail -n 1 | awk -F " " '{print $$9}')/build/
KDIR := /lib/modules/$(shell uname -r)/build
#KDIR := /usr/src/linux-headers-5.4.18-80-generic
PWD := $(shell pwd)


all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
	rm -rf *.o.obj.log

