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

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