summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/libv4l/libv4lconvert/Makefile
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-13 13:06:29 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-02-13 13:06:29 +0100
commit4e061e403e8a5ab5f041a54a6852c69e6b00b368 (patch)
treed288a6a3edad467d22fc7cb7a022b327060a0733 /v4l2-apps/lib/libv4l/libv4lconvert/Makefile
parentd9fcd7e5495fbd0fe020223823338d21ce31dcaf (diff)
downloadmediapointer-dvb-s2-4e061e403e8a5ab5f041a54a6852c69e6b00b368.tar.gz
mediapointer-dvb-s2-4e061e403e8a5ab5f041a54a6852c69e6b00b368.tar.bz2
v4l2-apps: move libraries around to make the directory tree flatter
From: Hans Verkuil <hverkuil@xs4all.nl> Instead of having libv4l2util in v4l2-apps/lib and libv4l in v4l2-apps/lib/libv4l, both are now moved to v4l2-apps/libv4l2util and v4l2-apps/libv4l. This is much cleaner and less confusing. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4lconvert/Makefile')
-rw-r--r--v4l2-apps/lib/libv4l/libv4lconvert/Makefile70
1 files changed, 0 insertions, 70 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4lconvert/Makefile b/v4l2-apps/lib/libv4l/libv4lconvert/Makefile
deleted file mode 100644
index 641d19d6e..000000000
--- a/v4l2-apps/lib/libv4l/libv4lconvert/Makefile
+++ /dev/null
@@ -1,70 +0,0 @@
-override CPPFLAGS += -I../include -I../../../include -fvisibility=hidden
-
-CFLAGS := -g -O1
-CFLAGS += -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-
-ifeq ($(LINKTYPE),static)
-CONVERT_LIB = libv4lconvert.a
-else
-CONVERT_LIB = libv4lconvert.so
-override CPPFLAGS += -fPIC
-endif
-
-CONVERT_OBJS = libv4lconvert.o tinyjpeg.o sn9c10x.o pac207.o flip.o \
- jidctflt.o spca561-decompress.o rgbyuv.o spca501.o bayer.o
-TARGETS = $(CONVERT_LIB) libv4lconvert.pc
-INCLUDES = ../include/libv4lconvert.h
-
-ifeq ($(LIB_RELEASE),)
-LIB_RELEASE = 0
-endif
-
-ifeq ($(PREFIX),)
-PREFIX = /usr/local
-endif
-
-ifeq ($(LIBDIR),)
-LIBDIR = $(PREFIX)/lib
-endif
-
-all: $(TARGETS)
-
-$(CONVERT_LIB): $(CONVERT_OBJS)
-
-libv4lconvert.pc:
- @echo prefix=$(PREFIX) > libv4lconvert.pc
- @echo libdir=$(LIBDIR) >> libv4lconvert.pc
- @echo >> libv4lconvert.pc
- @echo 'Name: libv4lconvert' >> libv4lconvert.pc
- @echo 'Description: v4l format conversion library' >> libv4lconvert.pc
- @echo 'Version: '$(V4L2_LIB_VERSION) >> libv4lconvert.pc
- @echo 'Libs: -L$${libdir} -lv4lconvert' >> libv4lconvert.pc
- @echo 'Cflags: -I$${prefix}/include' >> libv4lconvert.pc
-
-install: all
- mkdir -p $(DESTDIR)$(PREFIX)/include
- install -p -m 644 $(INCLUDES) $(DESTDIR)$(PREFIX)/include
- mkdir -p $(DESTDIR)$(LIBDIR)
-ifeq ($(LINKTYPE),static)
- mkdir -p $(DESTDIR)$(LIBDIR)
- install -m 644 $(CONVERT_LIB) $(DESTDIR)$(LIBDIR)
-else
- install -m 755 $(CONVERT_LIB).$(LIB_RELEASE) $(DESTDIR)$(LIBDIR)
- cd $(DESTDIR)$(LIBDIR) && \
- ln -f -s $(CONVERT_LIB).$(LIB_RELEASE) $(CONVERT_LIB)
-endif
- mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
- install -m 644 libv4lconvert.pc $(DESTDIR)$(LIBDIR)/pkgconfig
-
-clean::
- rm -f *.a *.so* *.o *.d libv4lconvert.pc log *~
-
-%.o: %.c
- $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $<
-
-%.so:
- $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^
- ln -f -s $@.$(LIB_RELEASE) $@
-
-%.a:
- $(AR) cqs $@ $^