diff options
author | Mateusz Krawczuk <m.krawczuk@samsung.com> | 2015-07-06 16:36:14 +0200 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2015-07-09 15:55:05 +0200 |
commit | 364160b45c3303efba4e225be6ebeec8f09095f9 (patch) | |
tree | 53b362dd100d6b6b5c048bc4e3342fc28381f75c /v4l2-dmabuf-test/Makefile | |
parent | f1e15d5437a0f1078e071f5bc2da761b0500bf45 (diff) |
Makefiles update
v4l2-dmabuf-test
v4l2-mfc-encoder
v4l2-mfc-example
Signed-off-by: Mateusz Krawczuk <m.krawczuk@samsung.com>
Diffstat (limited to 'v4l2-dmabuf-test/Makefile')
-rw-r--r-- | v4l2-dmabuf-test/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/v4l2-dmabuf-test/Makefile b/v4l2-dmabuf-test/Makefile index cfd7436..330ec1c 100644 --- a/v4l2-dmabuf-test/Makefile +++ b/v4l2-dmabuf-test/Makefile @@ -1,8 +1,11 @@ +ifeq ($(KERNELHEADERS_PREFIX),) +$(warning KERNELHEADERS_PREFIX is not set, the build may fail due to lack of kernel headers) +endif + 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 +CFLAGS += -I$(KERNELHEADERS_PREFIX)/include -std=gnu99 -Wall -O2 all: $(OBJS) |