TARGET := waitOne WARN := -W -Wall -Wstrict-prototypes -Wmissing-prototypes INCLUDE := -isystem /lib/modules/`uname -r`/build/include CFLAGS := -O2 -DMODULE -D__KERNEL__ ${WARN} ${INCLUDE} CC := gcc # Note that we use CFLAGS for the kernel module but not the test program ${TARGET}.o: ${TARGET}.c eventSig eventWait ${CC} -c ${CFLAGS} ${TARGET}.c eventSig: eventSig.c ${CC} -o eventSig ${WARN} eventSig.c eventWait: eventWait.c ${CC} -o eventWait ${WARN} eventWait.c clean: rm -rf ${TARGET}.o rm -rf eventSig rm -rf eventWait