From 2e7c05969d7923419f2536a92d5e53f4f829ab71 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Mon, 8 Oct 2012 16:09:10 +0200 Subject: v4l2-m2m-fimc-example: version 0.1 Signed-off-by: Sylwester Nawrocki --- v4l2-fimc-m2m-example/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 v4l2-fimc-m2m-example/Makefile (limited to 'v4l2-fimc-m2m-example/Makefile') diff --git a/v4l2-fimc-m2m-example/Makefile b/v4l2-fimc-m2m-example/Makefile new file mode 100644 index 0000000..53c6381 --- /dev/null +++ b/v4l2-fimc-m2m-example/Makefile @@ -0,0 +1,31 @@ +# Target root +#TARGETROOT?= +# Toolchain path +TCPATH?=arm-linux-gnueabi- +KERNELPATH?= + +CC = ${TCPATH}gcc +AR = "${TCPATH}ar rc" +AR2 = ${TCPATH}ranlib make -j4 + +INCLUDES = -I$(KERNELPATH)/include -I$(KERNELPATH)/arch/arm/include/ +SOURCES = fimc-m2m-f02.c +OBJECTS := $(SOURCES:.c=.o) +EXEC = fimc-m2m-f02 +CFLAGS = -Wall -g + +all: $(EXEC) + +.c.o: + $(CC) -c $(CFLAGS) $(INCLUDES) $< + +$(EXEC): $(OBJECTS) + $(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS) -lpthread #-L $(TARGETROOT)/usr/lib + +clean: + rm -f *.o $(EXEC) + +install: + + +.PHONY: clean all -- cgit v1.2.3