From febcb53ca85d911619456c09c4be49fd73c4964b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 30 Jul 2011 14:33:37 +0200 Subject: omap3-isp-live: Initial commit Signed-off-by: Laurent Pinchart --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..849e367 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +CROSS_COMPILE ?= +KDIR ?= + +CC := $(CROSS_COMPILE)gcc +CFLAGS := -O2 -W -Wall -I$(KDIR)/usr/include +LDFLAGS := -Lisp +LIBS := -lomap3isp -lrt + +OBJ_LIVE := live.o videoout.o +OBJ_SNAP := snapshot.o + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +all: __isp live snapshot + +live: $(OBJ_LIVE) isp/libomap3isp.so + $(CC) $(LDFLAGS) -o $@ $(OBJ_LIVE) $(LIBS) + +snapshot: $(OBJ_SNAP) isp/libomap3isp.so + $(CC) $(LDFLAGS) -o $@ $(OBJ_SNAP) $(LIBS) + +__isp: + $(MAKE) -C isp CROSS_COMPILE=$(CROSS_COMPILE) KDIR=$(KDIR) + +clean: + $(MAKE) -C isp clean + -$(RM) *.o + -$(RM) live + -$(RM) snapshot + -- cgit v1.2.3