fix get_ioctl_names.sh
[moctel.git] / Makefile
index ac7b8da..ea0909a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
 obj-m := moctel_mod.o
 KDIR := /lib/modules/$(shell uname -r)/build
 PWD := $(shell pwd)
-all:
+
+all: show_ioctl gen_method_list
        $(MAKE) -C $(KDIR) M=$(PWD) modules
+
+show_ioctl: show_ioctl.c
+       gcc -o show_ioctl show_ioctl.c -std=gnu99
+
+gen_method_list: gen_method_list.c
+       gcc -o gen_method_list gen_method_list.c -std=gnu99
  
 clean:
        $(MAKE) -C $(KDIR) M=$(PWD) clean