summaryrefslogtreecommitdiff
path: root/v4l2-mfc-encoder
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-encoder
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-encoder')
-rw-r--r--v4l2-mfc-encoder/Makefile8
1 files changed, 6 insertions, 2 deletions
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)