dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2008, 2009 Free Software Foundation, Inc. |
kurtis.heimerl | db70eb4 | 2012-12-16 06:06:32 +0000 | [diff] [blame] | 3 | # Copyright 2011, 2012 Range Networks, Inc. |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 4 | # |
| 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 | |
| 22 | include $(top_srcdir)/Makefile.common |
| 23 | |
| 24 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) |
kurtis.heimerl | 5a87247 | 2013-05-31 21:47:25 +0000 | [diff] [blame] | 25 | AM_CXXFLAGS = -Wall -O3 -g -ldl -lpthread |
| 26 | |
| 27 | EXTRA_DIST = \ |
| 28 | example.config \ |
| 29 | README.common |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 30 | |
| 31 | noinst_LTLIBRARIES = libcommon.la |
| 32 | |
| 33 | libcommon_la_SOURCES = \ |
| 34 | BitVector.cpp \ |
| 35 | LinkedLists.cpp \ |
| 36 | Sockets.cpp \ |
| 37 | Threads.cpp \ |
| 38 | Timeval.cpp \ |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 39 | Logger.cpp |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 40 | |
| 41 | noinst_PROGRAMS = \ |
| 42 | BitVectorTest \ |
Alexander Chemeris | 082bbbf | 2017-04-02 12:45:36 +0200 | [diff] [blame] | 43 | PRBSTest \ |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 44 | InterthreadTest \ |
| 45 | SocketsTest \ |
| 46 | TimevalTest \ |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 47 | VectorTest \ |
Alexander Chemeris | 4793f46 | 2017-03-17 18:35:48 -0700 | [diff] [blame] | 48 | LogTest |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 49 | |
Pau Espin Pedrol | 82f83ce | 2018-01-09 15:09:31 +0100 | [diff] [blame] | 50 | # ReportingTest |
kurtis.heimerl | db70eb4 | 2012-12-16 06:06:32 +0000 | [diff] [blame] | 51 | |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 52 | noinst_HEADERS = \ |
| 53 | BitVector.h \ |
Alexander Chemeris | 082bbbf | 2017-04-02 12:45:36 +0200 | [diff] [blame] | 54 | PRBS.h \ |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 55 | Interthread.h \ |
| 56 | LinkedLists.h \ |
| 57 | Sockets.h \ |
| 58 | Threads.h \ |
| 59 | Timeval.h \ |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 60 | Vector.h \ |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 61 | Logger.h |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 62 | |
| 63 | BitVectorTest_SOURCES = BitVectorTest.cpp |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 64 | BitVectorTest_LDADD = libcommon.la |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 65 | |
Alexander Chemeris | 082bbbf | 2017-04-02 12:45:36 +0200 | [diff] [blame] | 66 | PRBSTest_SOURCES = PRBSTest.cpp |
| 67 | |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 68 | InterthreadTest_SOURCES = InterthreadTest.cpp |
| 69 | InterthreadTest_LDADD = libcommon.la |
| 70 | InterthreadTest_LDFLAGS = -lpthread |
| 71 | |
| 72 | SocketsTest_SOURCES = SocketsTest.cpp |
| 73 | SocketsTest_LDADD = libcommon.la |
| 74 | SocketsTest_LDFLAGS = -lpthread |
| 75 | |
| 76 | TimevalTest_SOURCES = TimevalTest.cpp |
| 77 | TimevalTest_LDADD = libcommon.la |
| 78 | |
| 79 | VectorTest_SOURCES = VectorTest.cpp |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 80 | VectorTest_LDADD = libcommon.la |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 81 | |
kurtis.heimerl | 5a87247 | 2013-05-31 21:47:25 +0000 | [diff] [blame] | 82 | # ReportingTest_SOURCES = ReportingTest.cpp |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 83 | # ReportingTest_LDADD = libcommon.la |
kurtis.heimerl | db70eb4 | 2012-12-16 06:06:32 +0000 | [diff] [blame] | 84 | |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 85 | LogTest_SOURCES = LogTest.cpp |
Pau Espin Pedrol | caf2abc | 2018-01-09 15:09:08 +0100 | [diff] [blame] | 86 | LogTest_LDADD = libcommon.la |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 87 | |
dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 88 | MOSTLYCLEANFILES += testSource testDestination |