blob: 26a55ed860cb234b5ef0d405293b8ff781e1b501 [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 Reporting.cpp \
40 Logger.cpp \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000041 Configuration.cpp \
42 sqlite3util.cpp \
dburgess82c46ff2011-10-07 02:40:51 +000043 URLEncode.cpp \
kurtis.heimerl5a872472013-05-31 21:47:25 +000044 Utils.cpp
dburgess82c46ff2011-10-07 02:40:51 +000045
46noinst_PROGRAMS = \
47 BitVectorTest \
48 InterthreadTest \
49 SocketsTest \
50 TimevalTest \
51 RegexpTest \
52 VectorTest \
53 ConfigurationTest \
54 LogTest \
kurtis.heimerl5a872472013-05-31 21:47:25 +000055 URLEncodeTest \
dburgess82c46ff2011-10-07 02:40:51 +000056 F16Test
57
kurtis.heimerl5a872472013-05-31 21:47:25 +000058# ReportingTest
kurtis.heimerldb70eb42012-12-16 06:06:32 +000059
dburgess82c46ff2011-10-07 02:40:51 +000060noinst_HEADERS = \
61 BitVector.h \
62 Interthread.h \
63 LinkedLists.h \
64 Sockets.h \
65 Threads.h \
66 Timeval.h \
67 Regexp.h \
68 Vector.h \
dburgess82c46ff2011-10-07 02:40:51 +000069 Configuration.h \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000070 Reporting.h \
dburgess82c46ff2011-10-07 02:40:51 +000071 F16.h \
kurtis.heimerl5a872472013-05-31 21:47:25 +000072 URLEncode.h \
73 Utils.h \
kurtis.heimerle766abb2012-11-14 03:51:51 +000074 Logger.h \
75 sqlite3util.h
dburgess82c46ff2011-10-07 02:40:51 +000076
kurtis.heimerl5a872472013-05-31 21:47:25 +000077URLEncodeTest_SOURCES = URLEncodeTest.cpp
78URLEncodeTest_LDADD = libcommon.la
79
dburgess82c46ff2011-10-07 02:40:51 +000080BitVectorTest_SOURCES = BitVectorTest.cpp
kurtis.heimerl5a872472013-05-31 21:47:25 +000081BitVectorTest_LDADD = libcommon.la $(SQLITE_LA)
dburgess82c46ff2011-10-07 02:40:51 +000082
83InterthreadTest_SOURCES = InterthreadTest.cpp
84InterthreadTest_LDADD = libcommon.la
85InterthreadTest_LDFLAGS = -lpthread
86
87SocketsTest_SOURCES = SocketsTest.cpp
88SocketsTest_LDADD = libcommon.la
89SocketsTest_LDFLAGS = -lpthread
90
91TimevalTest_SOURCES = TimevalTest.cpp
92TimevalTest_LDADD = libcommon.la
93
94VectorTest_SOURCES = VectorTest.cpp
kurtis.heimerl5a872472013-05-31 21:47:25 +000095VectorTest_LDADD = libcommon.la $(SQLITE_LA)
dburgess82c46ff2011-10-07 02:40:51 +000096
97RegexpTest_SOURCES = RegexpTest.cpp
98RegexpTest_LDADD = libcommon.la
99
100ConfigurationTest_SOURCES = ConfigurationTest.cpp
101ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA)
102
kurtis.heimerl5a872472013-05-31 21:47:25 +0000103# ReportingTest_SOURCES = ReportingTest.cpp
104# ReportingTest_LDADD = libcommon.la $(SQLITE_LA)
kurtis.heimerldb70eb42012-12-16 06:06:32 +0000105
dburgess82c46ff2011-10-07 02:40:51 +0000106LogTest_SOURCES = LogTest.cpp
107LogTest_LDADD = libcommon.la $(SQLITE_LA)
108
109F16Test_SOURCES = F16Test.cpp
110
111MOSTLYCLEANFILES += testSource testDestination
112
113