From 07f9be7b1c92fbb64c4a08dffb4db30da8764d66 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 8 Oct 2009 00:19:18 +0100 Subject: Add pkg-config support, fixes #187. --- src/rc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rc/Makefile') diff --git a/src/rc/Makefile b/src/rc/Makefile index b5fc189f..78b862df 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -34,6 +34,7 @@ CPPFLAGS+= -I../includes -I../librc -I../libeinfo LDFLAGS+= -L../librc -L../libeinfo LDADD+= -lutil -lrc -leinfo +include ../../Makefile.inc MK= ../../mk include ${MK}/debug.mk include ${MK}/prog.mk @@ -46,7 +47,7 @@ include ${MK}/${MKPAM}.mk ${SRCS}: version.h version.h: - sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${GITVER}\"/p' ../../Makefile > version.h + echo "#define VERSION \"${VERSION}${GITVER}\"" >version.h if test -n "${BRANDING}"; then \ echo "#define BRANDING \"${BRANDING}\"" >> version.h; \ fi -- cgit v1.2.3