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

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