-rw-r--r-- | test/Makefile.am | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 8fedf48..f0c0ea8 100644 --- a/test/Makefile.am +++ b/test/Makefile.am | |||
@@ -1,7 +1,7 @@ | |||
1 | noinst_PROGRAMS = test idiscover RP.cgi OP.cgi | 1 | noinst_PROGRAMS = test idiscover RP.cgi OP.cgi test-oauth-consumer |
2 | 2 | ||
3 | AM_CPPFLAGS=${CPPFLAGS_DEBUG} | 3 | AM_CPPFLAGS=${CPPFLAGS_DEBUG} |
4 | DEFAULT_INCLUDES = -I${top_builddir} | 4 | DEFAULT_INCLUDES = -I${top_builddir} |
5 | INCLUDES = -I${top_srcdir}/test/ -I${top_builddir}/include/ -I${top_srcdir}/include/ ${KONFORKA_CFLAGS} ${LIBCURL_CPPFLAGS} | 5 | INCLUDES = -I${top_srcdir}/test/ -I${top_builddir}/include/ -I${top_srcdir}/include/ ${KONFORKA_CFLAGS} ${LIBCURL_CPPFLAGS} |
6 | 6 | ||
7 | test_SOURCES = test.cc | 7 | test_SOURCES = test.cc |
@@ -11,21 +11,24 @@ EXTRA_DIST= \ | |||
11 | sqlite.h kingate_openid_message.h \ | 11 | sqlite.h kingate_openid_message.h \ |
12 | RP-db.sql OP-db.sql | 12 | RP-db.sql OP-db.sql |
13 | 13 | ||
14 | idiscover_SOURCES = idiscover.cc | 14 | idiscover_SOURCES = idiscover.cc |
15 | idiscover_LDADD = ${top_builddir}/lib/libopkele.la | 15 | idiscover_LDADD = ${top_builddir}/lib/libopkele.la |
16 | 16 | ||
17 | test_oauth_consumer_SOURCES = test-oauth-consumer.cc | ||
18 | test_oauth_consumer_LDADD = ${top_builddir}/lib/libopkele.la | ||
19 | |||
17 | if HAVE_SQLITE3 | 20 | if HAVE_SQLITE3 |
18 | if HAVE_KINGATE | ||
19 | if HAVE_UUID | 21 | if HAVE_UUID |
22 | if HAVE_KINGATE | ||
20 | 23 | ||
21 | RP_cgi_SOURCES = RP.cc | 24 | RP_cgi_SOURCES = RP.cc |
22 | nodist_RP_cgi_SOURCES = RP-db.cc | 25 | nodist_RP_cgi_SOURCES = RP-db.cc |
23 | RP_cgi_LDADD = ${top_builddir}/lib/libopkele.la \ | 26 | RP_cgi_LDADD = ${top_builddir}/lib/libopkele.la \ |
24 | ${SQLITE3_LIBS} ${KINGATE_LIBS} ${UUID_LIBS} | 27 | ${SQLITE3_LIBS} ${KINGATE_LIBS} |
25 | RP_cgi_CFLAGS = ${SQLITE3_CFLAGS} ${KINGATE_CFLAGS} ${UUID_CFLAGS} | 28 | RP_cgi_CFLAGS = ${SQLITE3_CFLAGS} ${KINGATE_CFLAGS} |
26 | 29 | ||
27 | RP-db.cc: RP-db.sql | 30 | RP-db.cc: RP-db.sql |
28 | ( \ | 31 | ( \ |
29 | echo 'const char * __RP_db_bootstrap = ' && \ | 32 | echo 'const char * __RP_db_bootstrap = ' && \ |
30 | sed -e 's/^/"/' -e 's/$$/"/' $< && \ | 33 | sed -e 's/^/"/' -e 's/$$/"/' $< && \ |
31 | echo ';' \ | 34 | echo ';' \ |
@@ -43,9 +46,9 @@ OP-db.cc: OP-db.sql | |||
43 | echo ';' \ | 46 | echo ';' \ |
44 | ) >$@ | 47 | ) >$@ |
45 | 48 | ||
46 | clean-local: | 49 | clean-local: |
47 | rm -f RP-db.cc OP-db.cc | 50 | rm -f RP-db.cc OP-db.cc |
48 | 51 | ||
49 | endif #HAVE_UUID | ||
50 | endif #HAVE_KINGATE | 52 | endif #HAVE_KINGATE |
53 | endif #HAVE_UUID | ||
51 | endif #HAVE_SQLITE3 | 54 | endif #HAVE_SQLITE3 |