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

Last change on this file since 18956 was 18951, checked in by tbretz, 7 years ago
On Ubuntu 16.04 rootifysql requires that the libmysqlclient is explicitly linked -- why? I don't know.
File size: 21.1 KB
Line 
1include aminclude.am
2
3#-------------------------------------------------------------------------
4
5ACLOCAL_AMFLAGS = -I .macro_dir
6
7SVN_REVISION = -DREVISION=\"`svnversion -n .`\"
8
9DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux
10BOOST_FLAGS = -DBOOST_DISABLE_ASSERTS
11
12AM_CFLAGS = -pedantic
13AM_CPPFLAGS = -Idim/dim -Ipal -Ierfa/src \
14 $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \
15 $(SVN_REVISION)
16
17AM_CXXFLAGS = $(ROOTCXXFLAGS) \
18 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
19 -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow
20
21# -no-undefined
22AM_LDFLAGS = -module -avoid-version
23
24#$(man3_MANS): doxygen-doc
25#DX_CLEANFILES = everything to clean.
26# Add to MOSTLYCLEANFILES.
27
28#-------------------------------------------------------------------------
29
30# Executables which are build by default ('all')
31bin_PROGRAMS = \
32 dns \
33 log logtime time argv \
34 ftmctrl \
35 fadctrl \
36 fscctrl \
37 gcn \
38 chatclient chatserv \
39 biasctrl drivectrl agilentctrl \
40 mcp feedback ratescan ratecontrol \
41 tngweather lidctrl gpsctrl pfminictrl sqmctrl pwrctrl \
42 magicweather magiclidar \
43 smartfact evtserver getevent \
44 temperature biastemp \
45 timecheck \
46 showlog \
47 fitsdump fitscheck fitsselect \
48 zfits
49
50if HAS_FITS
51bin_PROGRAMS += datalogger
52endif
53
54if HAS_V8
55bin_PROGRAMS += dimctrl dimserver
56endif
57
58if HAS_GUI
59bin_PROGRAMS += fact
60endif
61
62if HAS_DBUS
63bin_PROGRAMS += skypeclient
64endif
65
66if HAS_VIEWER
67bin_PROGRAMS += viewer
68endif
69
70if HAS_NOVA
71bin_PROGRAMS += moon
72endif
73
74if HAS_SQL
75if HAS_NOVA
76bin_PROGRAMS += makedata makeschedule
77if HAS_ROOT
78bin_PROGRAMS += makeplots rootifysql
79endif
80endif
81endif
82
83
84if HAS_LIBXP
85bin_PROGRAMS += did webDid
86endif
87
88# This is a trick to be able to build them but not having them in 'all'
89if IS_FALSE
90bin_PROGRAMS += \
91 ftm fsc fad \
92 test scheduler \
93 triggerschedule \
94 dclient5 dserver2 \
95 fitsloader fitsgrep \
96 sched astro readfits \
97 cosyctrl
98endif
99
100lib_LTLIBRARIES = \
101 libDim++.la libDim.la libDimExtension.la \
102 libConfiguration.la libStateMachine.la libTime.la libTools.la \
103 libPal.la
104
105if HAS_HELP2MAN
106dist_man1_MANS = \
107 biasctrl.man \
108 biastemp.man \
109 datalogger.man \
110 dimctrl.man \
111 dimserver.man \
112 drivectrl.man \
113 evtserver.man \
114 fadctrl.man \
115 feedback.man \
116 fitsdump.man \
117 fitscheck.man \
118 fitsselect.man \
119 fscctrl.man \
120 ftmctrl.man \
121 getevent.man \
122 gpsctrl.man \
123 lidctrl.man \
124 magiclidar.man \
125 magicweather.man \
126 mcp.man \
127 pfminictrl.man \
128 pwrctrl.man \
129 ratecontrol.man \
130 ratescan.man \
131 showlog.man \
132 smartfact.man \
133 sqmctrl.man \
134 temperature.man \
135 timecheck.man \
136 tngweather.man \
137 zfits.man
138endif
139
140#-------------------------------------------------------------------------
141
142CLEANFILES =
143
144dist_noinst_SCRIPTS = autogen.sh
145
146EXTRA_DIST = \
147 Doxyfile \
148 dim/DIM_Performance.pdf \
149 dim/LICENSE.GPL \
150 dim/README.txt \
151 dim/README_v9.txt \
152 dim/README_v10.txt \
153 dim/README_v11.txt \
154 dim/README_v12.txt \
155 dim/README_v13.txt \
156 dim/README_v14.txt \
157 dim/README_v17.txt \
158 dim/README_v16.txt \
159 dim/README_v17.txt \
160 dim/README_v18.txt \
161 dim/README_v19.txt
162
163dns_LDADD = libDim.la libDimExtension.la
164dns_SOURCES = src/dns.c
165#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
166
167did_LDADD = libDim.la
168did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
169did_SOURCES = \
170 dim/src/did/did.c dim/src/did/did.h \
171 dim/src/did/dui_util.c dim/src/did/dui_util.h \
172 dim/src/did/dui_colors.h
173
174webDid_LDADD = libDim.la
175webDid_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
176webDid_SOURCES = \
177 dim/src/webDid/webDid.c \
178 src/webServer.c \
179 dim/src/webDid/webTcpip.c
180
181
182#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
183libDim_ladir =
184libDim_la_HEADERS = \
185 dim/dim/dic.h \
186 dim/dim/dim_common.h \
187 dim/dim/dim.h \
188 dim/dim/dim_tcpip.h \
189 dim/dim/dis.h
190
191libDim_la_SOURCES = \
192 dim/src/dic.c \
193 dim/src/dis.c \
194 dim/src/dna.c \
195 dim/src/sll.c \
196 dim/src/dll.c \
197 dim/src/hash.c \
198 dim/src/swap.c \
199 dim/src/copy_swap.c \
200 dim/src/open_dns.c \
201 dim/src/conn_handler.c \
202 dim/src/tcpip.c \
203 dim/src/dtq.c \
204 dim/src/dim_thr.c \
205 dim/src/utilities.c
206
207libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
208
209#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
210libDim___ladir =
211libDim___la_HEADERS = \
212 dim/dim/dic.hxx \
213 dim/dim/dis.hxx \
214 dim/dim/dim_core.hxx \
215 dim/dim/dim.hxx \
216 dim/dim/dim_tcpip.h \
217 dim/dim/dllist.hxx \
218 dim/dim/sllist.hxx \
219 dim/dim/tokenstring.hxx \
220 src/Dim.h
221libDim___la_SOURCES = \
222 dim/src/diccpp.cxx \
223 dim/src/dimcpp.cxx \
224 dim/src/discpp.cxx \
225 dim/src/tokenstring.cxx
226
227# Divide into Readline / StateMachine / StateMachineDim / Tools?
228libStateMachine_la_SOURCES = \
229 src/WindowLog.h src/WindowLog.cc \
230 src/Readline.h src/Readline.cc \
231 src/ReadlineColor.h src/ReadlineColor.cc \
232 src/ReadlineWindow.h src/ReadlineWindow.cc \
233 src/Console.h src/Console.cc \
234 src/Shell.h src/Shell.cc \
235 \
236 src/EventImp.h src/EventImp.cc \
237 src/Event.h src/Event.cc \
238 src/State.h src/State.cc \
239 src/Description.h src/Description.cc \
240 src/MessageImp.h src/MessageImp.cc \
241 src/Converter.h src/Converter.cc \
242 src/StateMachineImp.h src/StateMachineImp.cc \
243 src/StateMachine.h src/StateMachine.cc \
244 \
245 src/EventDim.h \
246 src/MessageDim.h src/MessageDim.cc \
247 src/StateMachineDim.h src/StateMachineDim.cc \
248 src/DimServerList.h src/DimServerList.cc \
249 src/DimServiceInfoList.h src/DimServiceInfoList.cc \
250 src/DimNetworkList.h src/DimNetwork.cc \
251 src/ServiceList.h src/ServiceList.cc \
252 src/DimErrorRedirecter.h \
253 src/DimErrorRedirecter.cc \
254 src/DimDescriptionService.h \
255 src/DimDescriptionService.cc \
256 \
257 src/Connection.h src/Connection.cc \
258 src/ConnectionUSB.h src/ConnectionUSB.cc \
259 \
260 FACT.h ByteOrder.h \
261 \
262 src/DimWriteStatistics.h src/DimWriteStatistics.cc
263
264libConfiguration_la_SOURCES = \
265 src/Configuration.h src/Configuration.cc \
266 src/FACT.h src/FACT.cc
267
268libTime_la_SOURCES = src/Time.h src/Time.cc
269#libAstro_la_SOURCES = src/Astro.h src/Astro.cc
270libTools_la_SOURCES = src/tools.h src/tools.cc
271
272libPal_la_SOURCES = pal/pal.h \
273 pal/palDtt.c pal/palDat.c pal/palMappa.c \
274 pal/palPrenut.c pal/palEvp.c pal/palAoppa.c \
275 pal/palAoppat.c pal/palRefco.c pal/palRefro.c \
276 pal/pal1Atmt.c pal/palDrange.c pal/palOne2One.c \
277 pal/pal1Atms.c pal/palMapqkz.c pal/palAopqk.c \
278 pal/palRefz.c pal/palAmpqk.c pal/palRdplan.c \
279 pal/palDt.c pal/palPvobs.c pal/palNut.c \
280 pal/palDmoon.c pal/palPlanet.c pal/palNutc.c \
281 pal/palDeuler.c \
282 \
283 erfa/src/gd2gc.c erfa/src/p06e.c erfa/src/c2s.c \
284 erfa/src/eform.c erfa/src/s2c.c erfa/src/pas.c \
285 erfa/src/pmat06.c erfa/src/epv00.c erfa/src/plan94.c \
286 erfa/src/anpm.c erfa/src/obl06.c erfa/src/dat.c \
287 erfa/src/af2a.c erfa/src/rxr.c erfa/src/gmst06.c \
288 erfa/src/sepp.c erfa/src/rz.c erfa/src/zp.c \
289 erfa/src/rxpv.c erfa/src/pn.c erfa/src/cr.c \
290 erfa/src/seps.c erfa/src/ry.c erfa/src/pdp.c \
291 erfa/src/pnm06a.c erfa/src/hfk5z.c erfa/src/epj2jd.c \
292 erfa/src/pv2s.c erfa/src/tf2a.c erfa/src/pm.c \
293 erfa/src/sxp.c erfa/src/a2af.c erfa/src/rxp.c \
294 erfa/src/pxp.c erfa/src/fk5hip.c erfa/src/fw2m.c \
295 erfa/src/rx.c erfa/src/tf2d.c erfa/src/cal2jd.c \
296 erfa/src/cp.c erfa/src/nut06a.c erfa/src/rm2v.c \
297 erfa/src/nut00a.c erfa/src/ee06a.c erfa/src/fk5hz.c \
298 erfa/src/epb2jd.c erfa/src/refco.c erfa/src/a2tf.c \
299 erfa/src/fapa03.c erfa/src/gst06a.c erfa/src/faf03.c \
300 erfa/src/faur03.c erfa/src/faju03.c erfa/src/fal03.c \
301 erfa/src/fasa03.c erfa/src/fame03.c erfa/src/fave03.c \
302 erfa/src/fama03.c erfa/src/faom03.c erfa/src/gst06.c \
303 erfa/src/jd2cal.c erfa/src/gd2gce.c erfa/src/anp.c \
304 erfa/src/fae03.c erfa/src/ir.c erfa/src/pfw06.c \
305 erfa/src/bpn2xy.c erfa/src/eors.c erfa/src/s06.c \
306 erfa/src/trxp.c erfa/src/era00.c erfa/src/epj.c \
307 erfa/src/d2tf.c erfa/src/epb.c erfa/src/rv2m.c \
308 erfa/src/pap.c erfa/src/fad03.c erfa/src/pmp.c \
309 erfa/src/tr.c erfa/src/falp03.c
310
311dserver2_SOURCES = src/dserver2.cc
312dserver2_LDADD = libTime.la libTools.la
313
314ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
315ftm_LDADD = libTime.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
316
317fad_SOURCES = src/fad.cc src/HeadersFAD.cc
318fad_LDADD = libTime.la libTools.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
319
320fsc_SOURCES = src/fsc.cc
321fsc_LDADD = libTime.la libTools.la
322
323
324log_SOURCES = src/log.cc
325log_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la
326
327
328logtime_SOURCES = src/logtime.cc
329logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la
330
331moon_SOURCES = src/moon.cc
332moon_LDADD = libTime.la libConfiguration.la
333
334rootifysql_SOURCES = src/rootifysql.cc
335rootifysql_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTime.la libConfiguration.la -lmysqlclient
336
337makeplots_SOURCES = src/makeplots.cc
338makeplots_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTime.la libConfiguration.la
339
340makedata_SOURCES = src/makedata.cc
341makedata_LDADD = libTime.la libConfiguration.la
342
343makeschedule_SOURCES = src/makeschedule.cc
344makeschedule_LDADD = libTime.la libConfiguration.la libTools.la
345
346
347chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
348chatserv_LDADD = libStateMachine.la libTools.la libConfiguration.la libTime.la \
349 libDim++.la libDim.la libDimExtension.la
350
351
352dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
353dclient5_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \
354 libConfiguration.la
355
356ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
357ftmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
358 libStateMachine.la libTime.la libTools.la \
359 libConfiguration.la
360
361cosyctrl_SOURCES = src/cosyctrl.cc src/LocalControl.h src/HeadersFTM.cc
362cosyctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
363 libStateMachine.la libTools.la libTime.la \
364 libConfiguration.la
365
366drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h
367drivectrl_LDADD = libDim++.la libDim.la libDimExtension.la \
368 libStateMachine.la libTools.la libTime.la \
369 libConfiguration.la libPal.la
370
371agilentctrl_SOURCES = src/agilentctrl.cc src/LocalControl.h src/HeadersAgilent.h
372agilentctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
373 libStateMachine.la libTools.la libTime.la \
374 libConfiguration.la
375
376magicweather_SOURCES = src/magicweather.cc src/LocalControl.h
377magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \
378 libStateMachine.la libTools.la libTime.la \
379 libConfiguration.la
380
381magiclidar_SOURCES = src/magiclidar.cc src/LocalControl.h
382magiclidar_LDADD = libDim++.la libDim.la libDimExtension.la \
383 libStateMachine.la libTools.la libTime.la \
384 libConfiguration.la
385
386tngweather_SOURCES = src/tngweather.cc src/LocalControl.h
387tngweather_LDADD = libDim++.la libDim.la libDimExtension.la \
388 libStateMachine.la libTools.la libTime.la \
389 libConfiguration.la -lQtXml
390
391lidctrl_SOURCES = src/lidctrl.cc src/LocalControl.h
392lidctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
393 libStateMachine.la libTools.la libTime.la \
394 libConfiguration.la -lQtXml
395
396gpsctrl_SOURCES = src/gpsctrl.cc src/LocalControl.h
397gpsctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
398 libStateMachine.la libTools.la libTime.la \
399 libConfiguration.la
400
401pfminictrl_SOURCES = src/pfminictrl.cc src/LocalControl.h
402pfminictrl_LDADD = libDim++.la libDim.la libDimExtension.la \
403 libStateMachine.la libTools.la libTime.la \
404 libConfiguration.la
405
406sqmctrl_SOURCES = src/sqmctrl.cc src/LocalControl.h
407sqmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
408 libStateMachine.la libTools.la libTime.la \
409 libConfiguration.la
410
411biastemp_SOURCES = src/biastemp.cc src/LocalControl.h
412biastemp_LDADD = libDim++.la libDim.la libDimExtension.la \
413 libStateMachine.la libTools.la libTime.la \
414 libConfiguration.la
415
416temperature_SOURCES = src/temperature.cc src/LocalControl.h
417temperature_LDADD = libDim++.la libDim.la libDimExtension.la \
418 libStateMachine.la libTools.la libTime.la \
419 libConfiguration.la
420
421pwrctrl_SOURCES = src/pwrctrl.cc src/LocalControl.h \
422 src/HeadersPower.h src/HeadersPower.cc
423pwrctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
424 libStateMachine.la libTools.la libTime.la \
425 libConfiguration.la -lQtXml
426
427timecheck_SOURCES = src/timecheck.cc src/LocalControl.h
428timecheck_LDADD = libDim++.la libDim.la libDimExtension.la \
429 libStateMachine.la libTools.la libTime.la \
430 libConfiguration.la
431
432smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
433smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \
434 libStateMachine.la libTools.la libTime.la \
435 libConfiguration.la
436
437evtserver_SOURCES = src/evtserver.cc src/LocalControl.h
438evtserver_LDADD = libDim++.la libDim.la libDimExtension.la \
439 libStateMachine.la libTools.la libTime.la \
440 libConfiguration.la
441
442getevent_SOURCES = src/getevent.cc
443getevent_LDADD = libTools.la libTime.la libConfiguration.la
444
445fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
446 src/EventBuilder.cc src/EventBuilder.h \
447 src/DataProcessorImp.cc src/DataProcessorImp.h \
448 src/DataCalib.cc src/DataCalib.h \
449 src/DataWriteRaw.cc src/DataWriteRaw.h \
450 src/DrsCalib.h
451if HAS_FITS
452fadctrl_SOURCES += src/FitsFile.h src/FitsFile.cc \
453 src/DataWriteFits.cc src/DataWriteFits.h \
454 src/DataWriteFits2.cc src/DataWriteFits2.h
455endif
456fadctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
457 libStateMachine.la libTools.la libTime.la \
458 libConfiguration.la
459
460fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
461fscctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
462 libStateMachine.la libTools.la libTime.la \
463 libConfiguration.la
464
465gcn_SOURCES = src/gcn.cc src/LocalControl.h
466gcn_LDADD = libDim++.la libDim.la libDimExtension.la \
467 libStateMachine.la libTools.la libTime.la \
468 libConfiguration.la -lQtXml
469
470biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h src/PixelMap.cc
471biasctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
472 libStateMachine.la libTools.la libTime.la \
473 libConfiguration.la
474
475mcp_SOURCES = src/mcp.cc src/LocalControl.h
476mcp_LDADD = libDim++.la libDim.la libDimExtension.la \
477 libStateMachine.la libTools.la libTime.la \
478 libConfiguration.la
479
480feedback_SOURCES = src/feedback.cc src/LocalControl.h src/PixelMap.cc
481feedback_LDADD = libDim++.la libDim.la libDimExtension.la \
482 libStateMachine.la libTools.la libTime.la \
483 libConfiguration.la
484
485ratescan_SOURCES = src/ratescan.cc src/LocalControl.h src/PixelMap.cc
486ratescan_LDADD = libDim++.la libDim.la libDimExtension.la \
487 libStateMachine.la libTools.la libTime.la \
488 libConfiguration.la
489
490ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc
491ratecontrol_LDADD = libDim++.la libDim.la libDimExtension.la \
492 libStateMachine.la libTools.la libTime.la \
493 libConfiguration.la
494
495
496argv_SOURCES = src/argv.cc
497argv_LDADD = libConfiguration.la
498
499
500dimctrl_SOURCES = src/dimctrl.cc \
501 src/StateMachineDimControl.cc src/StateMachineDimControl.h \
502 src/RemoteControl.cc src/RemoteControl.h \
503 src/InterpreterV8.cc src/InterpreterV8.h \
504 src/DimState.cc src/DimState.h
505dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \
506 libDim++.la libDim.la libDimExtension.la libConfiguration.la
507
508dimserver_SOURCES = $(dimctrl_SOURCES)
509dimserver_LDADD = $(dimctrl_LDADD)
510
511
512chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
513chatclient_LDADD = libStateMachine.la libTools.la libTime.la \
514 libDim++.la libDim.la libDimExtension.la libConfiguration.la
515
516skypeclient_SOURCES = src/skypeclient.cc src/ChatClient.h
517skypeclient_LDADD = libStateMachine.la libTools.la libTime.la \
518 libDim++.la libDim.la libDimExtension.la libConfiguration.la
519
520
521time_SOURCES = src/time.cc
522time_LDADD = libTime.la
523
524#astro_SOURCES = src/astro.cc
525#astro_LDADD = libAstro.la libTime.la
526
527test_SOURCES = src/test.cc
528test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
529
530datalogger_SOURCES = src/datalogger.cc src/LocalControl.h src/DimState.cc src/DimState.h
531if HAS_FITS
532datalogger_SOURCES += src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
533endif
534datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
535 libStateMachine.la libTools.la libTime.la \
536 libConfiguration.la
537
538scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
539scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
540 libDim++.la libDim.la libDimExtension.la libConfiguration.la
541
542fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
543fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
544
545fitsdump_SOURCES = src/fitsdump.cc
546fitsdump_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTools.la libConfiguration.la libTime.la
547
548fitscheck_SOURCES = src/fitscheck.cc
549fitscheck_LDADD = libConfiguration.la
550
551fitsselect_SOURCES = src/fitsselect.cc
552fitsselect_LDADD = libConfiguration.la
553
554
555readfits_SOURCES = src/readfits.cc src/ReadFits.h
556readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
557
558zfits_SOURCES = src/zfits.cc externals/huffmans.h
559zfits_LDADD = libTime.la libConfiguration.la
560
561showlog_SOURCES = src/showlog.cc
562showlog_LDADD = libTime.la libTools.la libConfiguration.la -lncurses src/WindowLog.lo
563
564triggerschedule_SOURCES = src/triggerschedule.cc
565triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la
566
567#fitsCompressor_SOURCES = src/fitsCompressor.cc
568#fitsCompressor_LDADD = libConfiguration.la
569
570#fitsgrep_SOURCES = src/fitsgrep.cc
571#fitsgrep_LDADD = libConfiguration.la
572
573# -----
574
575if HAS_GUI
576
577fact_DIALOGS = \
578 gui/design.ui
579
580fact_RESOURCES = \
581 gui/design.qrc
582
583fact_QT_SOURCES = \
584 gui/DockWindow.cc \
585 gui/MainWindow.cc \
586 gui/QCameraWidget.cc \
587 gui/BasicGlCamera.cc
588
589fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
590
591endif
592
593# -----
594
595if HAS_VIEWER
596
597viewer_DIALOGS = \
598 gui/RawEventsViewer/viewer.ui
599
600viewer_QT_SOURCES = \
601 gui/RawEventsViewer/RawEventsViewer.cc \
602 gui/BasicGlCamera.cc \
603 gui/QCameraWidget.cc \
604 gui/Q3DCameraWidget.cc
605
606viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
607
608endif
609
610
611
612BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
613
614CLEANFILES += $(BUILT_SOURCES)
615
616EXTRA_DIST += \
617 $(fact_DIALOGS) $(fact_RESOURCES) \
618 $(viewer_DIALOGS) $(viewer_RESOURCES)
619
620fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) -lGQt $(QT4_LIB) $(QT4_LDFLAGS) -L. \
621 libDim++.la libDim.la libDimExtension.la \
622 libTools.la libStateMachine.la libTime.la libTools.la \
623 libConfiguration.la
624
625fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
626 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
627 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc \
628 src/PixelMap.cc
629
630# Switch off most qwt warnings
631viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow
632
633viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
634 libDimExtension.la \
635 libConfiguration.la libStateMachine.la libTools.la \
636 libTime.la libDim++.la libDim.la
637
638viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
639 src/DataProcessorImp.cc src/DataProcessorImp.h \
640 src/FitsFile.cc src/FitsFile.h \
641 src/Fits.cc src/Fits.h \
642 src/PixelMap.cc
643
644
645
646#-------------------------------------------------------------------------
647
648SUFFIXES = .moc.cc
649
650.ui.h: $<
651 $(AM_V_GEN)$(UIC4) $< -o $@
652
653.h.moc.cc: $<
654 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
655
656.qrc.cc: $<
657 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
658
659
660#-------------------------------------------------------------------------
661
662MAN_TARGETS = $(dist_man1_MANS)
663
664if HAS_GROFF
665
666MAN_TARGETS += $(dist_man1_MANS:.man=.html)
667EXTRA_DIST += $(dist_man1_MANS:.man=.html)
668CLEANFILES += $(dist_man1_MANS:.man=.html)
669
670if HAS_PS2PDF
671
672MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
673EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
674CLEANFILES += $(dist_man1_MANS:.man=.pdf)
675endif
676
677endif
678
679if HAS_JSDOC
680JAVA_SCRIPT_DOC=jsdoc
681endif
682
683$(dist_man1_MANS): $(dist_man1_MANS:.man=)
684 @mkdir -p man
685 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
686
687.man.html: $<
688 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
689
690.man.pdf: $<
691 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
692
693jsdoc:
694 @rm -rf www/dimctrl
695 $(AM_V_GEN)jsdoc -r=2 -d=www/dimctrl scripts | grep -v ^java
696
697
698doc: $(MAN_TARGETS) $(JAVA_SCRIPT_DOC) doxygen-run
699 @ln -sfv doxygen-doc/html/index.html doxygen-doc/html/main.html
700 @mkdir -vp doxygen-doc/html/pdf
701 @mkdir -vp doxygen-doc/html/man
702 @ln -sfv `pwd`/*.pdf doxygen-doc/html/pdf/
703 @ln -sfv `pwd`/*.html doxygen-doc/html/man/
704
705diff:
706 @svn diff | $(COLORDIFF)
707
708rdiff:
709 @svn diff -r BASE:HEAD . externals | $(COLORDIFF)
710
711status:
712 @svn status -u | grep -v ^\?
713
714#-------------------------------------------------------------------------
715
716# Overwrite rules for silent or other verbosity levels
717#AM_V_MAN = $(AM_MAN_$(V))
718#AM_MAN_ = $(AM_V_GEN)
719#AM_MAN_0 = @echo " MAN "$@;
720
721#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
722# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
723# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
724# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
725# for i in $$rootcint_files; do \
726# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
727# cp $$i $(srcdir)/; \
728# fi; \
729# done
730
731#CLEANFILES = *~ *.rej *.orig
732#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
733# stamp-h.in stamp-h[0-9].in
734#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.