let the kernel module return the symbol name
[moctel.git] / Makefile
index ac7b8da..5516404 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
 obj-m := moctel_mod.o
 KDIR := /lib/modules/$(shell uname -r)/build
 PWD := $(shell pwd)
 obj-m := moctel_mod.o
 KDIR := /lib/modules/$(shell uname -r)/build
 PWD := $(shell pwd)
-all:
+
+all: show_ioctl
        $(MAKE) -C $(KDIR) M=$(PWD) modules
        $(MAKE) -C $(KDIR) M=$(PWD) modules
+
+show_ioctl:
+       gcc -o show_ioctl show_ioctl.c -std=gnu99
  
 clean:
        $(MAKE) -C $(KDIR) M=$(PWD) clean
  
 clean:
        $(MAKE) -C $(KDIR) M=$(PWD) clean