| 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| 4 | INCLUDES = -I$(top_srcdir)/src/Patterns -I$(top_srcdir)/src/Helpers
|
|---|
| 5 |
|
|---|
| 6 | AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl
|
|---|
| 7 | AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|---|
| 8 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
|---|
| 9 |
|
|---|
| 10 | TESTS = \
|
|---|
| 11 | CacheableUnitTest \
|
|---|
| 12 | CloneUnitTest \
|
|---|
| 13 | CreatorUnitTest \
|
|---|
| 14 | FactoryUnitTest \
|
|---|
| 15 | ObserverUnitTest \
|
|---|
| 16 | PrototypeFactoryUnitTest \
|
|---|
| 17 | RegistryUnitTest \
|
|---|
| 18 | SingletonUnitTest
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | check_PROGRAMS = $(TESTS)
|
|---|
| 22 | noinst_PROGRAMS = $(TESTS)
|
|---|
| 23 |
|
|---|
| 24 | BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
|
|---|
| 25 | TESTLIBS = \
|
|---|
| 26 | ../../libCodePatterns-debug.la \
|
|---|
| 27 | $(BOOST_LIB)
|
|---|
| 28 |
|
|---|
| 29 | CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 30 | CacheableUnitTest.cpp \
|
|---|
| 31 | CacheableUnitTest.hpp \
|
|---|
| 32 | ../Cachable.hpp \
|
|---|
| 33 | ../Observer.hpp \
|
|---|
| 34 | ../ObserverIterator.hpp
|
|---|
| 35 | CacheableUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 36 |
|
|---|
| 37 | CloneUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 38 | CloneUnitTest.cpp \
|
|---|
| 39 | CloneUnitTest.hpp \
|
|---|
| 40 | ../Clone.hpp \
|
|---|
| 41 | stubs/CommonStub.cpp \
|
|---|
| 42 | stubs/CommonStub.hpp \
|
|---|
| 43 | stubs/CloneStub.cpp \
|
|---|
| 44 | stubs/CloneStub.hpp
|
|---|
| 45 | CloneUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 46 |
|
|---|
| 47 | CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 48 | CreatorUnitTest.cpp \
|
|---|
| 49 | CreatorUnitTest.hpp \
|
|---|
| 50 | ../Creator.hpp \
|
|---|
| 51 | stubs/CommonStub.cpp \
|
|---|
| 52 | stubs/CommonStub.hpp \
|
|---|
| 53 | stubs/CreatorStub.hpp
|
|---|
| 54 | CreatorUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 55 |
|
|---|
| 56 | FactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 57 | FactoryUnitTest.cpp \
|
|---|
| 58 | FactoryUnitTest.hpp \
|
|---|
| 59 | stubs/CommonStub.cpp \
|
|---|
| 60 | stubs/CommonStub.hpp \
|
|---|
| 61 | stubs/CreatorStub.hpp \
|
|---|
| 62 | stubs/FactoryStub.hpp \
|
|---|
| 63 | stubs/FactoryStub.cpp \
|
|---|
| 64 | ../Factory.hpp \
|
|---|
| 65 | ../FactoryTypeList.hpp \
|
|---|
| 66 | ../Factory_impl.hpp
|
|---|
| 67 | FactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 68 |
|
|---|
| 69 | ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 70 | ObserverUnitTest.cpp \
|
|---|
| 71 | ObserverUnitTest.hpp \
|
|---|
| 72 | ../Observer.hpp \
|
|---|
| 73 | ../ObserverIterator.hpp
|
|---|
| 74 | ObserverUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 75 |
|
|---|
| 76 | PrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 77 | PrototypeFactoryUnitTest.cpp \
|
|---|
| 78 | PrototypeFactoryUnitTest.hpp \
|
|---|
| 79 | stubs/CloneStub.cpp \
|
|---|
| 80 | stubs/CloneStub.hpp \
|
|---|
| 81 | stubs/CommonStub.cpp \
|
|---|
| 82 | stubs/CommonStub.hpp \
|
|---|
| 83 | stubs/PrototypeFactoryStub.hpp \
|
|---|
| 84 | stubs/PrototypeFactoryStub.cpp \
|
|---|
| 85 | ../PrototypeFactory.hpp \
|
|---|
| 86 | ../FactoryTypeList.hpp \
|
|---|
| 87 | ../PrototypeFactory_impl.hpp
|
|---|
| 88 | PrototypeFactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 89 |
|
|---|
| 90 | RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 91 | RegistryUnitTest.cpp \
|
|---|
| 92 | RegistryUnitTest.hpp
|
|---|
| 93 | #RegistryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 94 |
|
|---|
| 95 | SingletonUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 96 | SingletonUnitTest.cpp \
|
|---|
| 97 | SingletonUnitTest.hpp
|
|---|
| 98 | SingletonUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 99 |
|
|---|
| 100 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|