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

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