blob: 52c965cb88f2e226a1a66ab048c881778eec17b0 [file] [log] [blame]
dburgess82c46ff2011-10-07 02:40:51 +00001#
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
21include $(top_srcdir)/Makefile.common
22
23AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
24AM_CXXFLAGS = -Wall -ldl -O3 -g -lpthread
25
26noinst_LTLIBRARIES = libcommon.la
27
28libcommon_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
38noinst_PROGRAMS = \
39 BitVectorTest \
40 InterthreadTest \
41 SocketsTest \
42 TimevalTest \
43 RegexpTest \
44 VectorTest \
45 ConfigurationTest \
46 LogTest \
47 F16Test
48
49noinst_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
63BitVectorTest_SOURCES = BitVectorTest.cpp
64BitVectorTest_LDADD = libcommon.la
65
66InterthreadTest_SOURCES = InterthreadTest.cpp
67InterthreadTest_LDADD = libcommon.la
68InterthreadTest_LDFLAGS = -lpthread
69
70SocketsTest_SOURCES = SocketsTest.cpp
71SocketsTest_LDADD = libcommon.la
72SocketsTest_LDFLAGS = -lpthread
73
74TimevalTest_SOURCES = TimevalTest.cpp
75TimevalTest_LDADD = libcommon.la
76
77VectorTest_SOURCES = VectorTest.cpp
78VectorTest_LDADD = libcommon.la
79
80RegexpTest_SOURCES = RegexpTest.cpp
81RegexpTest_LDADD = libcommon.la
82
83ConfigurationTest_SOURCES = ConfigurationTest.cpp
84ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA)
85
86LogTest_SOURCES = LogTest.cpp
87LogTest_LDADD = libcommon.la $(SQLITE_LA)
88
89F16Test_SOURCES = F16Test.cpp
90
91MOSTLYCLEANFILES += testSource testDestination
92
93