diff options
Diffstat (limited to 'plugins/v4l2/Makefile')
| -rw-r--r-- | plugins/v4l2/Makefile | 22 | 
1 files changed, 22 insertions, 0 deletions
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:  | 
