Completed SAML 1 assertion schema, started test cases.
[shibboleth/cpp-opensaml.git] / samltest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4 bin_PROGRAMS = samltest
5 samltest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
6 else
7 bin_PROGRAMS = 
8 endif
9
10 samltest_h = \
11     samltest.h \
12     saml1/core/impl/ActionTest.h
13
14 noinst_HEADERS = \
15     internal.h
16
17 nodist_samltest_SOURCES = $(samltest_h:.h=.cpp)
18
19 CLEANFILES = $(nodist_samltest_SOURCES)
20
21 do-cxxtestgen:
22         if test $(HFILE) = "samltest.h"; then \
23                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
24         else \
25                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
26         fi;
27
28 $(nodist_samltest_SOURCES): %.cpp: %.h
29         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
30
31 samltest_LDADD = $(top_builddir)/saml/libsaml.la
32
33 EXTRA_DIST = samltest.vcproj $(samltest_h) data