blob: f0f106198ce864f2c28b75247e3076b8ee0d755b [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 \
45 InterthreadTest \
46 SocketsTest \
47 TimevalTest \
dburgess82c46ff2011-10-07 02:40:51 +000048 VectorTest \
49 ConfigurationTest \
Alexander Chemeris4793f462017-03-17 18:35:48 -070050 LogTest
dburgess82c46ff2011-10-07 02:40:51 +000051
kurtis.heimerl5a872472013-05-31 21:47:25 +000052# ReportingTest
kurtis.heimerldb70eb42012-12-16 06:06:32 +000053
dburgess82c46ff2011-10-07 02:40:51 +000054noinst_HEADERS = \
55 BitVector.h \
56 Interthread.h \
57 LinkedLists.h \
58 Sockets.h \
59 Threads.h \
60 Timeval.h \
dburgess82c46ff2011-10-07 02:40:51 +000061 Vector.h \
dburgess82c46ff2011-10-07 02:40:51 +000062 Configuration.h \
kurtis.heimerle766abb2012-11-14 03:51:51 +000063 Logger.h \
64 sqlite3util.h
dburgess82c46ff2011-10-07 02:40:51 +000065
66BitVectorTest_SOURCES = BitVectorTest.cpp
Max2dee3e92017-01-26 14:57:44 +010067BitVectorTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000068
69InterthreadTest_SOURCES = InterthreadTest.cpp
70InterthreadTest_LDADD = libcommon.la
71InterthreadTest_LDFLAGS = -lpthread
72
73SocketsTest_SOURCES = SocketsTest.cpp
74SocketsTest_LDADD = libcommon.la
75SocketsTest_LDFLAGS = -lpthread
76
77TimevalTest_SOURCES = TimevalTest.cpp
78TimevalTest_LDADD = libcommon.la
79
80VectorTest_SOURCES = VectorTest.cpp
Max2dee3e92017-01-26 14:57:44 +010081VectorTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000082
dburgess82c46ff2011-10-07 02:40:51 +000083ConfigurationTest_SOURCES = ConfigurationTest.cpp
Max2dee3e92017-01-26 14:57:44 +010084ConfigurationTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000085
kurtis.heimerl5a872472013-05-31 21:47:25 +000086# ReportingTest_SOURCES = ReportingTest.cpp
87# ReportingTest_LDADD = libcommon.la $(SQLITE_LA)
kurtis.heimerldb70eb42012-12-16 06:06:32 +000088
dburgess82c46ff2011-10-07 02:40:51 +000089LogTest_SOURCES = LogTest.cpp
Max2dee3e92017-01-26 14:57:44 +010090LogTest_LDADD = libcommon.la $(SQLITE3_LIBS)
dburgess82c46ff2011-10-07 02:40:51 +000091
dburgess82c46ff2011-10-07 02:40:51 +000092MOSTLYCLEANFILES += testSource testDestination
93
94