obj-m = twnotify.o
KVERSION = $(shell uname -r)

# Detect if we are building for a UEK target or not.
UEK=$(shell uname -r |grep uek |wc -l)
DEBIAN9=$(shell uname -v |grep deb9 | wc -l)

# puts kbuild into verbose output mode.
VERBOSE=0
twnotify-objs := twnotify_main.o twnotify_utils.o twnotify_user.o twnotify_handlers.o twnotify_handlers_pre_417.o

ccflags-y := -DUEK=$(UEK) -DDEBIAN9=$(DEBIAN9)

#CFLAGS+="-Wa,-alh"
#CFLAGS+="-E"

all:
	make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules V=$(VERBOSE)

clean:
	make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
