diff options
Diffstat (limited to 'bindings/linux/Makefile')
-rw-r--r-- | bindings/linux/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bindings/linux/Makefile b/bindings/linux/Makefile new file mode 100644 index 0000000..1736b61 --- /dev/null +++ b/bindings/linux/Makefile @@ -0,0 +1,20 @@ +obj-m = upb.o + +upb-objs = \ + ../../upb/upb.o \ + ../../upb/bytestream.o \ + ../../upb/def.o \ + ../../upb/handlers.o \ + ../../upb/table.o \ + ../../upb/refcount.o \ + ../../upb/msg.o \ + +KVERSION = $(shell uname -r) + +ccflags-y := -I$(PWD) -I$(PWD)/../.. -Wno-declaration-after-statement -std=gnu99 + +all: + make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules + +clean: + make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean |