blob: f3d72089a2401dfe854a0167b1d485c7d376e41f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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
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
|