File: Makefile.am

package info (click to toggle)
opensaml 1.1a-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,360 kB
  • ctags: 1,771
  • sloc: cpp: 10,614; sh: 8,329; makefile: 199; ansic: 23
file content (40 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AUTOMAKE_OPTIONS = foreign

if BUILD_UNITTEST
bin_PROGRAMS = samltest signtest
samltest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
else
bin_PROGRAMS = signtest
endif

signtest_SOURCES = signtest.cpp

signtest_LDADD = $(top_builddir)/saml/libsaml.la

unittest_h = unittest.h \
	SAMLActionTest.h \
	SAMLArtifactCreationTest.h \
	SAMLArtifactType0001Test.h \
	SAMLArtifactType0002Test.h \
	SAMLAttributeTest.h \
	SAMLExceptionTest.h \
	SAMLSOAPHTTPBindingTest.h \
	SAMLSubjectTest.h

nodist_samltest_SOURCES = $(unittest_h:.h=.cpp)

CLEANFILES = $(nodist_samltest_SOURCES)

do-cxxtestgen:
	if test $(HFILE) = "unittest.h"; then \
		$(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
	else \
		$(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
	fi;

$(nodist_samltest_SOURCES): %.cpp: %.h
	$(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@

samltest_LDADD = $(top_builddir)/saml/libsaml.la

EXTRA_DIST = signtest.dsp unittest.dsp $(unittest_h)