From 4832db38b75b2f34a91c63f02a7ed6de9edb1622 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 15 Apr 2011 01:17:09 +0200 Subject: omap3-isp-dsp sample application initial import 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..9385dde --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +CROSS_COMPILE ?= +KDIR ?= +MEDIACTL_DIR ?= /home/laurent/src/iob/arm + +CC := $(CROSS_COMPILE)gcc +CFLAGS := -O2 -W -Wall -I$(KDIR)/usr/include -I$(MEDIACTL_DIR)/include +LDFLAGS := -Lbridge -L$(MEDIA_CTL_DIR)/lib +LIBS := -lmediactl -lv4l2subdev -ldspbridge -lrt + +OBJECTS := isp-dsp.o v4l2.o + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +all: __bridge __dsp isp-dsp + +isp-dsp: $(OBJECTS) + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + +__bridge: + $(MAKE) -C bridge CROSS_COMPILE=$(CROSS_COMPILE) + +__dsp: + $(MAKE) -C dsp + +clean: + $(MAKE) -C dsp clean + $(MAKE) -C bridge clean + -$(RM) *.o + -$(RM) isp-dsp + -- cgit v1.2.3