include aminclude.am #------------------------------------------------------------------------- ACLOCAL_AMFLAGS = -I .macro_dir DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux BOOST_FLAGS = -DBOOST_DISABLE_ASSERTS AM_CPPFLAGS = -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \ -O3 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 AM_CXXFLAGS = $(AM_CPPFLAGS) $(QT4_INCLUDES) \ -Woverloaded-virtual -Wshadow -std=c++0x # -no-undefined AM_LDFLAGS = -module -avoid-version #$(man3_MANS): doxygen-doc #DX_CLEANFILES = everything to clean. # Add to MOSTLYCLEANFILES. #------------------------------------------------------------------------- if HAS_QT4 QT4_EXECUTABLES = fact endif bin_PROGRAMS = $(QT4_EXECUTABLES) \ dns did \ log logtime time argv \ test3 dclient5 dserver2 \ dataLogger # ftmctrl ftm \ # chatclient chatserv \ # fitsgrep test \ # sched astro test ftm ftmctrl lib_LTLIBRARIES = libDim.la libDim++.la libTime.la libTools.la \ libConfiguration.la libStateMachine.la # libAstro.la dist_man1_MANS = test3.man #------------------------------------------------------------------------- dist_noinst_SCRIPTS = autogen.sh EXTRA_DIST = \ Doxyfile \ dim/DIM_Performance.pdf \ dim/LICENSE.GPL \ dim/README.txt \ dim/README_v9.txt \ dim/README_v10.txt \ dim/README_v11.txt \ dim/README_v12.txt \ dim/README_v13.txt \ dim/README_v14.txt \ dim/README_v17.txt \ dim/README_v16.txt \ dim/README_v17.txt \ dim/README_v18.txt \ dim/README_v19.txt EXTRA_DIST += $(dist_man1_MANS:.man=.html) $(dist_man1_MANS:.man=.pdf) CLEANFILES = $(dist_man1_MANS:.man=.pdf) $(dist_man1_MANS:.man=.html) dns_LDADD = libDim.la dns_SOURCES = dim/src/dns.c #dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS) did_LDADD = libDim.la did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did did_SOURCES = \ dim/src/did/did.c dim/src/did/did.h \ dim/src/did/dui_util.c dim/src/did/dui_util.h \ dim/src/did/dui_colors.h #libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS) libDim_ladir = libDim_la_HEADERS = \ dim/dim/dic.h \ dim/dim/dim_common.h \ dim/dim/dim.h \ dim/dim/dim_tcpip.h \ dim/dim/dis.h libDim_la_SOURCES = \ dim/src/dic.c \ dim/src/dis.c \ dim/src/dna.c \ dim/src/sll.c \ dim/src/dll.c \ dim/src/hash.c \ dim/src/swap.c \ dim/src/copy_swap.c \ dim/src/open_dns.c \ dim/src/conn_handler.c \ dim/src/tcpip.c \ dim/src/dtq.c \ dim/src/dim_thr.c \ dim/src/utilities.c #libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS) libDim___ladir = libDim___la_HEADERS = \ dim/dim/dic.hxx \ dim/dim/dis.hxx \ dim/dim/dim_core.hxx \ dim/dim/dim.hxx \ dim/dim/dim_tcpip.h \ dim/dim/dllist.hxx \ dim/dim/sllist.hxx \ dim/dim/tokenstring.hxx libDim___la_SOURCES = \ dim/src/diccpp.cxx \ dim/src/dimcpp.cxx \ dim/src/tokenstring.cxx \ dim/src/discpp.cxx # Divide into Readline / StateMachine / StateMachineDim / Tools? libStateMachine_la_SOURCES = \ src/WindowLog.h src/WindowLog.cc \ src/Readline.h src/Readline.cc \ src/ReadlineColor.h src/ReadlineColor.cc \ src/ReadlineWindow.h src/ReadlineWindow.cc \ src/Console.h src/Console.cc \ src/Shell.h src/Shell.cc \ \ src/EventImp.h src/EventImp.cc \ src/Event.h src/Event.cc \ src/State.h src/State.cc \ src/Description.h src/Description.cc \ src/MessageImp.h src/MessageImp.cc \ src/Converter.h src/Converter.cc \ src/StateMachineImp.h src/StateMachineImp.cc \ src/StateMachine.h src/StateMachine.cc \ \ src/EventDim.h \ src/MessageDim.h src/MessageDim.cc \ src/StateMachineDim.h src/StateMachineDim.cc \ src/DimServerList.h src/DimServerList.cc \ src/DimServiceInfoList.h src/DimServiceInfoList.cc \ src/DimNetworkList.h src/DimNetwork.cc \ src/ServiceList.h src/ServiceList.cc \ src/DimErrorRedirecter.h \ src/DimErrorRedirecter.cc \ src/DimDescriptionService.h \ src/DimDescriptionService.cc \ \ src/Connection.h src/Connection.cc libConfiguration_la_SOURCES = src/Configuration.h src/Configuration.cc libTime_la_SOURCES = src/Time.h src/Time.cc #libAstro_la_SOURCES = src/Astro.h src/Astro.cc libTools_la_SOURCES = src/tools.h src/tools.cc dserver2_SOURCES = src/dserver2.cc dserver2_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la #ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc #ftm_LDADD = libTime.la libTools.la libStateMachine.la libDim.la libDim++.la log_SOURCES = src/log.cc log_LDADD = libTime.la libTools.la libDim.la libDim++.la libStateMachine.la logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la logtime_SOURCES = src/logtime.cc #chatserv_LDADD = libStateMachine.la libConfiguration.la libTools.la libTime.la libDim.la libDim++.la #chatserv_SOURCES = src/chatserv.cc src/LocalControl.cc src/LocalControl.h dclient5_SOURCES = src/dclient5.cc src/LocalControl.cc src/LocalControl.h dclient5_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \ libConfiguration.la #ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.cc src/LocalControl.h src/HeadersFTM.cc #ftmctrl_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \ # libConfiguration.la argv_SOURCES = src/argv.cc argv_LDADD = libConfiguration.la test3_SOURCES = src/test3.cc src/RemoteControl.cc src/RemoteControl.h test3_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la #chatclient_SOURCES = src/chatclient.cc src/ChatClient.cc src/ChatClient.h #chatclient_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la time_SOURCES = src/time.cc time_LDADD = libTime.la #astro_SOURCES = src/astro.cc #astro_LDADD = libAstro.la libTime.la #test_SOURCES = src/test.cc #test_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la dataLogger_SOURCES = src/dataLogger.cc src/LocalControl.cc src/LocalControl.h src/Fits.cc dataLogger_LDADD = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \ libConfiguration.la #fitsgrep_SOURCES = src/fitsgrep.cc #fitsgrep_LDADD = libConfiguration.la # ----- if HAS_QT4 DIALOGS = \ gui/design.ui RESOURCES = \ gui/design.qrc QT_SOURCES = \ gui/HtmlDelegate.cc \ gui/CheckBoxDelegate.cc \ gui/DockWindow.cc \ gui/MainWindow.cc endif BUILT_SOURCES = $(DIALOGS:.ui=.h) $(RESOURCES:.qrc=.cc) $(QT_SOURCES:.cc=.moc.cc) CLEANFILES += $(BUILT_SOURCES) EXTRA_DIST += $(DIALOGS) $(RESOURCES) fact_LDADD = $(ROOTLDFLAGS) $(QT4_LIB) $(QT4_LDFLAGS) \ libDim.la libDim++.la libTools.la libTime.la libStateMachine.la fact_SOURCES = $(BUILT_SOURCES) $(QT_SOURCES) \ gui/fact.cc gui/FactGui.cc #------------------------------------------------------------------------- SUFFIXES = .moc.cc .ui.h: $< $(AM_V_GEN)$(UIC4) $< -o $@ .h.moc.cc: $< $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@ .qrc.cc: $< $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@ #------------------------------------------------------------------------- MAN_TARGETS = if HAS_GROFF .man.html: $< $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@ MAN_TARGETS += $(dist_man1_MANS:.man=.html) if HAS_PS2PDF .man.pdf: $< $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@ MAN_TARGETS += $(dist_man1_MANS:.man=.pdf) endif endif if HAS_HELP2MAN $(dist_man1_MANS): $(dist_man1_MANS:.man=) @mkdir -p man $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) $(@:.man=) MAN_TARGETS += $(dist_man1_MANS) endif man: $(MAN_TARGETS) doxygen-doc diff: @svn diff | $(COLORDIFF) #------------------------------------------------------------------------- # Overwrite rules for silent or other verbosity levels #AM_V_MAN = $(AM_MAN_$(V)) #AM_MAN_ = $(AM_V_GEN) #AM_MAN_0 = @echo " MAN "$@; #$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL) # $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^ # rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \ # $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \ # for i in $$rootcint_files; do \ # if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \ # cp $$i $(srcdir)/; \ # fi; \ # done #CLEANFILES = *~ *.rej *.orig #MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \ # stamp-h.in stamp-h[0-9].in #DISTCLEANFILES = config.cache config.log