diff options
Diffstat (limited to 'v4l2-fimc-m2m-example/Makefile')
-rw-r--r-- | v4l2-fimc-m2m-example/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
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 |