blob: 624ba44bc0701198d127581b35adbe02da37f667 [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)
25AM_CXXFLAGS = -Wall -ldl -O3 -g -lpthread
26
27noinst_LTLIBRARIES = libcommon.la
28
29libcommon_la_SOURCES = \
30 BitVector.cpp \
31 LinkedLists.cpp \
32 Sockets.cpp \
33 Threads.cpp \
34 Timeval.cpp \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000035 Configuration.cpp \
36 sqlite3util.cpp \
dburgess82c46ff2011-10-07 02:40:51 +000037 Logger.cpp \
38 URLEncode.cpp \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000039 Reporting.cpp
dburgess82c46ff2011-10-07 02:40:51 +000040
41noinst_PROGRAMS = \
42 BitVectorTest \
43 InterthreadTest \
44 SocketsTest \
45 TimevalTest \
46 RegexpTest \
47 VectorTest \
48 ConfigurationTest \
49 LogTest \
50 F16Test
51
kurtis.heimerldb70eb42012-12-16 06:06:32 +000052# ReportingTest
53
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 \
61 Regexp.h \
62 Vector.h \
63 URLEncode.h \
64 Configuration.h \
kurtis.heimerldb70eb42012-12-16 06:06:32 +000065 Reporting.h \
dburgess82c46ff2011-10-07 02:40:51 +000066 F16.h \
kurtis.heimerle766abb2012-11-14 03:51:51 +000067 Logger.h \
68 sqlite3util.h
dburgess82c46ff2011-10-07 02:40:51 +000069
70BitVectorTest_SOURCES = BitVectorTest.cpp
71BitVectorTest_LDADD = libcommon.la
72
73InterthreadTest_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
85VectorTest_LDADD = libcommon.la
86
87RegexpTest_SOURCES = RegexpTest.cpp
88RegexpTest_LDADD = libcommon.la
89
90ConfigurationTest_SOURCES = ConfigurationTest.cpp
91ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA)
92
kurtis.heimerldb70eb42012-12-16 06:06:32 +000093#ReportingTest_SOURCES = ReportingTest.cpp
94#ReportingTest_LDADD = libcommon.la $(SQLITE_LA)
95
dburgess82c46ff2011-10-07 02:40:51 +000096LogTest_SOURCES = LogTest.cpp
97LogTest_LDADD = libcommon.la $(SQLITE_LA)
98
99F16Test_SOURCES = F16Test.cpp
100
101MOSTLYCLEANFILES += testSource testDestination
102
103