-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,4 +1,4 @@ | |||
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} |
@@ -8,8 +8,8 @@ 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 |
@@ -31,8 +31,20 @@ RP-db.cc: RP-db.sql | |||
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 |