blob: 19bacf2a66be6c39f524c963f32e4719b2bfa4f2 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001# Copyright (C) 1999-2005 Open Source Telecom Corporation.
2# Copyright (C) 2006-2008 David Sugar, Tycho Softworks.
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12MAINTAINERCLEANFILES = Makefile.in Makefile
13
14EXTRA_DIST = README dotests.sh test.sh output.txt vc6.mak Makefile.bcc
15AM_CXXFLAGS = $(THREAD_FLAGS) @WARN_FLAGS@
16INCLUDES = -I$(top_srcdir)/inc
17LDADD = ../src/libccgnu2.la $(THREAD_LIBS) $(DYN_LOADER)
18Z_LIBS = -lz
19
20if WITH_CPPUNIT_TESTS
21TEST_SUITE = ccxx_tests
22else
23TEST_SUITE =
24endif
25
26noinst_PROGRAMS = $(TEST_SUITE) \
27 bug1 bug2 thread1 thread2 thread3 digest tcpstr1 url1 forever
28
29noinst_HEADERS = SampleObject.h SampleSubObject.h Test_Date.h Test_Digest.h \
30 Test_Engine.h Test_SHATumbler.h Test_TCPStream.h Test_URLString.h
31
32if WITH_CPPUNIT_TESTS
33ccxx_tests_SOURCES = ccxx_tests.cpp SampleObject.cpp SampleSubObject.cpp \
34 Test_Date.cpp Test_Engine.cpp Test_TCPStream.cpp Test_URLString.cpp
35# Test_Digest.cpp
36ccxx_tests_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(LDADD) \
37 $(SSL_LIBS) $(CPPUNIT_LIBS)
38endif
39
40bug1_SOURCES = bug1.cpp
41
42bug2_SOURCES = bug2.cpp
43
44forever_SOURCES = forever.cpp
45
46digest_SOURCES = digest.cpp
47digest_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(SSL_LIBS) $(LDADD)
48
49thread1_SOURCES = thread1.cpp
50
51thread2_SOURCES = thread2.cpp
52
53thread3_SOURCES = thread3.cpp
54
55tcpstr1_SOURCES = tcpstr1.cpp
56
57url1_SOURCES = url1.cpp
58url1_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(SSL_LIBS) $(LDADD)