From c9601d407a7ca943e53fa49a5a5f69b868c6ed11 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 18 Nov 2014 22:52:06 +0200 Subject: Xilinx video library - Initial import Signed-off-by: Laurent Pinchart --- plugins/v4l2/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugins/v4l2/Makefile (limited to 'plugins/v4l2/Makefile') diff --git a/plugins/v4l2/Makefile b/plugins/v4l2/Makefile new file mode 100644 index 0000000..fcce631 --- /dev/null +++ b/plugins/v4l2/Makefile @@ -0,0 +1,22 @@ +AR := $(CROSS_COMPILE)ar +CC := $(CROSS_COMPILE)gcc +CFLAGS := -O2 -W -Wall -Wno-unused-parameter -I$(KDIR)/usr/include -I$(topdir)/3rdparty/media-ctl/include -I$(topdir)/include -I. -fPIC +LDFLAGS := -L$(topdir)/3rdparty/media-ctl +LIBS := -lmediactl + +OBJECTS := xlnx-v4l2.o +TARGET := xlnx-v4l2.so + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + $(CC) -o $@ -shared $^ + +clean: + -$(RM) *.o + -$(RM) $(TARGET) + +install: -- cgit v1.2.3