package Dy

use Db    v4r5p4
use CSet  v2r5
use Cm    v7r12p3
use Su    v6p1
use El    v4r4p1
use Fr    v6r04
use Fd    v4r00
use Cfg   v4r3
use Cbf   v4r0
use Xform v0r9999
use root  v3r3p8

setup_script set_alias

# The includes
include_dirs $(DYROOT)/src $(DYROOT)/src/mysiesta $(DYROOT)/src/xform

private

# The link libraries
# For root
macro+ Dy_linkopts " -L$(ROOTLIBPATH) \
  -lCore -lCint -lHist -lGraf -lGraf3d -lMatrix -lGpad -lPostscript -lGui "
# For c++
macro+ Dy_linkopts " $(cpp_linkopts) "
# For finding the shared libraries
macro+ Dy_linkopts "" \
  OSF1  "-Wl,-rpath,$(RPATH) " \
  Linux "$(RPATH) "

# The compilation options (we trick them a bit because of C++ style comments)
macro_remove cflags    "" OSF1 "-std1"
macro_remove Fd_cflags "" OSF1 "-std1"
macro_append cflags    "" OSF1 " -O3 -arch ev5 -nostdnew " Linux " -O "

# The default rootcint flag and the specific flag for URZoomSeveralDict
macro rootcint_flags ""
macro URZoomSeveralDict_rootcint_flags "-D__CINT__"

# The three rootcint constructions
document rootcint VDyPlotDict -s=mysiesta VDyPlot.h
document rootcint URZoomSeveralDict -s=mysiesta URZoomSeveral.cc \
  URZoomSeveral_LinkDef.h
document rootcint Wrapper_checkDict Wrapper_fl_check_forms.cc    \
  Wrapper_LinkDef.h

public

# The application
application dataDisplay -no_prototypes dataDisplay.c                       \
  DyXform.c DyVar.c DyCm.c DyDd.c DyConfig.c DyDump.c DyFiles.c            \
  DyHelp.c DyPlot.c DySiesta.c DyVisu.c fselector.c                        \
  -s=mysiesta UArrayL.c UFrameL.c UJobL.c UMathL.c URPlot.c                \
  USignalL.c URootAccess.cc VDyPlot.cc                                     \
  -s=../$(Dy_tag) VDyPlotDict.cc URZoomSeveralDict.cc Wrapper_checkDict.cc \
  -s=xform cmservers.c dumpdata.c getdd.c inputfile.c mainbrowser.c        \
  plot1d.c mainpanel.c plot2d.c plotaudio.c plotgenepar.c plotfft.c        \
  plotffttime.c plottrfct.c plottime.c
