diff options
author | Ross Burton <ross@linux.intel.com> | 2009-10-08 11:57:25 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2009-10-08 12:04:59 +0100 |
commit | 7df54e0c5c88e580ba6758f66819357297884455 (patch) | |
tree | d15240b6b8bfd9bf773bd8c9dda4f29be38a560c | |
parent | 41dc36a9afdccc436ee6638af20bb6911adc13ba (diff) |
Version the library and header
-rw-r--r-- | rest.pc.in | 8 | ||||
-rw-r--r-- | rest/Makefile.am | 12 |
2 files changed, 10 insertions, 10 deletions
@@ -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 |