summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/libv4lconvert/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-07 01:17:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-07 01:17:45 -0300
commitc8d4bba77d042c9ede4936550f38666cde85a50c (patch)
treeee7aa9817d9af2ca9edfb26a137c6192fa6c2072 /v4l2-apps/libv4l/libv4lconvert/Makefile
parent38df09ba8b967b4d219c2afe04dcc1ae743e766f (diff)
parentb90712cf41e75451c3b515ed41d2eda714db3de1 (diff)
downloadmediapointer-dvb-s2-c8d4bba77d042c9ede4936550f38666cde85a50c.tar.gz
mediapointer-dvb-s2-c8d4bba77d042c9ede4936550f38666cde85a50c.tar.bz2
merge: http://linuxtv.org/hg/~awalls/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/Makefile')
-rw-r--r--v4l2-apps/libv4l/libv4lconvert/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/Makefile b/v4l2-apps/libv4l/libv4lconvert/Makefile
index 036649e86..cc3941b87 100644
--- a/v4l2-apps/libv4l/libv4lconvert/Makefile
+++ b/v4l2-apps/libv4l/libv4lconvert/Makefile
@@ -14,10 +14,10 @@ endif
CONVERT_OBJS = libv4lconvert.o tinyjpeg.o sn9c10x.o sn9c20x.o pac207.o \
mr97310a.o flip.o crop.o jidctflt.o spca561-decompress.o \
- rgbyuv.o spca501.o sq905c.o bayer.o hm12.o helper.o \
+ rgbyuv.o sn9c2028-decomp.o spca501.o sq905c.o bayer.o hm12.o \
control/libv4lcontrol.o processing/libv4lprocessing.o \
processing/whitebalance.o processing/autogain.o \
- processing/gamma.o
+ processing/gamma.o helper.o
TARGETS = $(CONVERT_LIB) libv4lconvert.pc ov511-decomp ov518-decomp
INCLUDES = ../include/libv4lconvert.h
@@ -33,7 +33,11 @@ ifeq ($(LIBDIR),)
LIBDIR = $(PREFIX)/lib
endif
-override CPPFLAGS += -DLIBDIR=\"$(LIBDIR)\"
+ifeq ($(LIBSUBDIR),)
+LIBSUBDIR = libv4l
+endif
+
+override CPPFLAGS += -DLIBDIR=\"$(LIBDIR)\" -DLIBSUBDIR=\"$(LIBSUBDIR)\"
all: $(TARGETS)
@@ -55,7 +59,7 @@ libv4lconvert.pc:
install: all
mkdir -p $(DESTDIR)$(PREFIX)/include
install -p -m 644 $(INCLUDES) $(DESTDIR)$(PREFIX)/include
- mkdir -p $(DESTDIR)$(LIBDIR)/libv4l
+ mkdir -p $(DESTDIR)$(LIBDIR)/$(LIBSUBDIR)
ifeq ($(LINKTYPE),static)
install -m 644 $(CONVERT_LIB) $(DESTDIR)$(LIBDIR)
else
@@ -63,7 +67,7 @@ else
cd $(DESTDIR)$(LIBDIR) && \
ln -f -s $(CONVERT_LIB).$(LIB_RELEASE) $(CONVERT_LIB)
endif
- install -m 755 *-decomp $(DESTDIR)$(LIBDIR)/libv4l
+ install -m 755 *-decomp $(DESTDIR)$(LIBDIR)/$(LIBSUBDIR)
mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
install -m 644 libv4lconvert.pc $(DESTDIR)$(LIBDIR)/pkgconfig