summaryrefslogtreecommitdiff
path: root/Makefile
blob: 490e26837691e2a814bd48425e7c9aec10158a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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: events.o uvc-gadget.o
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -f *.o
	rm -f uvc-gadget