From e4c2762680e1f5813f332a4ca22b0a7bf4ff4a9b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 13 Jun 2016 04:22:58 +0300 Subject: Add gen-image tool The tool is used to generate test images in a variety of formats from a PNM input image. Signed-off-by: Laurent Pinchart --- src/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..564ee24 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,22 @@ +CROSS_COMPILE ?= + +CC := $(CROSS_COMPILE)gcc +CFLAGS ?= -O0 -g -W -Wall -Wno-unused-parameter -Iinclude +LDFLAGS ?= +LIBS := -lm +GEN-IMAGE := gen-image + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +all: $(GEN-IMAGE) + +$(GEN-IMAGE): gen-image.o + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + +clean: + -rm -f *.o + -rm -f $(GEN-IMAGE) + +install: + cp $(GEN-IMAGE) $(INSTALL_DIR)/ -- cgit v1.2.3