summaryrefslogtreecommitdiff
path: root/v4l2-dmabuf-test/Makefile
blob: cfd74363aec7cb78a151e9a67833544c8e5ae1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CROSS_COMPILE ?= arm-linux-gnueabi-
KDIR ?= /usr/src/linux
CC=$(CROSS_COMPILE)gcc
OBJS = v4l2-dbuf
CFLAGS += -I$(KDIR)/usr/include -std=gnu99 -Wall -pedantic -O2

all:  $(OBJS)

%.o : %.c
	$(CC) $(CFLAGS) -c $< -o $@

% : %.c
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f *.o
	rm -f $(OBJS)