# SPDX-License-Identifier: GPL-2.0
# Read by kbuild (the kernel's build system), which the Makefile calls.

# The module, klog.ko, is built from klog.c. To build it from several files,
# list their objects instead (and have no klog.c):
#   obj-m  := klog.o
#   klog-y := main.o usb.o fops.o
obj-m := klog.o

# uapi/: the header shared with user space.
ccflags-y += -I$(src)/uapi

# Without DEBUG, pr_debug() prints nothing unless dynamic debug turns it on.
ccflags-y += -DDEBUG
