diff --git a/Makefile.am b/Makefile.am index 6958a53..d914ed3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,4 +15,7 @@ EXTRA_DIST = README AUTHORS COPYING SUBDIRS = src +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = exactness.pc + ACLOCAL_AMFLAGS = -I m4 diff --git a/configure.ac b/configure.ac index df01f99..9e9a67b 100644 --- a/configure.ac +++ b/configure.ac @@ -50,4 +50,5 @@ Makefile src/Makefile src/bin/Makefile src/lib/Makefile +exactness.pc ]) diff --git a/exactness.pc.in b/exactness.pc.in new file mode 100644 index 0000000..42568bb --- /dev/null +++ b/exactness.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Exactness +Description: A Library to read and write Exactness units +Version: @VERSION@ +Libs: -L${libdir} -lexactness +Cflags: -I${includedir}/exactness diff --git a/src/lib/Exactness.h b/src/lib/Exactness.h index 7af40bf..4798bb1 100644 --- a/src/lib/Exactness.h +++ b/src/lib/Exactness.h @@ -1,6 +1,8 @@ #ifndef _EXACTNESS_H #define _EXACTNESS_H +#include + #ifdef EAPI # undef EAPI #endif @@ -27,8 +29,6 @@ # endif #endif /* ! _WIN32 */ -#include - /** * @page exactness_main Exactness * diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 12ba773..c08121f 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,5 +1,8 @@ MAINTAINERCLEANFILES = Makefile.in +other_includedir = $(includedir)/exactness +other_include_HEADERS = Exactness.h + AM_CPPFLAGS = \ -I$(top_srcdir)/src/bin \ -DPACKAGE_BIN_DIR=\"$(bindir)\" \ @@ -11,8 +14,14 @@ EXTRA_DIST = \ tsuite_file_data.h exactness_private.h -pkgdir = $(libdir)/exactness -#pkg_LTLIBRARIES = libexactness_recorder.la libexactness_player.la +pkgdir = $(libdir) +pkg_LTLIBRARIES = libexactness.la + +libexactness_la_SOURCES = file.c +libexactness_la_LDFLAGS = -fPIC -rdynamic +libexactness_la_DEPENDENCIES = $(top_builddir)/config.h +libexactness_la_LIBADD = @EFL_LIBS@ +libexactness_la_CFLAGS = @EFL_CFLAGS@ libexactness_recorder_la_SOURCES = \ tsuite_hook_recorder.c \