summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 14:29:41 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-12 21:19:58 +0300
commit2bb0cfbf8137e02cc32aae3b36f85ef7300e8936 (patch)
tree42899dbeb32459722d27606bd79848a25a8c5e16 /Makefile
parentdf21a9349a256fd2bea1f8701af198b312682d39 (diff)
Split UVC gadget into a library and test application
Split the project into a UVC gadget library and a test application. To avoid rolling out a custom build system, switch to CMake. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 0 insertions, 29 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index c3db9d3..0000000
--- a/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-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 -Wno-unused-parameter -g $(KERNEL_INCLUDE)
-LDFLAGS := -g
-
-OBJS := \
- configfs.o \
- events.o \
- main.o \
- stream.o \
- uvc.o \
- v4l2.o \
- v4l2-source.o \
- video-buffers.o \
- video-source.o
-
-all: uvc-gadget
-
-uvc-gadget: $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $^
-
-clean:
- rm -f *.o
- rm -f uvc-gadget
-