mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-02 04:22:02 +03:00
configure/makefile tidying + pkg-config support.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Version 1.02.05 -
|
Version 1.02.05 -
|
||||||
=============================
|
=============================
|
||||||
|
Separate install_include target in makefiles.
|
||||||
|
Separate out DEFS from CFLAGS.
|
||||||
|
Support pkg-config.
|
||||||
|
Check for libsepol.
|
||||||
|
|
||||||
Version 1.02.04 - 14 Apr 2006
|
Version 1.02.04 - 14 Apr 2006
|
||||||
=============================
|
=============================
|
||||||
|
@ -30,7 +30,7 @@ include ../make.tmpl
|
|||||||
|
|
||||||
CLDFLAGS += -ldl -ldevmapper -lpthread
|
CLDFLAGS += -ldl -ldevmapper -lpthread
|
||||||
|
|
||||||
.PHONY: install_dynamic install_static
|
.PHONY: install_dynamic install_static install_include
|
||||||
|
|
||||||
INSTALL_TYPE = install_dynamic
|
INSTALL_TYPE = install_dynamic
|
||||||
|
|
||||||
@ -40,13 +40,17 @@ endif
|
|||||||
|
|
||||||
install: $(INSTALL_TYPE)
|
install: $(INSTALL_TYPE)
|
||||||
|
|
||||||
|
install_include:
|
||||||
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
|
||||||
|
$(includedir)/libdevmapper-event.h
|
||||||
|
|
||||||
install_dynamic: libdevmapper-event.$(LIB_SUFFIX)
|
install_dynamic: libdevmapper-event.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION)
|
$(libdir)/libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION)
|
||||||
$(LN_S) -f libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION) \
|
$(LN_S) -f libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION) \
|
||||||
$(libdir)/libdevmapper-event.$(LIB_SUFFIX)
|
$(libdir)/libdevmapper-event.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 devmapper-event.pc \
|
||||||
$(includedir)/libdevmapper-event.h
|
$(usrlibdir)/pkgconfig/libdevmapper-event.pc
|
||||||
|
|
||||||
install_static: libdevmapper-event.a
|
install_static: libdevmapper-event.a
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
|
12
daemons/dmeventd/libdevmapper-event.pc.in
Normal file
12
daemons/dmeventd/libdevmapper-event.pc.in
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: devmapper-event
|
||||||
|
Description: device-mapper event library
|
||||||
|
Version: @DM_LIB_VERSION@
|
||||||
|
Requires: devmapper
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -ldevmapper-event
|
||||||
|
Libs.private: -lpthread -ldl
|
@ -42,7 +42,7 @@ CFLAGS += -DDEVICE_UID=@DEVICE_UID@ -DDEVICE_GID=@DEVICE_GID@ \
|
|||||||
|
|
||||||
include ../make.tmpl
|
include ../make.tmpl
|
||||||
|
|
||||||
.PHONY: install_dynamic install_static \
|
.PHONY: install_dynamic install_static install_include \
|
||||||
install_fs install_ioctl install_ioctl_static
|
install_fs install_ioctl install_ioctl_static
|
||||||
|
|
||||||
INSTALL_TYPE = install_dynamic
|
INSTALL_TYPE = install_dynamic
|
||||||
@ -51,18 +51,18 @@ ifeq ("@STATIC_LINK@", "yes")
|
|||||||
INSTALL_TYPE += install_static
|
INSTALL_TYPE += install_static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: $(INSTALL_TYPE)
|
install: $(INSTALL_TYPE) install_include
|
||||||
|
|
||||||
|
install_include:
|
||||||
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
||||||
|
$(includedir)/libdevmapper.h
|
||||||
|
|
||||||
install_dynamic: install_@interface@
|
install_dynamic: install_@interface@
|
||||||
$(LN_S) -f libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) \
|
$(LN_S) -f libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) \
|
||||||
$(libdir)/libdevmapper.$(LIB_SUFFIX)
|
$(libdir)/libdevmapper.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
|
||||||
$(includedir)/libdevmapper.h
|
|
||||||
|
|
||||||
install_static: install_@interface@_static
|
install_static: install_@interface@_static
|
||||||
$(LN_S) -f libdevmapper.a.$(LIB_VERSION) $(libdir)/libdevmapper.a
|
$(LN_S) -f libdevmapper.a.$(LIB_VERSION) $(libdir)/libdevmapper.a
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
|
||||||
$(includedir)/libdevmapper.h
|
|
||||||
|
|
||||||
install_fs: fs/libdevmapper.$(LIB_SUFFIX)
|
install_fs: fs/libdevmapper.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
@ -71,6 +71,8 @@ install_fs: fs/libdevmapper.$(LIB_SUFFIX)
|
|||||||
install_ioctl: ioctl/libdevmapper.$(LIB_SUFFIX)
|
install_ioctl: ioctl/libdevmapper.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION)
|
$(libdir)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION)
|
||||||
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 devmapper.pc \
|
||||||
|
$(usrlibdir)/pkgconfig/libdevmapper.pc
|
||||||
|
|
||||||
install_ioctl_static: ioctl/libdevmapper.a
|
install_ioctl_static: ioctl/libdevmapper.a
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
|
11
libdm/libdevmapper.pc.in
Normal file
11
libdm/libdevmapper.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: devmapper
|
||||||
|
Description: device-mapper library
|
||||||
|
Version: @DM_LIB_VERSION@
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -ldevmapper
|
||||||
|
Libs.private: -lselinux -lsepol
|
Reference in New Issue
Block a user