blob: 9667941820683facd6b886f769791d98c71ed13a [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001# Copyright (C) 2006-2010 David Sugar, Tycho Softworks.
2#
3# This file is free software; as a special exception the author gives
4# unlimited permission to copy and/or distribute it, with or without
5# modifications, as long as this notice is preserved.
6#
7# This program is distributed in the hope that it will be useful, but
8# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
11MAINTAINERCLEANFILES = Makefile.in Makefile
12AM_CXXFLAGS = -I$(top_srcdir)/inc $(UCOMMON_FLAGS) $(CHECKFLAGS)
13LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@
14EXTRA_DIST = *.cpp keydata.conf CMakeLists.txt
15
16TESTS = ucommonLinked ucommonSocket ucommonStrings ucommonThreads \
17 ucommonMemory ucommonKeydata ucommonStream ucommonUnicode \
18 ucommonQueue ucommonDatetime ucommonShell ucommonDigest ucommonCipher
19
20noinst_PROGRAMS = demoSSL
21demoSSL_SOURCES = ssl.cpp
22demoSSL_LDFLAGS = @SECURE_LOCAL@
23
24check_PROGRAMS = $(TESTS)
25
26testing: $(TESTS)
27
28ucommonThreads_SOURCES = thread.cpp
29ucommonStrings_SOURCES = string.cpp
30ucommonLinked_SOURCES = linked.cpp
31ucommonSocket_SOURCES = socket.cpp
32ucommonMemory_SOURCES = memory.cpp
33ucommonStream_SOURCES = stream.cpp
34ucommonKeydata_SOURCES = keydata.cpp
35ucommonUnicode_SOURCES = unicode.cpp
36ucommonDatetime_SOURCES = datetime.cpp
37ucommonQueue_SOURCES = queue.cpp
38ucommonShell_SOURCES = shell.cpp
39ucommonDigest_SOURCES = digest.cpp
40ucommonDigest_LDFLAGS = @SECURE_LOCAL@
41ucommonCipher_SOURCES = cipher.cpp
42ucommonCipher_LDFLAGS = @SECURE_LOCAL@
43
44# test using full stdc++ linkage...
45stdcpp: stdcpp.cpp
46 $(CXX) @UCOMMON_FLAGS@ -o stdcpp -I../inc -L../src/.libs -lucommon stdcpp.cpp @UCOMMON_LIBS@