diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-10-08 16:09:10 +0200 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-10-08 16:09:10 +0200 |
commit | 2e7c05969d7923419f2536a92d5e53f4f829ab71 (patch) | |
tree | 8d89554c9c1d3feb9c3704c2d7b8bc87f3038124 /v4l2-fimc-m2m-example/Makefile | |
parent | 15d10f8366cefb07d4c9d23e97752a4aba5763de (diff) |
v4l2-m2m-fimc-example: version 0.1
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
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 |