summaryrefslogtreecommitdiff
path: root/3rdparty/media-ctl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/media-ctl/Makefile')
-rw-r--r--3rdparty/media-ctl/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/3rdparty/media-ctl/Makefile b/3rdparty/media-ctl/Makefile
new file mode 100644
index 0000000..fc7780b
--- /dev/null
+++ b/3rdparty/media-ctl/Makefile
@@ -0,0 +1,23 @@
+AR := $(CROSS_COMPILE)ar
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -O2 -W -Wall -Wno-unused-parameter -I$(KDIR)/usr/include -I$(topdir)/include -Iinclude/ -I. -fPIC
+LDFLAGS :=
+
+OBJECTS := libmediactl.o \
+ libv4l2subdev.o
+
+TARGET := libmediactl.a
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ $(AR) -r $@ $^
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ -$(RM) *.o
+ -$(RM) $(TARGET)
+
+install: