2011-10-07 12:20:49 -07:00
|
|
|
#
|
|
|
|
# Copyright 2008, 2009 Free Software Foundation, Inc.
|
2013-05-31 14:47:42 -07:00
|
|
|
# Copyright 2011, 2012 Range Networks, Inc.
|
2011-10-07 12:20:49 -07:00
|
|
|
#
|
|
|
|
# This software is distributed under the terms of the GNU Public License.
|
|
|
|
# See the COPYING file in the main directory for details.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.common
|
|
|
|
|
|
|
|
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
|
2013-05-31 14:47:42 -07:00
|
|
|
AM_CXXFLAGS = -Wall -O3 -g -ldl -lpthread
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
example.config \
|
|
|
|
README.common
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libcommon.la
|
|
|
|
|
|
|
|
libcommon_la_SOURCES = \
|
2014-03-31 01:59:57 -07:00
|
|
|
Variables.cpp \
|
2011-10-07 12:20:49 -07:00
|
|
|
BitVector.cpp \
|
|
|
|
LinkedLists.cpp \
|
2014-03-31 01:59:57 -07:00
|
|
|
SelfDetect.cpp \
|
|
|
|
UnixSignal.cpp \
|
2011-10-07 12:20:49 -07:00
|
|
|
Sockets.cpp \
|
|
|
|
Threads.cpp \
|
|
|
|
Timeval.cpp \
|
2013-05-31 14:47:42 -07:00
|
|
|
Reporting.cpp \
|
2011-10-07 12:20:49 -07:00
|
|
|
Logger.cpp \
|
2013-05-31 14:47:42 -07:00
|
|
|
Configuration.cpp \
|
|
|
|
sqlite3util.cpp \
|
|
|
|
URLEncode.cpp \
|
2014-03-24 14:57:31 -07:00
|
|
|
Utils.cpp
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
noinst_PROGRAMS = \
|
|
|
|
BitVectorTest \
|
|
|
|
InterthreadTest \
|
2014-03-31 01:59:57 -07:00
|
|
|
SelfDetectTest \
|
|
|
|
UnixSignalTest \
|
2011-10-07 12:20:49 -07:00
|
|
|
SocketsTest \
|
|
|
|
TimevalTest \
|
|
|
|
RegexpTest \
|
|
|
|
VectorTest \
|
|
|
|
ConfigurationTest \
|
|
|
|
LogTest \
|
2013-05-31 14:47:42 -07:00
|
|
|
URLEncodeTest \
|
2014-03-24 14:57:31 -07:00
|
|
|
F16Test
|
2011-10-07 12:20:49 -07:00
|
|
|
|
2013-05-31 14:47:42 -07:00
|
|
|
# ReportingTest
|
|
|
|
|
2011-10-07 12:20:49 -07:00
|
|
|
noinst_HEADERS = \
|
2014-03-24 14:57:31 -07:00
|
|
|
Defines.h \
|
2011-10-07 12:20:49 -07:00
|
|
|
BitVector.h \
|
|
|
|
Interthread.h \
|
|
|
|
LinkedLists.h \
|
2014-03-31 01:59:57 -07:00
|
|
|
SelfDetect.h \
|
|
|
|
UnixSignal.h \
|
|
|
|
Exit.h \
|
2011-10-07 12:20:49 -07:00
|
|
|
Sockets.h \
|
|
|
|
Threads.h \
|
|
|
|
Timeval.h \
|
|
|
|
Regexp.h \
|
|
|
|
Vector.h \
|
|
|
|
Configuration.h \
|
2013-05-31 14:47:42 -07:00
|
|
|
Reporting.h \
|
2011-10-07 12:20:49 -07:00
|
|
|
F16.h \
|
2013-05-31 14:47:42 -07:00
|
|
|
URLEncode.h \
|
|
|
|
Utils.h \
|
|
|
|
Logger.h \
|
2014-03-24 14:57:31 -07:00
|
|
|
sqlite3util.h
|
2013-05-31 14:47:42 -07:00
|
|
|
|
|
|
|
URLEncodeTest_SOURCES = URLEncodeTest.cpp
|
|
|
|
URLEncodeTest_LDADD = libcommon.la
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
BitVectorTest_SOURCES = BitVectorTest.cpp
|
2013-05-31 14:47:42 -07:00
|
|
|
BitVectorTest_LDADD = libcommon.la $(SQLITE_LA)
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
InterthreadTest_SOURCES = InterthreadTest.cpp
|
2014-03-24 14:57:31 -07:00
|
|
|
InterthreadTest_LDADD = libcommon.la $(SQLITE_LA)
|
2014-03-31 02:15:28 -07:00
|
|
|
InterthreadTest_LDFLAGS = -lpthread -lcoredumper
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
SocketsTest_SOURCES = SocketsTest.cpp
|
2014-03-24 14:57:31 -07:00
|
|
|
SocketsTest_LDADD = libcommon.la $(SQLITE_LA)
|
2014-03-31 02:15:28 -07:00
|
|
|
SocketsTest_LDFLAGS = -lpthread -lcoredumper
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
TimevalTest_SOURCES = TimevalTest.cpp
|
|
|
|
TimevalTest_LDADD = libcommon.la
|
|
|
|
|
|
|
|
VectorTest_SOURCES = VectorTest.cpp
|
2013-05-31 14:47:42 -07:00
|
|
|
VectorTest_LDADD = libcommon.la $(SQLITE_LA)
|
2011-10-07 12:20:49 -07:00
|
|
|
|
|
|
|
RegexpTest_SOURCES = RegexpTest.cpp
|
|
|
|
RegexpTest_LDADD = libcommon.la
|
|
|
|
|
|
|
|
ConfigurationTest_SOURCES = ConfigurationTest.cpp
|
|
|
|
ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA)
|
|
|
|
|
2014-03-31 01:59:57 -07:00
|
|
|
SelfDetectTest_SOURCES = SelfDetectTest.cpp
|
2014-03-31 02:15:28 -07:00
|
|
|
SelfDetectTest_LDADD = libcommon.la $(SQLITE_LA) -lcoredumper
|
2014-03-31 01:59:57 -07:00
|
|
|
|
|
|
|
UnixSignalTest_SOURCES = UnixSignalTest.cpp
|
2014-03-31 02:15:28 -07:00
|
|
|
UnixSignalTest_LDADD = libcommon.la $(SQLITE_LA) -lcoredumper
|
2014-03-31 01:59:57 -07:00
|
|
|
|
2013-05-31 14:47:42 -07:00
|
|
|
# ReportingTest_SOURCES = ReportingTest.cpp
|
|
|
|
# ReportingTest_LDADD = libcommon.la $(SQLITE_LA)
|
|
|
|
|
2011-10-07 12:20:49 -07:00
|
|
|
LogTest_SOURCES = LogTest.cpp
|
|
|
|
LogTest_LDADD = libcommon.la $(SQLITE_LA)
|
|
|
|
|
|
|
|
F16Test_SOURCES = F16Test.cpp
|
|
|
|
|
|
|
|
MOSTLYCLEANFILES += testSource testDestination
|
|
|
|
|
|
|
|
|