Signed-off-by: Thomas Graf <tg...@noironetworks.com> --- configure.ac | 1 + ofproto/.gitignore | 1 + ofproto/automake.mk | 2 ++ ofproto/libofproto.pc.in | 11 +++++++++++ 4 files changed, 15 insertions(+) create mode 100644 ofproto/libofproto.pc.in
diff --git a/configure.ac b/configure.ac index 5e0414a..d3b3d59 100644 --- a/configure.ac +++ b/configure.ac @@ -173,6 +173,7 @@ AC_CONFIG_FILES(datapath/linux/Makefile) AC_CONFIG_FILES(datapath/linux/Makefile.main) AC_CONFIG_FILES(tests/atlocal) AC_CONFIG_FILES(lib/libopenvswitch.pc) +AC_CONFIG_FILES(ofproto/libofproto.pc) dnl This makes sure that include/openflow gets created in the build directory. AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp]) diff --git a/ofproto/.gitignore b/ofproto/.gitignore index cd10be1..7ca3fd4 100644 --- a/ofproto/.gitignore +++ b/ofproto/.gitignore @@ -1,3 +1,4 @@ /Makefile /Makefile.in /ipfix-entities.def +/libofproto.pc diff --git a/ofproto/automake.mk b/ofproto/automake.mk index f548946..0058ff3 100644 --- a/ofproto/automake.mk +++ b/ofproto/automake.mk @@ -59,6 +59,8 @@ if WIN32 ofproto_libofproto_la_LIBADD += ${PTHREAD_LIBS} endif +pkgconfig_DATA += \ + $(srcdir)/ofproto/libofproto.pc # Distribute this generated file in order not to require Python at # build time if ofproto/ipfix.xml is not modified. diff --git a/ofproto/libofproto.pc.in b/ofproto/libofproto.pc.in new file mode 100644 index 0000000..dbedcce --- /dev/null +++ b/ofproto/libofproto.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libofproto +Description: OpenFlow library of Open vSwitch +Version: @VERSION@ +Libs: -L${libdir} -lofproto +Libs.private: @LIBS@ +Cflags: -I${includedir}/openflow -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev