summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/Makefile
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-06-30 10:45:25 +0200
committerKamil Debski <k.debski@samsung.com>2014-08-07 16:01:31 +0200
commitc655913a3bdd7ef6413814482983c3beff00bdc0 (patch)
tree02add96cbc81c5b68b6a75eca234222047ea9eb8 /v4l2-mfc-example/Makefile
parent0edbb0f97b0b5136d16313e48ff5a79714abc0a7 (diff)
v4l2-mfc-example: Add DRM support
Patch adding support for DRM video rendering. Signed-off-by: Kamil Debski <k.debski@samsung.com>
Diffstat (limited to 'v4l2-mfc-example/Makefile')
-rw-r--r--v4l2-mfc-example/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/v4l2-mfc-example/Makefile b/v4l2-mfc-example/Makefile
index 2117e1e..2594f9b 100644
--- a/v4l2-mfc-example/Makefile
+++ b/v4l2-mfc-example/Makefile
@@ -19,20 +19,25 @@
# Toolchain path
TCPATH = arm-linux-gnueabi-
#TCPATH =
-KERNELHEADERS = /home/kamil/praca/w1-party/kernel/headers/include
+KERNELHEADERS = -I/home/kamil/praca/w1-party/kernel/headers/include
+DRMHEADERS = -I/home/kamil/praca/drm/dst/include/libdrm \
+ -I/home/kamil/praca/drm/dst/include/exynos \
+ -I/home/kamil/praca/drm/dst/include
+LIBRARIES = -L/home/kamil/praca/drm/dst/lib/
+LIBS = -ldrm
CC = ${TCPATH}gcc
AR = "${TCPATH}ar rc"
AR2 = ${TCPATH}ranlib make -j4
-INCLUDES = -I$(KERNELHEADERS)
+INCLUDES = $(KERNELHEADERS) $(DRMHEADERS)
#INCLUDES = -I$(KERNELHEADERS)/include
#-I$(TARGETROOT)/usr/include/linux
-SOURCES = main.c fileops.c args.c parser.c fb.c fimc.c mfc.c queue.c
+SOURCES = main.c fileops.c args.c parser.c fb.c fimc.c mfc.c queue.c drm.c
OBJECTS := $(SOURCES:.c=.o)
EXEC = v4l2_decode
CFLAGS = -Wall -g -DS5PC1XX_FIMC -lm
@@ -44,7 +49,7 @@ all: $(EXEC)
$(CC) -c $(CFLAGS) $(INCLUDES) $<
$(EXEC): $(OBJECTS)
- $(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS) -pthread
+ $(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS) $(LIBRARIES) $(LIBS) -pthread
clean:
rm -f *.o $(EXEC)