TARGET := syscall-hello WARN := -W -Wall -Wstrict-prototypes -Wmissing-prototypes INCLUDE := -isystem /lib/modules/`uname -r`/build/include CFLAGS := -O2 -D__KERNEL__ ${WARN} ${INCLUDE} CC := gcc ${TARGET}.o: ${TARGET}.c ${TARGET}-test ${CC} -c ${CFLAGS} ${TARGET}.c ${TARGET}-test: ${CC} -o ${TARGET}-test ${WARN} ${TARGET}-test.c .phony: clean clean: rm -rf ${TARGET}.o rm -rf ${TARGET}-test