source: src/Patterns/Makefile.am@ 9b8fa4

Last change on this file since 9b8fa4 was 9b8fa4, checked in by Frederik Heber <heber@…>, 14 years ago

Huge update of file structure to place installation header files into right folder.

  • The problem ist that we desire use as include "CodePatterns/...". For this to work, especially with the new Observer subfolder structure, it has been necessary to place all header files away from their source files into a distinct folder called CodePatterns. This emulates the later, after make install present structure.
  • essentially all source and header files had to be changed to adapt the include.
  • all Makefile.am's had to be changed.
  • nobase_ ... was removed such that header files are installed flat and not creating their subfolder along the process.
  • We placed Observer into its own convenience library and own folder Observer away from Patterns.

Some other changes:

  • FIX: MemDebug.hpp inclusion has been removed in all stubs.
  • Property mode set to 100755
File size: 2.8 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4
5INCLUDES = -I$(top_srcdir)/src/
6
7AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl $(BOOST_THREAD_LDFLAGS)
8AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS)
9
10PATTERNSOURCE =
11
12PATTERNDEBUGSOURCE =
13
14PATTERNHEADER = \
15 $(top_srcdir)/src/CodePatterns/Cacheable.hpp \
16 $(top_srcdir)/src/CodePatterns/Clone.hpp \
17 $(top_srcdir)/src/CodePatterns/Creator.hpp \
18 $(top_srcdir)/src/CodePatterns/Factory.hpp \
19 $(top_srcdir)/src/CodePatterns/Factory_impl.hpp \
20 $(top_srcdir)/src/CodePatterns/FactoryTypeList.hpp \
21 $(top_srcdir)/src/CodePatterns/ManipulableClone.hpp \
22 $(top_srcdir)/src/CodePatterns/ManipulablePrototypeFactory.hpp \
23 $(top_srcdir)/src/CodePatterns/ManipulablePrototypeFactory_impl.hpp \
24 $(top_srcdir)/src/CodePatterns/Registry_impl.hpp \
25 $(top_srcdir)/src/CodePatterns/Singleton_impl.hpp \
26 $(top_srcdir)/src/CodePatterns/PrototypeFactory.hpp \
27 $(top_srcdir)/src/CodePatterns/PrototypeFactory_impl.hpp \
28 $(top_srcdir)/src/CodePatterns/Registry.hpp \
29 $(top_srcdir)/src/CodePatterns/Singleton.hpp
30
31PATTERNDEBUGHEADER =
32
33noinst_LTLIBRARIES = libCodePatterns-Patterns.la libCodePatterns-Patterns-debug.la
34libCodePatterns_Patterns_la_includedir = $(includedir)/CodePatterns/
35libCodePatterns_Patterns_debug_la_includedir = $(includedir)/CodePatterns/
36libCodePatterns_Patterns_la_LIBADD = \
37 $(BOOST_THREAD_LIBS)
38libCodePatterns_Patterns_debug_la_LIBADD = \
39 $(BOOST_THREAD_LIBS)
40
41libCodePatterns_Patterns_la_CPPFLAGS = -DNDEBUG -DNO_MEMDEBUG $(AM_CPPFLAGS)
42libCodePatterns_Patterns_debug_la_CPPFLAGS = -DMEMDEBUG -DLOG_OBSERVER $(AM_CPPFLAGS)
43
44libCodePatterns_Patterns_la_include_HEADERS = $(PATTERNHEADER)
45libCodePatterns_Patterns_debug_la_include_HEADERS = $(PATTERNDEBUGHEADER)
46
47## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
48## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
49## will therefore be treated as if it were literally part of the target name,
50## and the variable name derived from that.
51## The file extension .cc is recognized by Automake, and makes it produce
52## rules which invoke the C++ compiler to produce a libtool object file (.lo)
53## from each source file. Note that it is not necessary to list header files
54## which are already listed elsewhere in a _HEADERS variable assignment.
55libCodePatterns_Patterns_la_SOURCES = $(PATTERNSOURCE)
56libCodePatterns_Patterns_debug_la_SOURCES = $(PATTERNDEBUGSOURCE)
57
58#Observer/all.hpp: FORCE
59# @if (test -d $(top_srcdir)/Patterns/Observer); then \
60# cd $(top_srcdir)/Patterns; \
61# cat >$@ < $(top_srcdir)/Patterns/Observer/all.hpp; \
62# for includefile in Observer/*.hpp; do \
63# echo "#include \"${includefile}\"" >>$@; \
64# done; \
65# echo "#endif /* OBSERVER_ALL_HPP_ */" >>$@; \
66# fi
67
Note: See TracBrowser for help on using the repository browser.