Add pkg-config support, fixes #187.

This commit is contained in:
Roy Marples
2009-10-08 00:19:18 +01:00
parent 42ca23b878
commit 07f9be7b1c
8 changed files with 47 additions and 4 deletions

11
pkgconfig/Makefile Normal file
View File

@@ -0,0 +1,11 @@
DIR= ${LIBDIR}/pkgconfig
SRCS= einfo.pc.in openrc.pc.in
INC= einfo.pc openrc.pc
sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${GITVER}\"/p' ../../Makefile > version.h
SED_EXTRA= -e 's:@VERSION@:${VERSION}:g'
MK= ../mk
include ../Makefile.inc
include ${MK}/scripts.mk