##################################################################
#
#   makefile
# 
#   for the MARS software
#
##################################################################
# @maintitle

# @code

#
#  please change all system depend values in the 
#  config.mk.${OSTYPE} file 
#
#
include ../Makefile.conf.$(OSTYPE)
include ../Makefile.conf.general

# @endcode 

INCLUDES = -I. -I../mbase -I../mraw -I../mmc -I../mreflector -I../mgui \
	   -I../mdata -I../manalysis -I../mgeom -I../mhbase            \
           -I../mpointing -I../mpedestal
#mraw:       MRawRunHeader (MReadMaraFile)
#mmc:        MMcRunHeader  (MReadMarsFile)
#mreflector: MRfl*         (MReadRflFile)
#mgui:       MCamEvent     (MReadRflFile)
#mdata:      MData*        (MWriteAsciiFile)
#manalysis:  MCerPhotEvt   (MCT1ReadAscii)
#mgeom:      MGeomCam      (MCT1ReadPreProc)
#mhbase:     MBinning      (MCT1ReadPreProc)
#mpointing:  MPointingPos  (MCT1ReadPreProc)
#mpedestal:  MPedestalCam  (MCT1ReadAscii)

# @code 

CINT     = FileIO
LIB      = mfileio.a

#------------------------------------------------------------------------------

.SUFFIXES: .c .cc .cxx .h .hxx .o 

SRCFILES = MRead.cc \
           MChain.cc \
	   MReadTree.cc \
           MReadReports.cc \
           MReadMarsFile.cc \
           MReadRflFile.cc \
           MWriteFile.cc \
           MWriteAsciiFile.cc \
           MWriteRootFile.cc \
           MCT1ReadAscii.cc \
           MCT1ReadPreProc.cc

SRCS    = $(SRCFILES)
HEADERS = $(SRCFILES:.cc=.h)
OBJS    = $(SRCFILES:.cc=.o) 

############################################################

all: $(LIB)

include ../Makefile.rules

#clean:	rmcint rmobjs rmcore rmlib

mrproper:	clean rmbak

# @endcode

