diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-07 11:30:53 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-07 11:30:53 +0200 |
commit | 9fbc003442056cdf59b87e94c1d0e3814575d4b3 (patch) | |
tree | 1f01cd85b4001e0fe954572087a6417d42f57803 /Makefile |
Initial import
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4837ec9 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CROSS_COMPILE ?= +ARCH ?= x86 +KERNEL_DIR ?= /usr/src/linux + +CC := $(CROSS_COMPILE)gcc +KERNEL_INCLUDE := -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/$(ARCH)/include +CFLAGS := -W -Wall -g $(KERNEL_INCLUDE) +LDFLAGS := -g + +all: uvc-gadget + +uvc-gadget: uvc-gadget.o + $(CC) $(LDFLAGS) -o $@ $^ + +clean: + rm -f *.o + rm -f uvc-gadget + |