##################################################################
#
#   makefile
# 
#   for the MARS IFAE library
#
##################################################################
# @maintitle

# @code

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

#
CINT     = IFAE
#

PROGRAMS = makeHillas
SOLIB    = ../../libmars.so
LIB      = mifae.a

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

INCLUDES = -I. \
	   -I../../mbase \
	   -I../../mpedestal \
	   -I../../mbadpixels \
	   -I../../mfileio \
           -I../../mraw \
           -I../../manalysis \
	   -I../../mgui \
	   -I../../mgeom \
	   -I../../msignal \
	   -I../../mcalib \
	   -I../../mfilter \
	   -I../../mhbase \
	   -I../../mimage \
	   -I../../mpointing \
	   -I../../mastro


.SUFFIXES: .c .cc .h .o 

SRCFILES = \
	MDCA.cc 
#	MSrcRotate.cc 

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

############################################################
all: $(LIB) $(PROGRAMS)
	@echo " Done. "
	@echo " "

include ../../Makefile.rules


$(PROGRAMS): $(SOLIB) $(LIB) $(PROGRAMS:=.o)
	@echo " Linking $@ ..." 
	$(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) $(LIB) $@.o $(MARS_LIB) -o $@

mrproper: clean rmbak

# @endcode
