blob: d42e82a72393d14991bfed494eca1b8211574004 [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 \
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010039 Logger.cpp
dburgess82c46ff2011-10-07 02:40:51 +000040
41noinst_PROGRAMS = \
42 BitVectorTest \
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020043 PRBSTest \
dburgess82c46ff2011-10-07 02:40:51 +000044 InterthreadTest \
45 SocketsTest \
46 TimevalTest \
dburgess82c46ff2011-10-07 02:40:51 +000047 VectorTest \
Alexander Chemeris4793f462017-03-17 18:35:48 -070048 LogTest
dburgess82c46ff2011-10-07 02:40:51 +000049
Pau Espin Pedrol82f83ce2018-01-09 15:09:31 +010050# ReportingTest
kurtis.heimerldb70eb42012-12-16 06:06:32 +000051
dburgess82c46ff2011-10-07 02:40:51 +000052noinst_HEADERS = \
53 BitVector.h \
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020054 PRBS.h \
dburgess82c46ff2011-10-07 02:40:51 +000055 Interthread.h \
56 LinkedLists.h \
57 Sockets.h \
58 Threads.h \
59 Timeval.h \
dburgess82c46ff2011-10-07 02:40:51 +000060 Vector.h \
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010061 Logger.h
dburgess82c46ff2011-10-07 02:40:51 +000062
63BitVectorTest_SOURCES = BitVectorTest.cpp
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010064BitVectorTest_LDADD = libcommon.la
dburgess82c46ff2011-10-07 02:40:51 +000065
Alexander Chemeris082bbbf2017-04-02 12:45:36 +020066PRBSTest_SOURCES = PRBSTest.cpp
67
dburgess82c46ff2011-10-07 02:40:51 +000068InterthreadTest_SOURCES = InterthreadTest.cpp
69InterthreadTest_LDADD = libcommon.la
70InterthreadTest_LDFLAGS = -lpthread
71
72SocketsTest_SOURCES = SocketsTest.cpp
73SocketsTest_LDADD = libcommon.la
74SocketsTest_LDFLAGS = -lpthread
75
76TimevalTest_SOURCES = TimevalTest.cpp
77TimevalTest_LDADD = libcommon.la
78
79VectorTest_SOURCES = VectorTest.cpp
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010080VectorTest_LDADD = libcommon.la
dburgess82c46ff2011-10-07 02:40:51 +000081
kurtis.heimerl5a872472013-05-31 21:47:25 +000082# ReportingTest_SOURCES = ReportingTest.cpp
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010083# ReportingTest_LDADD = libcommon.la
kurtis.heimerldb70eb42012-12-16 06:06:32 +000084
dburgess82c46ff2011-10-07 02:40:51 +000085LogTest_SOURCES = LogTest.cpp
Pau Espin Pedrolcaf2abc2018-01-09 15:09:08 +010086LogTest_LDADD = libcommon.la
dburgess82c46ff2011-10-07 02:40:51 +000087
dburgess82c46ff2011-10-07 02:40:51 +000088MOSTLYCLEANFILES += testSource testDestination