source: branches/FACT++_lidctrl_new_eth/Makefile.am@ 19934

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