summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2008-07-12 06:46:18 +0300
committerGuillem Jover <guillem@hadrons.org>2008-07-12 07:39:25 +0300
commitc1615a50d35da13c174a9e162995de7fcb024773 (patch)
treeaf45c8e5c9b61a624ecbe8e8d0e4afd2c35cb414
parente42791d0d3e09848da10e2062f5e32d8b52effc7 (diff)
downloadlibbsd-c1615a50d35da13c174a9e162995de7fcb024773.tar.gz
Define a LIB_PKGCONFIG variable
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 52b469d..2d10c42 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ LIB_VERSION_MAJOR = 0
LIB_VERSION_MINOR = 0
LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR)
+LIB_PKGCONFIG := $(LIB_NAME).pc
LIB_STATIC := $(LIB_NAME).a
LIB_SHARED_SO := $(LIB_NAME).so
LIB_SONAME := $(LIB_SHARED_SO).$(LIB_VERSION_MAJOR)
@@ -15,7 +16,7 @@ LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR)
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
TAR_FILE := $(TAR_NAME).tar.gz
-LIB_DIST := Makefile Versions libbsd.pc
+LIB_DIST := Makefile Versions $(LIB_PKGCONFIG)
LIB_SRCS := arc4random.c bsd_getopt.c err.c fgetln.c heapsort.c \
humanize_number.c inet_net_pton.c \
@@ -86,7 +87,7 @@ install: libs man
install -m644 $(LIB_SHARED) $(DESTDIR)/lib/
for i in $(LIB_INCLUDES) ; do install -m644 include/$$i $(DESTDIR)/usr/include/$$i ; done
install -m644 $(LIB_MANS) $(DESTDIR)/usr/share/man/man3
- install -m644 $(LIB_NAME).pc $(DESTDIR)/usr/lib/pkgconfig
+ install -m644 $(LIB_PKGCONFIG) $(DESTDIR)/usr/lib/pkgconfig
ln -sf /lib/$(LIB_SHARED) $(DESTDIR)/usr/lib/$(LIB_SHARED_SO)
ln -sf $(LIB_SHARED) $(DESTDIR)/lib/$(LIB_SONAME)