summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/Makefile
diff options
context:
space:
mode:
authorMateusz Krawczuk <m.krawczuk@samsung.com>2015-07-06 16:36:14 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2015-07-09 15:55:05 +0200
commit364160b45c3303efba4e225be6ebeec8f09095f9 (patch)
tree53b362dd100d6b6b5c048bc4e3342fc28381f75c /v4l2-mfc-example/Makefile
parentf1e15d5437a0f1078e071f5bc2da761b0500bf45 (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-mfc-example/Makefile')
-rw-r--r--v4l2-mfc-example/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/v4l2-mfc-example/Makefile b/v4l2-mfc-example/Makefile
index 131ebaf..9fbe3fb 100644
--- a/v4l2-mfc-example/Makefile
+++ b/v4l2-mfc-example/Makefile
@@ -27,19 +27,18 @@ $(warning KERNELHEADERS_PREFIX is not set, the build may fail due to lack of ker
endif
# Toolchain path
-TCPATH = arm-linux-gnueabi-
-#TCPATH =
-KERNELHEADERS = -I$(KERNELHEADERS_PREFIX)
-DRMHEADERS = -I$(LIBDRM_PREFIX)/include/ \
- -I$(LIBDRM_PREFIX)/include/libdrm/ \
+CROSS_COMPILE ?= arm-linux-gnueabi-
+KERNELHEADERS = -I$(KERNELHEADERS_PREFIX)/include
+DRMHEADERS = -I$(LIBDRM_PREFIX)/include \
+ -I$(LIBDRM_PREFIX)/include/libdrm \
-I$(LIBDRM_PREFIX)/include/exynos \
-I./
LIBRARIES = -L$(LIBDRM_PREFIX)/lib/
LIBS = -ldrm
-CC = ${TCPATH}gcc
-AR = "${TCPATH}ar rc"
-AR2 = ${TCPATH}ranlib make
+CC = ${CROSS_COMPILE}gcc
+AR = "${CROSS_COMPILE}ar rc"
+AR2 = ${CROSS_COMPILE}ranlib make
INCLUDES = $(KERNELHEADERS) $(DRMHEADERS)
@@ -51,7 +50,7 @@ INCLUDES = $(KERNELHEADERS) $(DRMHEADERS)
SOURCES = main.c fileops.c args.c parser.c fb.c fimc.c mfc.c queue.c drm.c gem.c ipp.c
OBJECTS := $(SOURCES:.c=.o)
EXEC = v4l2_decode
-CFLAGS = -Wall -g -DS5PC1XX_FIMC -lm
+CFLAGS = -Wall -g -lm
#-Os
all: $(EXEC)