diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-30 14:33:37 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-07-30 14:33:37 +0200 |
commit | febcb53ca85d911619456c09c4be49fd73c4964b (patch) | |
tree | 12ae3a93d117b56da6e1213882f5cc6de3977adb /Makefile |
omap3-isp-live: Initial commit
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
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 + |