blob: 18ec2f775c6419975e90e508365331955f1caebd [file] [log] [blame]
dburgess82c46ff2011-10-07 02:40:51 +00001#
2# Copyright 2008, 2009 Free Software Foundation, Inc.
kurtis.heimerldb70eb42012-12-16 06:06:32 +00003# Copyright 2011, 2012 Range Networks, Inc.
dburgess82c46ff2011-10-07 02:40:51 +00004#
5# This software is distributed under the terms of the GNU Public License.
6# See the COPYING file in the main directory for details.
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21
22include $(top_srcdir)/Makefile.common
23
24AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
kurtis.heimerl5a872472013-05-31 21:47:25 +000025AM_CXXFLAGS = -Wall -O3 -g -ldl -lpthread
26
27EXTRA_DIST = \
28 example.config \
29 README.common
dburgess82c46ff2011-10-07 02:40:51 +000030
31noinst_LTLIBRARIES = libcommon.la
32
33libcommon_la_SOURCES = \
34 BitVector.cpp \
35 LinkedLists.cpp \
36 Sockets.cpp \
37 Threads.cpp \
38 Timeval.cpp \
kurtis.heimerl5a872472013-05-31 21:47:25 +000039 Logger.cpp \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000040 Configuration.cpp \
Alexander Chemeris4793f462017-03-17 18:35:48 -070041 sqlite3util.cpp
dburgess82c46ff2011-10-07 02:40:51 +000042
43noinst_PROGRAMS = \
44 BitVectorTest \
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020045 PRBSTest \
dburgess82c46ff2011-10-07 02:40:51 +000046 InterthreadTest \
47 SocketsTest \
48 TimevalTest \
dburgess82c46ff2011-10-07 02:40:51 +000049 VectorTest \
50 ConfigurationTest \
Alexander Chemeris4793f462017-03-17 18:35:48 -070051 LogTest
dburgess82c46ff2011-10-07 02:40:51 +000052
kurtis.heimerl5a872472013-05-31 21:47:25 +000053# ReportingTest
kurtis.heimerldb70eb42012-12-16 06:06:32 +000054
dburgess82c46ff2011-10-07 02:40:51 +000055noinst_HEADERS = \
56 BitVector.h \
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020057 PRBS.h \
dburgess82c46ff2011-10-07 02:40:51 +000058 Interthread.h \
59 LinkedLists.h \
60 Sockets.h \
61 Threads.h \
62 Timeval.h \
dburgess82c46ff2011-10-07 02:40:51 +000063 Vector.h \
dburgess82c46ff2011-10-07 02:40:51 +000064 Configuration.h \
kurtis.heimerle766abb2012-11-14 03:51:51 +000065 Logger.h \
66 sqlite3util.h
dburgess82c46ff2011-10-07 02:40:51 +000067
68BitVectorTest_SOURCES = BitVectorTest.cpp
Max2dee3e92017-01-26 14:57:44 +010069BitVectorTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000070
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020071PRBSTest_SOURCES = PRBSTest.cpp
72
dburgess82c46ff2011-10-07 02:40:51 +000073InterthreadTest_SOURCES = InterthreadTest.cpp
74InterthreadTest_LDADD = libcommon.la
75InterthreadTest_LDFLAGS = -lpthread
76
77SocketsTest_SOURCES = SocketsTest.cpp
78SocketsTest_LDADD = libcommon.la
79SocketsTest_LDFLAGS = -lpthread
80
81TimevalTest_SOURCES = TimevalTest.cpp
82TimevalTest_LDADD = libcommon.la
83
84VectorTest_SOURCES = VectorTest.cpp
Max2dee3e92017-01-26 14:57:44 +010085VectorTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000086
dburgess82c46ff2011-10-07 02:40:51 +000087ConfigurationTest_SOURCES = ConfigurationTest.cpp
Max2dee3e92017-01-26 14:57:44 +010088ConfigurationTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000089
kurtis.heimerl5a872472013-05-31 21:47:25 +000090# ReportingTest_SOURCES = ReportingTest.cpp
91# ReportingTest_LDADD = libcommon.la $(SQLITE_LA)
kurtis.heimerldb70eb42012-12-16 06:06:32 +000092
dburgess82c46ff2011-10-07 02:40:51 +000093LogTest_SOURCES = LogTest.cpp
Max2dee3e92017-01-26 14:57:44 +010094LogTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000095
dburgess82c46ff2011-10-07 02:40:51 +000096MOSTLYCLEANFILES += testSource testDestination
97
98