Skip to content

Commit

Permalink
lib: Add support for pkgconfig for libsflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <[email protected]>
Acked-by: Flavio Leitner <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Thomas Graf authored and blp committed Nov 13, 2014
1 parent 32fe2cf commit e72e07a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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(lib/libsflow.pc)
AC_CONFIG_FILES(ofproto/libofproto.pc)
AC_CONFIG_FILES(ovsdb/libovsdb.pc)

Expand Down
1 change: 1 addition & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
/vtep-idl.h
/vtep-idl.ovsidl
/libopenvswitch.pc
/libsflow.pc
3 changes: 2 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c
endif

pkgconfig_DATA += \
$(srcdir)/lib/libopenvswitch.pc
$(srcdir)/lib/libopenvswitch.pc \
$(srcdir)/lib/libsflow.pc

EXTRA_DIST += \
lib/dh1024.pem \
Expand Down
11 changes: 11 additions & 0 deletions lib/libsflow.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libofproto
Description: sFlow library of Open vSwitch
Version: @VERSION@
Libs: -L${libdir} -lsflow
Libs.private: @LIBS@
Cflags: -I${includedir}/openvswitch

0 comments on commit e72e07a

Please sign in to comment.