summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-10-08 11:57:25 +0100
committerRoss Burton <ross@linux.intel.com>2009-10-08 12:04:59 +0100
commit7df54e0c5c88e580ba6758f66819357297884455 (patch)
treed15240b6b8bfd9bf773bd8c9dda4f29be38a560c
parent41dc36a9afdccc436ee6638af20bb6911adc13ba (diff)
downloadlibrest-7df54e0c5c88e580ba6758f66819357297884455.tar.gz
Version the library and header
-rw-r--r--rest.pc.in8
-rw-r--r--rest/Makefile.am12
2 files changed, 10 insertions, 10 deletions
diff --git a/rest.pc.in b/rest.pc.in
index e4cfbcc..94c384b 100644
--- a/rest.pc.in
+++ b/rest.pc.in
@@ -1,12 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
-includedir=@includedir@/rest
+includedir=@includedir@
+apiversion=@API_VERSION@
Name: rest
Description: RESTful web api query library
Version: @VERSION@
-Libs: -L${libdir} -lrest
-Cflags: -I${includedir}
+Libs: -L${libdir} -lrest-${apiversion}
+Cflags: -I${includedir}/rest-${apiversion}
Requires: glib-2.0 libsoup-2.4 libxml-2.0
-
diff --git a/rest/Makefile.am b/rest/Makefile.am
index 5c6fb03..bb35cfa 100644
--- a/rest/Makefile.am
+++ b/rest/Makefile.am
@@ -1,12 +1,12 @@
-lib_LTLIBRARIES = librest.la
+lib_LTLIBRARIES = librest-@API_VERSION@.la
-librest_la_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) \
+librest_@API_VERSION@_la_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) \
$(SOUP_CFLAGS) $(SOUP_GNOME_CFLAGS) \
$(XML_CFLAGS) \
-I$(top_srcdir) -Wall -DG_LOG_DOMAIN=\"Rest\"
-librest_la_LIBADD = $(GLIB_LIBS) $(GTHREAD_LIBS) \
+librest_@API_VERSION@_la_LIBADD = $(GLIB_LIBS) $(GTHREAD_LIBS) \
$(SOUP_LIBS) $(SOUP_GNOME_LIBS) $(XML_LIBS)
-librest_la_SOURCES = rest-proxy.c \
+librest_@API_VERSION@_la_SOURCES = rest-proxy.c \
rest-proxy-call.c \
rest-proxy-call-private.h \
rest-xml-parser.c \
@@ -24,7 +24,7 @@ librest_la_SOURCES = rest-proxy.c \
sha1.c \
sha1.h \
$(librest_la_HEADERS)
-librest_la_HEADERS = rest-proxy.h \
+librest_@API_VERSION@_la_HEADERS = rest-proxy.h \
rest-proxy-call.h \
oauth-proxy.h \
oauth-proxy-call.h \
@@ -33,7 +33,7 @@ librest_la_HEADERS = rest-proxy.h \
facebook-proxy.h \
facebook-proxy-call.h \
rest-xml-parser.h
-librest_ladir = $(includedir)/rest/rest
+librest_@API_VERSION@_ladir = $(includedir)/rest-@API_VERSION@/rest
# Test suite