comparison libpostproc/Makefile @ 3111:380d5841b346 libavcodec

Separate library install into static and shared installation.
author diego
date Sat, 11 Feb 2006 18:50:45 +0000
parents b090207c3d18
children 31d15c4d86a0
comparison
equal deleted inserted replaced
3110:b090207c3d18 3111:380d5841b346
46 $(LIB): $(OBJS) 46 $(LIB): $(OBJS)
47 rm -f $@ 47 rm -f $@
48 $(AR) rc $@ $(OBJS) 48 $(AR) rc $@ $(OBJS)
49 $(RANLIB) $@ 49 $(RANLIB) $@
50 50
51 install: all 51
52 ifeq ($(BUILD_SHARED),yes) 52 install-lib-shared: $(SLIBNAME)
53 ifeq ($(CONFIG_WIN32),yes) 53 ifeq ($(CONFIG_WIN32),yes)
54 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" 54 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
55 else 55 else
56 install -d $(libdir)
57 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \ 56 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
58 $(libdir)/$(SLIBNAME_WITH_VERSION) 57 $(libdir)/$(SLIBNAME_WITH_VERSION)
59 ln -sf $(SLIBNAME_WITH_VERSION) \ 58 ln -sf $(SLIBNAME_WITH_VERSION) \
60 $(libdir)/$(SLIBNAME_WITH_MAJOR) 59 $(libdir)/$(SLIBNAME_WITH_MAJOR)
61 ln -sf $(SLIBNAME_WITH_VERSION) \ 60 ln -sf $(SLIBNAME_WITH_VERSION) \
62 $(libdir)/$(SLIBNAME) 61 $(libdir)/$(SLIBNAME)
63 $(LDCONFIG) || true
64 endif
65 endif 62 endif
66 63
67 installlib: all 64 install-lib-static: $(LIB)
68 install -m 644 $(LIB) "$(libdir)" 65 install -m 644 $(LIB) "$(libdir)"
69 66
70 install-headers: 67 install-headers:
71 mkdir -p $(prefix)/include/postproc 68 mkdir -p $(prefix)/include/postproc
72 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h 69 install -m 644 $(SRC_PATH)/libavcodec/libpostproc/postprocess.h $(prefix)/include/postproc/postprocess.h