Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | # 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 | |
| 12 | MAINTAINERCLEANFILES = Makefile.in Makefile |
| 13 | |
| 14 | EXTRA_DIST = README dotests.sh test.sh output.txt vc6.mak Makefile.bcc |
| 15 | AM_CXXFLAGS = $(THREAD_FLAGS) @WARN_FLAGS@ |
| 16 | INCLUDES = -I$(top_srcdir)/inc |
| 17 | LDADD = ../src/libccgnu2.la $(THREAD_LIBS) $(DYN_LOADER) |
| 18 | Z_LIBS = -lz |
| 19 | |
| 20 | if WITH_CPPUNIT_TESTS |
| 21 | TEST_SUITE = ccxx_tests |
| 22 | else |
| 23 | TEST_SUITE = |
| 24 | endif |
| 25 | |
| 26 | noinst_PROGRAMS = $(TEST_SUITE) \ |
| 27 | bug1 bug2 thread1 thread2 thread3 digest tcpstr1 url1 forever |
| 28 | |
| 29 | noinst_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 | |
| 32 | if WITH_CPPUNIT_TESTS |
| 33 | ccxx_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 |
| 36 | ccxx_tests_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(LDADD) \ |
| 37 | $(SSL_LIBS) $(CPPUNIT_LIBS) |
| 38 | endif |
| 39 | |
| 40 | bug1_SOURCES = bug1.cpp |
| 41 | |
| 42 | bug2_SOURCES = bug2.cpp |
| 43 | |
| 44 | forever_SOURCES = forever.cpp |
| 45 | |
| 46 | digest_SOURCES = digest.cpp |
| 47 | digest_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(SSL_LIBS) $(LDADD) |
| 48 | |
| 49 | thread1_SOURCES = thread1.cpp |
| 50 | |
| 51 | thread2_SOURCES = thread2.cpp |
| 52 | |
| 53 | thread3_SOURCES = thread3.cpp |
| 54 | |
| 55 | tcpstr1_SOURCES = tcpstr1.cpp |
| 56 | |
| 57 | url1_SOURCES = url1.cpp |
| 58 | url1_LDADD = ../src/libccext2.la $(XML_LIBS) $(Z_LIBS) $(SSL_LIBS) $(LDADD) |