| 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 $(BOOST_LDFLAGS)
|
|---|
| 7 | AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
|---|
| 8 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
|---|
| 9 |
|
|---|
| 10 | TESTS = \
|
|---|
| 11 | CacheableUnitTest \
|
|---|
| 12 | CloneUnitTest \
|
|---|
| 13 | CreatorUnitTest \
|
|---|
| 14 | FactoryUnitTest \
|
|---|
| 15 | ManipulableCloneUnitTest \
|
|---|
| 16 | ManipulablePrototypeFactoryUnitTest \
|
|---|
| 17 | ObservedContainerUnitTest \
|
|---|
| 18 | ObserverUnitTest \
|
|---|
| 19 | PrototypeFactoryUnitTest \
|
|---|
| 20 | RegistryUnitTest \
|
|---|
| 21 | SingletonUnitTest
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | check_PROGRAMS = $(TESTS)
|
|---|
| 25 | noinst_PROGRAMS = $(TESTS)
|
|---|
| 26 |
|
|---|
| 27 | BOOST_LIB = $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB)
|
|---|
| 28 | TESTLIBS = \
|
|---|
| 29 | ../../libCodePatterns-debug.la \
|
|---|
| 30 | $(BOOST_LIB)
|
|---|
| 31 |
|
|---|
| 32 | CacheableUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 33 | CacheableUnitTest.cpp \
|
|---|
| 34 | CacheableUnitTest.hpp
|
|---|
| 35 | nodist_CacheableUnitTest_SOURCES = \
|
|---|
| 36 | ../Cachable.hpp \
|
|---|
| 37 | ../Observer.hpp \
|
|---|
| 38 | ../ObserverIterator.hpp
|
|---|
| 39 | CacheableUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 40 |
|
|---|
| 41 | CloneUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 42 | CloneUnitTest.cpp \
|
|---|
| 43 | CloneUnitTest.hpp \
|
|---|
| 44 | stubs/CommonStub.cpp \
|
|---|
| 45 | stubs/CommonStub.hpp \
|
|---|
| 46 | stubs/CloneStub.cpp \
|
|---|
| 47 | stubs/CloneStub.hpp
|
|---|
| 48 | nodist_CloneUnitTest_SOURCES = \
|
|---|
| 49 | ../Clone.hpp
|
|---|
| 50 | CloneUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 51 |
|
|---|
| 52 | CreatorUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 53 | CreatorUnitTest.cpp \
|
|---|
| 54 | CreatorUnitTest.hpp \
|
|---|
| 55 | stubs/CommonStub.cpp \
|
|---|
| 56 | stubs/CommonStub.hpp \
|
|---|
| 57 | stubs/CreatorStub.hpp
|
|---|
| 58 | nodist_CreatorUnitTest_SOURCES = \
|
|---|
| 59 | ../Creator.hpp
|
|---|
| 60 | CreatorUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 61 |
|
|---|
| 62 | FactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 63 | FactoryUnitTest.cpp \
|
|---|
| 64 | FactoryUnitTest.hpp \
|
|---|
| 65 | stubs/CommonStub.cpp \
|
|---|
| 66 | stubs/CommonStub.hpp \
|
|---|
| 67 | stubs/CreatorStub.hpp \
|
|---|
| 68 | stubs/FactoryStub.hpp \
|
|---|
| 69 | stubs/FactoryStub.cpp
|
|---|
| 70 | nodist_FactoryUnitTest_SOURCES = \
|
|---|
| 71 | ../Factory.hpp \
|
|---|
| 72 | ../FactoryTypeList.hpp \
|
|---|
| 73 | ../Factory_impl.hpp
|
|---|
| 74 | FactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 75 |
|
|---|
| 76 | ManipulableCloneUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 77 | ManipulableCloneUnitTest.cpp \
|
|---|
| 78 | ManipulableCloneUnitTest.hpp \
|
|---|
| 79 | stubs/CommonStub.cpp \
|
|---|
| 80 | stubs/CommonStub.hpp \
|
|---|
| 81 | stubs/ManipulableCloneStub.cpp \
|
|---|
| 82 | stubs/ManipulableCloneStub.hpp
|
|---|
| 83 | nodist_ManipulableCloneUnitTest_SOURCES = \
|
|---|
| 84 | ../ManipulableClone.hpp
|
|---|
| 85 | ManipulableCloneUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 86 |
|
|---|
| 87 | ManipulablePrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 88 | ManipulablePrototypeFactoryUnitTest.cpp \
|
|---|
| 89 | ManipulablePrototypeFactoryUnitTest.hpp \
|
|---|
| 90 | stubs/ManipulableCloneStub.cpp \
|
|---|
| 91 | stubs/ManipulableCloneStub.hpp \
|
|---|
| 92 | stubs/CommonStub.cpp \
|
|---|
| 93 | stubs/CommonStub.hpp \
|
|---|
| 94 | stubs/ManipulablePrototypeFactoryStub.hpp \
|
|---|
| 95 | stubs/ManipulablePrototypeFactoryStub.cpp
|
|---|
| 96 | nodist_ManipulablePrototypeFactoryUnitTest_SOURCES = \
|
|---|
| 97 | ../ManipulablePrototypeFactory.hpp \
|
|---|
| 98 | ../FactoryTypeList.hpp \
|
|---|
| 99 | ../ManipulablePrototypeFactory_impl.hpp
|
|---|
| 100 | ManipulablePrototypeFactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 101 |
|
|---|
| 102 | ObserverUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 103 | ObserverUnitTest.cpp \
|
|---|
| 104 | ObserverUnitTest.hpp \
|
|---|
| 105 | stubs/ObserverStub.cpp \
|
|---|
| 106 | stubs/ObserverStub.hpp
|
|---|
| 107 | nodist_ObserverUnitTest_SOURCES = \
|
|---|
| 108 | ../Observer.hpp \
|
|---|
| 109 | ../ObserverContainer.hpp \
|
|---|
| 110 | ../ObserverContainer_impl.hpp \
|
|---|
| 111 | ../ObserverIterator.hpp
|
|---|
| 112 | ObserverUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 113 |
|
|---|
| 114 | ObservedContainerUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 115 | ObservedContainerUnitTest.cpp \
|
|---|
| 116 | ObservedContainerUnitTest.hpp \
|
|---|
| 117 | stubs/ObserverStub.cpp \
|
|---|
| 118 | stubs/ObserverStub.hpp
|
|---|
| 119 | nodist_ObservedContainerUnitTest_SOURCES = \
|
|---|
| 120 | ../ObserverContainer.hpp \
|
|---|
| 121 | ../ObserverContainer_impl.hpp
|
|---|
| 122 | ObservedContainerUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 123 |
|
|---|
| 124 | PrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 125 | PrototypeFactoryUnitTest.cpp \
|
|---|
| 126 | PrototypeFactoryUnitTest.hpp \
|
|---|
| 127 | stubs/CloneStub.cpp \
|
|---|
| 128 | stubs/CloneStub.hpp \
|
|---|
| 129 | stubs/CommonStub.cpp \
|
|---|
| 130 | stubs/CommonStub.hpp \
|
|---|
| 131 | stubs/PrototypeFactoryStub.hpp \
|
|---|
| 132 | stubs/PrototypeFactoryStub.cpp
|
|---|
| 133 | nodist_PrototypeFactoryUnitTest_SOURCES = \
|
|---|
| 134 | ../PrototypeFactory.hpp \
|
|---|
| 135 | ../FactoryTypeList.hpp \
|
|---|
| 136 | ../PrototypeFactory_impl.hpp
|
|---|
| 137 | PrototypeFactoryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 138 |
|
|---|
| 139 | RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 140 | RegistryUnitTest.cpp \
|
|---|
| 141 | RegistryUnitTest.hpp \
|
|---|
| 142 | stubs/CommonNamedStub.cpp \
|
|---|
| 143 | stubs/CommonNamedStub.hpp \
|
|---|
| 144 | stubs/RegistryStub.cpp \
|
|---|
| 145 | stubs/RegistryStub.hpp
|
|---|
| 146 | nodist_RegistryUnitTest_SOURCES = \
|
|---|
| 147 | Registry.hpp \
|
|---|
| 148 | Registry_impl.hpp
|
|---|
| 149 | RegistryUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 150 |
|
|---|
| 151 | SingletonUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 152 | SingletonUnitTest.cpp \
|
|---|
| 153 | SingletonUnitTest.hpp
|
|---|
| 154 | #nodist_SingletonUnitTest_SOURCES =
|
|---|
| 155 | SingletonUnitTest_LDADD = $(TESTLIBS)
|
|---|
| 156 |
|
|---|
| 157 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|