-rw-r--r-- | test/Makefile.am | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 61e3787..8fedf48 100644 --- a/test/Makefile.am +++ b/test/Makefile.am | |||
@@ -1,39 +1,51 @@ | |||
1 | noinst_PROGRAMS = test idiscover RP.cgi | 1 | noinst_PROGRAMS = test idiscover RP.cgi OP.cgi |
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 |
8 | test_LDADD = ${top_builddir}/lib/libopkele.la | 8 | test_LDADD = ${top_builddir}/lib/libopkele.la |
9 | 9 | ||
10 | EXTRA_DIST= \ | 10 | EXTRA_DIST= \ |
11 | sqlite.h \ | 11 | sqlite.h kingate_openid_message.h \ |
12 | RP-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 | if HAVE_SQLITE3 | 17 | if HAVE_SQLITE3 |
18 | if HAVE_KINGATE | 18 | if HAVE_KINGATE |
19 | if HAVE_UUID | 19 | if HAVE_UUID |
20 | 20 | ||
21 | RP_cgi_SOURCES = RP.cc | 21 | RP_cgi_SOURCES = RP.cc |
22 | nodist_RP_cgi_SOURCES = RP-db.cc | 22 | nodist_RP_cgi_SOURCES = RP-db.cc |
23 | RP_cgi_LDADD = ${top_builddir}/lib/libopkele.la \ | 23 | RP_cgi_LDADD = ${top_builddir}/lib/libopkele.la \ |
24 | ${SQLITE3_LIBS} ${KINGATE_LIBS} ${UUID_LIBS} | 24 | ${SQLITE3_LIBS} ${KINGATE_LIBS} ${UUID_LIBS} |
25 | RP_cgi_CFLAGS = ${SQLITE3_CFLAGS} ${KINGATE_CFLAGS} ${UUID_CFLAGS} | 25 | RP_cgi_CFLAGS = ${SQLITE3_CFLAGS} ${KINGATE_CFLAGS} ${UUID_CFLAGS} |
26 | 26 | ||
27 | RP-db.cc: RP-db.sql | 27 | RP-db.cc: RP-db.sql |
28 | ( \ | 28 | ( \ |
29 | echo 'const char * __RP_db_bootstrap = ' && \ | 29 | echo 'const char * __RP_db_bootstrap = ' && \ |
30 | sed -e 's/^/"/' -e 's/$$/"/' $< && \ | 30 | sed -e 's/^/"/' -e 's/$$/"/' $< && \ |
31 | echo ';' \ | 31 | echo ';' \ |
32 | ) >$@ | 32 | ) >$@ |
33 | 33 | ||
34 | OP_cgi_SOURCES = OP.cc | ||
35 | nodist_OP_cgi_SOURCES = OP-db.cc | ||
36 | OP_cgi_LDADD = ${RP_cgi_LDADD} | ||
37 | OP_cgi_CFLAGS = ${RP_cgi_CFLAGS} | ||
38 | |||
39 | OP-db.cc: OP-db.sql | ||
40 | ( \ | ||
41 | echo 'const char * __OP_db_bootstrap = ' && \ | ||
42 | sed -e 's/^/"/' -e 's/$$/"/' $< && \ | ||
43 | echo ';' \ | ||
44 | ) >$@ | ||
45 | |||
34 | clean-local: | 46 | clean-local: |
35 | rm -f RP-db.cc | 47 | rm -f RP-db.cc OP-db.cc |
36 | 48 | ||
37 | endif #HAVE_UUID | 49 | endif #HAVE_UUID |
38 | endif #HAVE_KINGATE | 50 | endif #HAVE_KINGATE |
39 | endif #HAVE_SQLITE3 | 51 | endif #HAVE_SQLITE3 |