From dfc03582dd75718824c8e07a199a469e5da41be5 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 30 Aug 2015 10:58:38 +0100 Subject: [PATCH] Makefile.am: Include a pkgconfig file. --- Makefile.am | 11 +++++++++++ sod.pc.in | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 sod.pc.in diff --git a/Makefile.am b/Makefile.am index e1b1bbf..421bf26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,17 @@ include $(top_srcdir)/vars.am SUBDIRS = ###-------------------------------------------------------------------------- +### Package-configuration file. + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = sod.pc +CLEANFILES += sod.pc +EXTRA_DIST += sod.pc.in + +sod.pc: sod.pc.in Makefile + $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@ + +###-------------------------------------------------------------------------- ### Subdirectories to build ## The SOD translator. diff --git a/sod.pc.in b/sod.pc.in new file mode 100644 index 0000000..7b7709e --- /dev/null +++ b/sod.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: sod +Description: Sensible object design, runtime library +Version: @VERSION@ +Libs: -L${libdir} -lsod +Cflags: -I${includedir} -- 2.11.0