summaryrefslogtreecommitdiff
path: root/v4l2-jpeg-codec-test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-jpeg-codec-test/Makefile')
-rw-r--r--v4l2-jpeg-codec-test/Makefile30
1 files changed, 30 insertions, 0 deletions
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