Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 1 | # 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 | |
| 11 | MAINTAINERCLEANFILES = Makefile.in Makefile |
| 12 | AM_CXXFLAGS = -I$(top_srcdir)/inc $(UCOMMON_FLAGS) $(CHECKFLAGS) |
| 13 | LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@ |
| 14 | EXTRA_DIST = *.cpp keydata.conf CMakeLists.txt |
| 15 | |
| 16 | TESTS = ucommonLinked ucommonSocket ucommonStrings ucommonThreads \ |
| 17 | ucommonMemory ucommonKeydata ucommonStream ucommonUnicode \ |
| 18 | ucommonQueue ucommonDatetime ucommonShell ucommonDigest ucommonCipher |
| 19 | |
| 20 | noinst_PROGRAMS = demoSSL |
| 21 | demoSSL_SOURCES = ssl.cpp |
| 22 | demoSSL_LDFLAGS = @SECURE_LOCAL@ |
| 23 | |
| 24 | check_PROGRAMS = $(TESTS) |
| 25 | |
| 26 | testing: $(TESTS) |
| 27 | |
| 28 | ucommonThreads_SOURCES = thread.cpp |
| 29 | ucommonStrings_SOURCES = string.cpp |
| 30 | ucommonLinked_SOURCES = linked.cpp |
| 31 | ucommonSocket_SOURCES = socket.cpp |
| 32 | ucommonMemory_SOURCES = memory.cpp |
| 33 | ucommonStream_SOURCES = stream.cpp |
| 34 | ucommonKeydata_SOURCES = keydata.cpp |
| 35 | ucommonUnicode_SOURCES = unicode.cpp |
| 36 | ucommonDatetime_SOURCES = datetime.cpp |
| 37 | ucommonQueue_SOURCES = queue.cpp |
| 38 | ucommonShell_SOURCES = shell.cpp |
| 39 | ucommonDigest_SOURCES = digest.cpp |
| 40 | ucommonDigest_LDFLAGS = @SECURE_LOCAL@ |
| 41 | ucommonCipher_SOURCES = cipher.cpp |
| 42 | ucommonCipher_LDFLAGS = @SECURE_LOCAL@ |
| 43 | |
| 44 | # test using full stdc++ linkage... |
| 45 | stdcpp: stdcpp.cpp |
| 46 | $(CXX) @UCOMMON_FLAGS@ -o stdcpp -I../inc -L../src/.libs -lucommon stdcpp.cpp @UCOMMON_LIBS@ |