source: trunk/FACT++/Makefile.am @ 10197

Last change on this file since 10197 was 10197, checked in by tbretz, 9 years ago
Added proper pthread support (needed for dim)
File size: 5.2 KB
Line 
1include aminclude.am
2
3#-------------------------------------------------------------------------
4
5ACLOCAL_AMFLAGS = -I .macro_dir
6
7DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux
8
9AM_CPPFLAGS = \
10   -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
11   -Idim_v19r15/dim $(DIM_FLAGS) $(PTHREAD_CFLAGS)
12   
13AM_CXXFLAGS = $(AM_CPPFLAGS) -Woverloaded-virtual -Wshadow -std=c++0x
14
15# -no-undefined
16AM_LDFLAGS = -module -avoid-version \
17        $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
18        -lmysqlpp \
19        -lboost_system \
20        -lboost_thread \
21        -lboost_regex \
22        -lboost_date_time \
23        -lboost_program_options \
24        -lboost_filesystem
25
26#$(man3_MANS): doxygen-doc
27#DX_CLEANFILES = everything to clean.
28# Add to MOSTLYCLEANFILES.
29
30#-------------------------------------------------------------------------
31
32bin_PROGRAMS    = dns did log logtime argv time test3 dclient5 dserver2
33
34lib_LTLIBRARIES = libDim.la libDim++.la libTime.la libTools.la \
35                  libConfiguration.la libStateMachine.la
36
37#-------------------------------------------------------------------------
38
39dist_noinst_SCRIPTS = autogen.sh
40
41EXTRA_DIST = \
42        Doxyfile \
43        dim_v19r15/DIM_Performance.pdf \
44        dim_v19r15/LICENSE.GPL \
45        dim_v19r15/README.txt \
46        dim_v19r15/README_v9.txt \
47        dim_v19r15/README_v10.txt \
48        dim_v19r15/README_v11.txt \
49        dim_v19r15/README_v12.txt \
50        dim_v19r15/README_v13.txt \
51        dim_v19r15/README_v14.txt \
52        dim_v19r15/README_v15.txt \
53        dim_v19r15/README_v16.txt \
54        dim_v19r15/README_v17.txt \
55        dim_v19r15/README_v18.txt \
56        dim_v19r15/README_v19.txt
57
58dns_LDADD    = libDim.la
59dns_SOURCES  = dim_v19r15/src/dns.c
60#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
61
62did_LDADD    = -lXm libDim.la
63did_CPPFLAGS = $(AM_CPPFLAGS) -Idim_v19r15/src/did
64did_SOURCES  = dim_v19r15/src/did/did.c dim_v19r15/src/did/dui_util.c
65
66
67#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
68libDim_ladir =
69libDim_la_HEADERS = \
70        dim_v19r15/dim/dic.h \
71        dim_v19r15/dim/dim_common.h \
72        dim_v19r15/dim/dim.h \
73        dim_v19r15/dim/dim_tcpip.h \
74        dim_v19r15/dim/dis.h
75
76libDim_la_SOURCES = \
77        dim_v19r15/src/dic.c \
78        dim_v19r15/src/dis.c \
79        dim_v19r15/src/dna.c \
80        dim_v19r15/src/sll.c \
81        dim_v19r15/src/dll.c  \
82        dim_v19r15/src/hash.c \
83        dim_v19r15/src/swap.c \
84        dim_v19r15/src/copy_swap.c \
85        dim_v19r15/src/open_dns.c \
86        dim_v19r15/src/conn_handler.c \
87        dim_v19r15/src/tcpip.c \
88        dim_v19r15/src/dtq.c \
89        dim_v19r15/src/dim_thr.c \
90        dim_v19r15/src/utilities.c
91
92#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
93libDim___ladir =
94libDim___la_HEADERS = \
95        dim_v19r15/dim/dic.hxx \
96        dim_v19r15/dim/dim_core.hxx \
97        dim_v19r15/dim/dim.hxx \
98        dim_v19r15/dim/dim_tcpip.h \
99        dim_v19r15/dim/dllist.hxx \
100        dim_v19r15/dim/sllist.hxx \
101        dim_v19r15/dim/tokenstring.hxx
102       
103libDim___la_SOURCES = \
104        dim_v19r15/src/diccpp.cxx \
105        dim_v19r15/src/dimcpp.cxx \
106        dim_v19r15/src/tokenstring.cxx \
107        dim_v19r15/src/discpp.cxx
108
109# Divide into Tools/StateMachine/Shell/TcpIp
110libStateMachine_la_SOURCES = \
111        src/EventImp.h        src/EventImp.cc \
112        src/Event.h           src/Event.cc \
113        src/MessageImp.h      src/MessageImp.cc \
114        src/MessageDim.h      src/MessageDim.cc \
115        src/Converter.h       src/Converter.cc \
116        src/StateMachineImp.h src/StateMachineImp.cc \
117        src/StateMachineDim.h src/StateMachineDim.cc \
118        src/StateMachine.h    src/StateMachine.cc \
119        src/ServiceList.h     src/ServiceList.cc \
120        src/DimErrorRedirecter.cc \
121        src/WindowLog.h       src/WindowLog.cc \
122        src/Readline.h        src/Readline.cc \
123        src/ReadlineWindow.h  src/ReadlineWindow.cc \
124        src/Console.h         src/Console.cc \
125        src/Shell.h           src/Shell.cc \
126        src/Connection.h      src/Connection.cc \
127        src/EventDim.h
128
129
130libConfiguration_la_SOURCES = src/Configuration.h src/Configuration.cc
131
132libTime_la_SOURCES = src/Time.h src/Time.cc
133
134libTools_la_SOURCES = src/tools.h src/tools.cc
135
136
137dserver2_SOURCES = src/dserver2.cc
138dserver2_LDADD   = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la
139
140
141log_SOURCES = src/log.cc
142log_LDADD   = libTime.la libTools.la libDim.la libDim++.la libStateMachine.la
143
144
145logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la
146logtime_SOURCES = src/logtime.cc
147
148
149dclient5_SOURCES = src/dclient5.cc src/LocalControl.cc
150dclient5_LDADD   = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
151    libConfiguration.la
152
153
154argv_SOURCES = src/argv.cc
155argv_LDADD = libConfiguration.la
156
157
158test3_SOURCES = src/test3.cc src/RemoteControl.cc
159test3_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
160
161
162time_SOURCES = src/time.cc
163time_LDADD = libTime.la
164
165
166# Overwrite rules for silent or other verbosity levels
167# pkg_verbose = $(pkg_verbose_$(V))
168#               pkg_verbose_ = $(pkg_verbose_$(AM_DEFAULT_VERBOSITY))
169#               pkg_verbose_0 = @echo GEN $@;
170#               
171#               foo: foo.in
172#                       $(pkg_verbose)cp $(srcdir)/foo.in $@
173
174#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
175#       $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
176#       rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
177#        $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
178#        for i in $$rootcint_files; do \
179#          if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
180#            cp $$i $(srcdir)/; \
181#          fi; \
182#        done
183
Note: See TracBrowser for help on using the repository browser.