summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/Makefile
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-07-01 14:41:32 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2006-07-01 14:41:32 +0200
commit03f118a31b76f1042007bccdbcd23168f3bc42e2 (patch)
tree7eb2bf647ffee882f0f2fc9f323d532724fea97d /v4l2-apps/lib/Makefile
parent6729498c6f12e5365bf99ce8ef09371aa2c4335e (diff)
downloadmediapointer-dvb-s2-03f118a31b76f1042007bccdbcd23168f3bc42e2.tar.gz
mediapointer-dvb-s2-03f118a31b76f1042007bccdbcd23168f3bc42e2.tar.bz2
Fix makefiles, start with libv4l2.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/lib/Makefile')
-rw-r--r--v4l2-apps/lib/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/v4l2-apps/lib/Makefile b/v4l2-apps/lib/Makefile
new file mode 100644
index 000000000..8143370d7
--- /dev/null
+++ b/v4l2-apps/lib/Makefile
@@ -0,0 +1,33 @@
+# Makefile for linuxtv.org v4l2-apps/lib
+
+CPPFLAGS += -I../../include -I..
+
+includes = v4l2.h
+
+objects = frequencies.o
+
+sharedlib = libv4l2.so
+staticlib = libv4l2.a
+
+ifeq ($(prefix),)
+prefix = /usr
+endif
+
+.PHONY: all clean install
+
+all: $(sharedlib) $(staticlib)
+
+$(sharedlib): $(objects)
+
+$(staticlib): $(objects)
+
+clean::
+ rm -f $(objects) $(sharedlib) $(staticlib)
+
+install:
+ mkdir -p $(prefix)/include
+ cp $(includes) $(prefix)/include
+ mkdir -p $(prefix)/lib
+ cp $(sharedlib) $(staticlib) $(prefix)/lib
+
+include ../Make.rules