summaryrefslogtreecommitdiff
path: root/v4l2-dmabuf-test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-dmabuf-test/Makefile')
-rw-r--r--v4l2-dmabuf-test/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/v4l2-dmabuf-test/Makefile b/v4l2-dmabuf-test/Makefile
new file mode 100644
index 0000000..cfd7436
--- /dev/null
+++ b/v4l2-dmabuf-test/Makefile
@@ -0,0 +1,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)