~ubuntu-branches/ubuntu/vivid/librest/vivid-proposed

« back to all changes in this revision

Viewing changes to rest/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2009-10-21 17:16:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091021171622-1yhw1c2owwught3f
Tags: 0.6.1-1
* New upstream release
* debian/conrtol: Split librest and librest-extras
* debian/rules: Use autoreconf to re-generate the configure
* debian/rules: Add proper clean rule to remove non-source files
* debian/watch: Add git repo releases
* debian/copyright: Update copyright file to newer spec
* debian/control: Bump standard version to 3.8.3. Nothing changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
lib_LTLIBRARIES = librest.la
 
1
# For some reason I can't use $(librest_@API_VERSION@_la_SOURCES) in
 
2
# test_runner_SOURCES, so we have to do this
 
3
lib_sources = \
 
4
        rest-proxy.c                    \
 
5
        rest-proxy-call.c               \
 
6
        rest-proxy-call-private.h       \
 
7
        rest-xml-parser.c               \
 
8
        rest-main.c                     \
 
9
        rest-private.h                  \
 
10
        oauth-proxy.c                   \
 
11
        oauth-proxy-call.c              \
 
12
        oauth-proxy-private.h           \
 
13
        sha1.c                          \
 
14
        sha1.h
 
15
lib_headers = rest-proxy.h      \
 
16
        rest-proxy-call.h       \
 
17
        oauth-proxy.h           \
 
18
        oauth-proxy-call.h      \
 
19
        rest-xml-parser.h
2
20
 
3
 
librest_la_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) \
 
21
lib_LTLIBRARIES = librest-@API_VERSION@.la
 
22
librest_@API_VERSION@_la_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) \
4
23
                    $(SOUP_CFLAGS) $(SOUP_GNOME_CFLAGS) \
5
24
                    $(XML_CFLAGS) \
6
25
                    -I$(top_srcdir) -Wall -DG_LOG_DOMAIN=\"Rest\"
7
 
librest_la_LIBADD = $(GLIB_LIBS) $(GTHREAD_LIBS) \
 
26
librest_@API_VERSION@_la_LIBADD = $(GLIB_LIBS) $(GTHREAD_LIBS) \
8
27
                    $(SOUP_LIBS) $(SOUP_GNOME_LIBS) $(XML_LIBS)
9
 
librest_la_SOURCES = rest-proxy.c       \
10
 
                     rest-proxy-call.c  \
11
 
                     rest-proxy-call-private.h  \
12
 
                     rest-xml-parser.c  \
13
 
                     rest-main.c        \
14
 
                     rest-private.h     \
15
 
                     oauth-proxy.c      \
16
 
                     oauth-proxy-call.c \
17
 
                     oauth-proxy-private.h \
18
 
                     flickr-proxy.c     \
19
 
                     flickr-proxy-call.c        \
20
 
                     flickr-proxy-private.h \
21
 
                     facebook-proxy.c   \
22
 
                     facebook-proxy-call.c      \
23
 
                     facebook-proxy-private.h \
24
 
                     sha1.c     \
25
 
                     sha1.h     \
26
 
                     $(librest_la_HEADERS)
27
 
librest_la_HEADERS = rest-proxy.h       \
28
 
                     rest-proxy-call.h  \
29
 
                     oauth-proxy.h      \
30
 
                     oauth-proxy-call.h \
31
 
                     flickr-proxy.h     \
32
 
                     flickr-proxy-call.h        \
33
 
                     facebook-proxy.h   \
34
 
                     facebook-proxy-call.h      \
35
 
                     rest-xml-parser.h
36
 
librest_ladir = $(includedir)/rest/rest
 
28
librest_@API_VERSION@_la_SOURCES = $(lib_sources) $(lib_headers)
 
29
librest_@API_VERSION@_la_HEADERS = $(lib_headers)
 
30
librest_@API_VERSION@_ladir = $(includedir)/rest-@API_VERSION@/rest
37
31
 
38
32
 
39
33
# Test suite
40
34
TESTS = test-runner
41
35
check_PROGRAMS = test-runner
42
36
 
43
 
test_runner_SOURCES = test-runner.c $(librest_la_SOURCES)
44
 
test_runner_CFLAGS = -DBUILD_TESTS $(librest_la_CFLAGS)
45
 
test_runner_LDFLAGS = $(librest_la_LIBADD)
 
37
test_runner_SOURCES = test-runner.c $(lib_sources) $(lib_headers)
 
38
test_runner_CFLAGS = -DBUILD_TESTS $(librest_@API_VERSION@_la_CFLAGS)
 
39
test_runner_LDFLAGS = $(librest_@API_VERSION@_la_LIBADD)
46
40
 
47
41
# TODO: use gtester