dburgess | 82c46ff | 2011-10-07 02:40:51 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2008, 2009 Free Software Foundation, Inc. |
| 3 | # |
| 4 | # This software is distributed under the terms of the GNU Public License. |
| 5 | # See the COPYING file in the main directory for details. |
| 6 | # |
| 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation, either version 3 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # This program is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | # |
| 20 | |
| 21 | include $(top_srcdir)/Makefile.common |
| 22 | |
| 23 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) |
| 24 | AM_CXXFLAGS = -Wall -ldl -O3 -g -lpthread |
| 25 | |
| 26 | noinst_LTLIBRARIES = libcommon.la |
| 27 | |
| 28 | libcommon_la_SOURCES = \ |
| 29 | BitVector.cpp \ |
| 30 | LinkedLists.cpp \ |
| 31 | Sockets.cpp \ |
| 32 | Threads.cpp \ |
| 33 | Timeval.cpp \ |
| 34 | Logger.cpp \ |
| 35 | URLEncode.cpp \ |
| 36 | Configuration.cpp |
| 37 | |
| 38 | noinst_PROGRAMS = \ |
| 39 | BitVectorTest \ |
| 40 | InterthreadTest \ |
| 41 | SocketsTest \ |
| 42 | TimevalTest \ |
| 43 | RegexpTest \ |
| 44 | VectorTest \ |
| 45 | ConfigurationTest \ |
| 46 | LogTest \ |
| 47 | F16Test |
| 48 | |
| 49 | noinst_HEADERS = \ |
| 50 | BitVector.h \ |
| 51 | Interthread.h \ |
| 52 | LinkedLists.h \ |
| 53 | Sockets.h \ |
| 54 | Threads.h \ |
| 55 | Timeval.h \ |
| 56 | Regexp.h \ |
| 57 | Vector.h \ |
| 58 | URLEncode.h \ |
| 59 | Configuration.h \ |
| 60 | F16.h \ |
| 61 | Logger.h |
| 62 | |
| 63 | BitVectorTest_SOURCES = BitVectorTest.cpp |
| 64 | BitVectorTest_LDADD = libcommon.la |
| 65 | |
| 66 | InterthreadTest_SOURCES = InterthreadTest.cpp |
| 67 | InterthreadTest_LDADD = libcommon.la |
| 68 | InterthreadTest_LDFLAGS = -lpthread |
| 69 | |
| 70 | SocketsTest_SOURCES = SocketsTest.cpp |
| 71 | SocketsTest_LDADD = libcommon.la |
| 72 | SocketsTest_LDFLAGS = -lpthread |
| 73 | |
| 74 | TimevalTest_SOURCES = TimevalTest.cpp |
| 75 | TimevalTest_LDADD = libcommon.la |
| 76 | |
| 77 | VectorTest_SOURCES = VectorTest.cpp |
| 78 | VectorTest_LDADD = libcommon.la |
| 79 | |
| 80 | RegexpTest_SOURCES = RegexpTest.cpp |
| 81 | RegexpTest_LDADD = libcommon.la |
| 82 | |
| 83 | ConfigurationTest_SOURCES = ConfigurationTest.cpp |
| 84 | ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA) |
| 85 | |
| 86 | LogTest_SOURCES = LogTest.cpp |
| 87 | LogTest_LDADD = libcommon.la $(SQLITE_LA) |
| 88 | |
| 89 | F16Test_SOURCES = F16Test.cpp |
| 90 | |
| 91 | MOSTLYCLEANFILES += testSource testDestination |
| 92 | |
| 93 | |