From 487381abe368a430cdfb226cf69f6ba6e2481eff Mon Sep 17 00:00:00 2001 From: Jacek Anaszewski Date: Wed, 8 Jan 2014 16:35:36 +0100 Subject: v4l2-jpeg-codec-test: version 0.1 The run_fmt_test.sh script currently uses a hack to retrieve the JPEG codec video node names. Normally those names should be retrieved from sysfs or using libudev. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Jacek Anaszewski Signed-off-by: Sylwester Nawrocki --- v4l2-jpeg-codec-test/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 v4l2-jpeg-codec-test/Makefile (limited to 'v4l2-jpeg-codec-test/Makefile') diff --git a/v4l2-jpeg-codec-test/Makefile b/v4l2-jpeg-codec-test/Makefile new file mode 100644 index 0000000..715f398 --- /dev/null +++ b/v4l2-jpeg-codec-test/Makefile @@ -0,0 +1,30 @@ +# Target root +TARGETROOT?= +# Toolchain path +TCPATH?=arm-linux-gnueabi- + +CC = ${TCPATH}gcc +AR = "${TCPATH}ar rc" +AR2 = ${TCPATH}ranlib make -j4 + +INCLUDES = -I$(TARGETROOT)/include +SOURCES = test-jpeg.c +OBJECTS := $(SOURCES:.c=.o) +EXEC = test-jpeg +CFLAGS = -Wall -g + +all: $(EXEC) + +.c.o: + $(CC) -c $(CFLAGS) $(INCLUDES) $< + +$(EXEC): $(OBJECTS) + $(CC) $(CFLAGS) -g -O0 -o $(EXEC) $(OBJECTS) -lpthread + +clean: + rm -f *.o $(EXEC) + +install: + + +.PHONY: clean all -- cgit v1.2.3