diff options
Diffstat (limited to 'Usb-Driver/ubuntu-make')
-rw-r--r-- | Usb-Driver/ubuntu-make | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Usb-Driver/ubuntu-make b/Usb-Driver/ubuntu-make new file mode 100644 index 0000000..d4b85af --- /dev/null +++ b/Usb-Driver/ubuntu-make @@ -0,0 +1,16 @@ +obj-m := mocc$(MAKE) V=0 -C $(KDIR) SUBDIRS=$(PWD) modules $(PROJECT_C_FLAGS) + +PWD = $(shell pwd) + +default: + @echo -------------------------------------- + @echo pwd = $(PWD) + @echo CURRENT = $(CURRENT) + @echo KDIR = $(KDIR) + make -C $(KDIR) SUBDIRS=$(PWD) modules + +test: + gcc test-mocca.c -o test-mocca -lpthread + +clean: + -rm -f *.o *.ko .*.cmd .*.flags *.mod.c |