From 364160b45c3303efba4e225be6ebeec8f09095f9 Mon Sep 17 00:00:00 2001 From: Mateusz Krawczuk Date: Mon, 6 Jul 2015 16:36:14 +0200 Subject: Makefiles update v4l2-dmabuf-test v4l2-mfc-encoder v4l2-mfc-example Signed-off-by: Mateusz Krawczuk --- v4l2-mfc-encoder/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'v4l2-mfc-encoder') diff --git a/v4l2-mfc-encoder/Makefile b/v4l2-mfc-encoder/Makefile index d18ba17..d79666a 100644 --- a/v4l2-mfc-encoder/Makefile +++ b/v4l2-mfc-encoder/Makefile @@ -16,9 +16,13 @@ # limitations under the License. # +ifeq ($(KERNELHEADERS_PREFIX),) +$(warning KERNELHEADERS_PREFIX is not set, the build may fail due to lack of kernel headers) +endif + # Toolchain path TCPATH = arm-linux-gnueabi- -KERNELHEADERS = /home/kamil/praca/w1-party/kernel/headers/include +KERNELHEADERS = -I$(KERNELHEADERS_PREFIX) CC = ${TCPATH}gcc AR = "${TCPATH}ar rc" @@ -30,7 +34,7 @@ INCLUDES = -I$(KERNELHEADERS) SOURCES = main.c args.c in_demo.c out_file.c mfc.c io_dev.c func_dev.c v4l_dev.c in_camera.c OBJECTS := $(SOURCES:.c=.o) EXEC = mfc-encode -CFLAGS = -Wall -g -DS5PC1XX_FIMC +CFLAGS = -Wall -g DEP = .dep all: $(EXEC) $(DEP) -- cgit v1.2.3