summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/Makefile
diff options
context:
space:
mode:
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)