From 9fbc003442056cdf59b87e94c1d0e3814575d4b3 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 7 Jun 2010 11:30:53 +0200 Subject: Initial import Signed-off-by: Laurent Pinchart --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.2.3