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

Last change on this file since 19641 was 19314, checked in by tbretz, 6 years ago
Just removed the need for __CMAKE__ by renaming the Makefile qt4 ui files.
File size: 21.4 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 -Wno-unknown-pragmas
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 libTools.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 \
388 src/ConnectionSSL.h src/ConnectionSSL.cc
389tngweather_LDADD = libDim++.la libDim.la libDimExtension.la \
390 libStateMachine.la libTools.la libTime.la \
391 libConfiguration.la -lQtXml -lssl -lcrypto
392
393lidctrl_SOURCES = src/lidctrl.cc src/LocalControl.h
394lidctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
395 libStateMachine.la libTools.la libTime.la \
396 libConfiguration.la -lQtXml
397
398gpsctrl_SOURCES = src/gpsctrl.cc src/LocalControl.h
399gpsctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
400 libStateMachine.la libTools.la libTime.la \
401 libConfiguration.la
402
403pfminictrl_SOURCES = src/pfminictrl.cc src/LocalControl.h
404pfminictrl_LDADD = libDim++.la libDim.la libDimExtension.la \
405 libStateMachine.la libTools.la libTime.la \
406 libConfiguration.la
407
408sqmctrl_SOURCES = src/sqmctrl.cc src/LocalControl.h
409sqmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
410 libStateMachine.la libTools.la libTime.la \
411 libConfiguration.la
412
413biastemp_SOURCES = src/biastemp.cc src/LocalControl.h
414biastemp_LDADD = libDim++.la libDim.la libDimExtension.la \
415 libStateMachine.la libTools.la libTime.la \
416 libConfiguration.la
417
418rainsensor_SOURCES = src/rainsensor.cc src/LocalControl.h
419rainsensor_LDADD = libDim++.la libDim.la libDimExtension.la \
420 libStateMachine.la libTools.la libTime.la \
421 libConfiguration.la
422
423temperature_SOURCES = src/temperature.cc src/LocalControl.h
424temperature_LDADD = libDim++.la libDim.la libDimExtension.la \
425 libStateMachine.la libTools.la libTime.la \
426 libConfiguration.la
427
428pwrctrl_SOURCES = src/pwrctrl.cc src/LocalControl.h \
429 src/HeadersPower.h src/HeadersPower.cc
430pwrctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
431 libStateMachine.la libTools.la libTime.la \
432 libConfiguration.la -lQtXml
433
434timecheck_SOURCES = src/timecheck.cc src/LocalControl.h
435timecheck_LDADD = libDim++.la libDim.la libDimExtension.la \
436 libStateMachine.la libTools.la libTime.la \
437 libConfiguration.la
438
439smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
440smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \
441 libStateMachine.la libTools.la libTime.la \
442 libConfiguration.la
443
444evtserver_SOURCES = src/evtserver.cc src/LocalControl.h
445evtserver_LDADD = libDim++.la libDim.la libDimExtension.la \
446 libStateMachine.la libTools.la libTime.la \
447 libConfiguration.la
448
449getevent_SOURCES = src/getevent.cc
450getevent_LDADD = libTools.la libTime.la libConfiguration.la
451
452fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
453 src/EventBuilder.cc src/EventBuilder.h \
454 src/DataProcessorImp.cc src/DataProcessorImp.h \
455 src/DataCalib.cc src/DataCalib.h \
456 src/DataWriteRaw.cc src/DataWriteRaw.h \
457 src/DrsCalib.h
458if HAS_FITS
459fadctrl_SOURCES += src/FitsFile.h src/FitsFile.cc \
460 src/DataWriteFits.cc src/DataWriteFits.h \
461 src/DataWriteFits2.cc src/DataWriteFits2.h
462endif
463fadctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
464 libStateMachine.la libTools.la libTime.la \
465 libConfiguration.la
466
467fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
468fscctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
469 libStateMachine.la libTools.la libTime.la \
470 libConfiguration.la
471
472gcn_SOURCES = src/gcn.cc src/LocalControl.h
473gcn_LDADD = libDim++.la libDim.la libDimExtension.la \
474 libStateMachine.la libTools.la libTime.la \
475 libConfiguration.la -lQtXml
476
477biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h src/PixelMap.cc
478biasctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
479 libStateMachine.la libTools.la libTime.la \
480 libConfiguration.la
481
482mcp_SOURCES = src/mcp.cc src/LocalControl.h
483mcp_LDADD = libDim++.la libDim.la libDimExtension.la \
484 libStateMachine.la libTools.la libTime.la \
485 libConfiguration.la
486
487feedback_SOURCES = src/feedback.cc src/LocalControl.h src/PixelMap.cc
488feedback_LDADD = libDim++.la libDim.la libDimExtension.la \
489 libStateMachine.la libTools.la libTime.la \
490 libConfiguration.la
491
492ratescan_SOURCES = src/ratescan.cc src/LocalControl.h src/PixelMap.cc
493ratescan_LDADD = libDim++.la libDim.la libDimExtension.la \
494 libStateMachine.la libTools.la libTime.la \
495 libConfiguration.la
496
497ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc
498ratecontrol_LDADD = libDim++.la libDim.la libDimExtension.la \
499 libStateMachine.la libTools.la libTime.la \
500 libConfiguration.la
501
502
503argv_SOURCES = src/argv.cc
504argv_LDADD = libConfiguration.la
505
506
507dimctrl_SOURCES = src/dimctrl.cc \
508 src/StateMachineDimControl.cc src/StateMachineDimControl.h \
509 src/RemoteControl.cc src/RemoteControl.h \
510 src/InterpreterV8.cc src/InterpreterV8.h \
511 src/DimState.cc src/DimState.h
512dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \
513 libDim++.la libDim.la libDimExtension.la libConfiguration.la
514
515dimserver_SOURCES = $(dimctrl_SOURCES)
516dimserver_LDADD = $(dimctrl_LDADD)
517
518
519chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
520chatclient_LDADD = libStateMachine.la libTools.la libTime.la \
521 libDim++.la libDim.la libDimExtension.la libConfiguration.la
522
523skypeclient_SOURCES = src/skypeclient.cc src/ChatClient.h
524skypeclient_LDADD = libStateMachine.la libTools.la libTime.la \
525 libDim++.la libDim.la libDimExtension.la libConfiguration.la
526
527
528time_SOURCES = src/time.cc
529time_LDADD = libTime.la
530
531#astro_SOURCES = src/astro.cc
532#astro_LDADD = libAstro.la libTime.la
533
534test_SOURCES = src/test.cc
535test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
536
537datalogger_SOURCES = src/datalogger.cc src/LocalControl.h src/DimState.cc src/DimState.h
538if HAS_FITS
539datalogger_SOURCES += src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
540endif
541datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
542 libStateMachine.la libTools.la libTime.la \
543 libConfiguration.la
544
545scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
546scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
547 libDim++.la libDim.la libDimExtension.la libConfiguration.la
548
549fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
550fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
551
552fitsdump_SOURCES = src/fitsdump.cc
553fitsdump_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTools.la libConfiguration.la libTime.la
554
555fitscheck_SOURCES = src/fitscheck.cc
556fitscheck_LDADD = libConfiguration.la
557
558fitsselect_SOURCES = src/fitsselect.cc
559fitsselect_LDADD = libConfiguration.la
560
561
562readfits_SOURCES = src/readfits.cc src/ReadFits.h
563readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
564
565zfits_SOURCES = src/zfits.cc externals/huffmans.h
566zfits_LDADD = libTime.la libConfiguration.la
567
568showlog_SOURCES = src/showlog.cc
569showlog_LDADD = libTime.la libTools.la libConfiguration.la -lncurses src/WindowLog.lo
570
571triggerschedule_SOURCES = src/triggerschedule.cc
572triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la
573
574#fitsCompressor_SOURCES = src/fitsCompressor.cc
575#fitsCompressor_LDADD = libConfiguration.la
576
577#fitsgrep_SOURCES = src/fitsgrep.cc
578#fitsgrep_LDADD = libConfiguration.la
579
580# -----
581
582if HAS_GUI
583
584fact_DIALOGS = \
585 gui/design.ui
586
587fact_RESOURCES = \
588 gui/design.qrc
589
590fact_QT_SOURCES = \
591 gui/DockWindow.cc \
592 gui/MainWindow.cc \
593 gui/QCameraWidget.cc \
594 gui/BasicGlCamera.cc
595
596fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
597
598endif
599
600# -----
601
602if HAS_VIEWER
603
604viewer_DIALOGS = \
605 gui/RawEventsViewer/viewer.ui
606
607viewer_QT_SOURCES = \
608 gui/RawEventsViewer/RawEventsViewer.cc \
609 gui/BasicGlCamera.cc \
610 gui/QCameraWidget.cc \
611 gui/Q3DCameraWidget.cc
612
613viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
614
615endif
616
617
618
619BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
620
621CLEANFILES += $(BUILT_SOURCES)
622
623EXTRA_DIST += \
624 $(fact_DIALOGS) $(fact_RESOURCES) \
625 $(viewer_DIALOGS) $(viewer_RESOURCES)
626
627fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) -lGQt $(QT4_LIB) $(QT4_LDFLAGS) -L. \
628 libDim++.la libDim.la libDimExtension.la \
629 libTools.la libStateMachine.la libTime.la libTools.la \
630 libConfiguration.la
631
632fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
633 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
634 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc \
635 src/PixelMap.cc
636
637# Switch off most qwt warnings
638viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow
639
640viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
641 libDimExtension.la \
642 libConfiguration.la libStateMachine.la libTools.la \
643 libTime.la libDim++.la libDim.la
644
645viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
646 src/DataProcessorImp.cc src/DataProcessorImp.h \
647 src/FitsFile.cc src/FitsFile.h \
648 src/Fits.cc src/Fits.h \
649 src/PixelMap.cc
650
651
652
653#-------------------------------------------------------------------------
654
655SUFFIXES = .moc.cc
656
657.ui.h: $<
658 $(AM_V_GEN)$(UIC4) $< -o ui_$@
659
660.h.moc.cc: $<
661 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
662
663.qrc.cc: $<
664 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
665
666
667#-------------------------------------------------------------------------
668
669MAN_TARGETS = $(dist_man1_MANS)
670
671if HAS_GROFF
672
673MAN_TARGETS += $(dist_man1_MANS:.man=.html)
674EXTRA_DIST += $(dist_man1_MANS:.man=.html)
675CLEANFILES += $(dist_man1_MANS:.man=.html)
676
677if HAS_PS2PDF
678
679MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
680EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
681CLEANFILES += $(dist_man1_MANS:.man=.pdf)
682endif
683
684endif
685
686if HAS_JSDOC
687JAVA_SCRIPT_DOC=jsdoc
688endif
689
690$(dist_man1_MANS): $(dist_man1_MANS:.man=)
691 @mkdir -p man
692 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
693
694.man.html: $<
695 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
696
697.man.pdf: $<
698 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
699
700jsdoc:
701 @rm -rf www/dimctrl
702 $(AM_V_GEN)jsdoc -r=2 -d=www/dimctrl scripts | grep -v ^java
703
704
705doc: $(MAN_TARGETS) $(JAVA_SCRIPT_DOC) doxygen-run
706 @ln -sfv doxygen-doc/html/index.html doxygen-doc/html/main.html
707 @mkdir -vp doxygen-doc/html/pdf
708 @mkdir -vp doxygen-doc/html/man
709 @ln -sfv `pwd`/*.pdf doxygen-doc/html/pdf/
710 @ln -sfv `pwd`/*.html doxygen-doc/html/man/
711
712diff:
713 @svn diff | $(COLORDIFF)
714
715rdiff:
716 @svn diff -r BASE:HEAD . externals | $(COLORDIFF)
717
718status:
719 @svn status -u | grep -v ^\?
720
721#-------------------------------------------------------------------------
722
723# Overwrite rules for silent or other verbosity levels
724#AM_V_MAN = $(AM_MAN_$(V))
725#AM_MAN_ = $(AM_V_GEN)
726#AM_MAN_0 = @echo " MAN "$@;
727
728#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
729# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
730# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
731# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
732# for i in $$rootcint_files; do \
733# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
734# cp $$i $(srcdir)/; \
735# fi; \
736# done
737
738#CLEANFILES = *~ *.rej *.orig
739#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
740# stamp-h.in stamp-h[0-9].in
741#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.