summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4172e1)
raw | patch | inline | side by side (parent: d4172e1)
author | Barak A. Pearlmutter <barak+git@cs.nuim.ie> | |
Thu, 22 May 2014 22:12:53 +0000 (23:12 +0100) | ||
committer | Barak A. Pearlmutter <barak+git@cs.nuim.ie> | |
Thu, 22 May 2014 22:15:16 +0000 (23:15 +0100) |
.gitignore | patch | blob | history | |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/.gitignore b/.gitignore
index e39f4fb7a399e15c738d7e87cb7e80205f194686..c8c5e41d24e5008bcc7a4b9bb403db986e722879 100644 (file)
--- a/.gitignore
+++ b/.gitignore
src/mans/*.8
src/oping
src/noping
+src/oping.pc
*.bs
*.la
*.lo
diff --git a/configure.ac b/configure.ac
index ba73a31a1c5fad63a69c555400a63dfcf27309e1..e2208225fe6c97dc23377cc58554f02bf4b3e8f9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# configure libtool
LT_INIT([dlopen])
+# pkg-config interface
+PKG_INSTALLDIR
+
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
diff --git a/src/Makefile.am b/src/Makefile.am
index 13267836f714d3e4686d01bcac44830cf9daea12..7278c688342b042b6b2bed6f763a9be7bb020f3f 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
liboping_la_LIBADD += -lxnet
endif
+oping.pc:
+ echo 'prefix=$(prefix)' > $@
+ echo 'exec_prefix=$(exec_prefix)' >> $@
+ echo 'includedir=$(includedir)' >> $@
+ echo 'libdir=$(libdir)' >> $@
+ echo >> $@
+ echo 'Name: $(PACKAGE_TARNAME)' >> $@
+ echo 'Description: $(PACKAGE_NAME)' >> $@
+ echo 'URL: $(PACKAGE_URL)' >> $@
+ echo 'Version: $(PACKAGE_VERSION)' >> $@
+ echo 'Cflags: -I${includedir}' >> $@
+ echo 'Libs: -L${libdir} -loping' >> $@
+ echo 'Libs.private: $(AM_LDFLAGS) $(LIBS) $(liboping_la_LIBADD)' >> $@
+
+pkgconfig_DATA = oping.pc
+
+MOSTLYCLEANFILES = $(pkgconfig_DATA)
+
bin_PROGRAMS = oping
oping_SOURCES = oping.c