#***************************************************************************** # # FILE NAME: $Id: Makefile,v 1.3 2009/07/29 15:47:18 mocchiut Exp $ # VERSION: # AUTHOR: Nergal S.r.l. # DATE: # # DESCRIPTION: base Makefile # # REVISION HISTORY: # # Version Date Author Change Description # #*****************************************************************************/ #------------------------------------------------------------------------------ include $(BASEDIR)/PamOffLineSW/Make.def #------------------------------------------------------------------------------ CFLAGS += -I $(PAMOFF_DIR) -I $(TECH_DIR_INC) -I $(ROOT_DIR_INC) -I $(BASEDIR) -I $(EVENT_DIR) -fPIC -DPIC ROOTEVENTDICT = TechmodelDict CXXSRCS = \ TechmodelAlgorithm.cpp \ EventReader.cpp \ PhysEndRunReader.cpp \ CalibCalPulse1Reader.cpp \ CalibCalPulse2Reader.cpp \ CalibTrkBothReader.cpp \ CalibTrk1Reader.cpp \ CalibTrk2Reader.cpp \ CalibTofReader.cpp \ CalibS4Reader.cpp \ CalibCalPedReader.cpp \ Calib1_Ac1Reader.cpp \ Calib2_Ac1Reader.cpp \ Calib1_Ac2Reader.cpp \ Calib2_Ac2Reader.cpp \ CalibCalReader.cpp \ RunHeaderReader.cpp \ RunTrailerReader.cpp \ CalibHeaderReader.cpp \ CalibTrailerReader.cpp \ InitHeaderReader.cpp \ InitTrailerReader.cpp \ EventTrkReader.cpp \ PhysicsReader.cpp \ LogReader.cpp \ VarDumpReader.cpp \ ArrDumpReader.cpp \ TabDumpReader.cpp \ TmtcReader.cpp \ McmdReader.cpp \ ForcedFECmdReader.cpp \ Ac1InitReader.cpp \ CalInitReader.cpp \ TrkInitReader.cpp \ TofInitReader.cpp \ TrgInitReader.cpp \ NdInitReader.cpp \ S4InitReader.cpp \ Ac2InitReader.cpp \ CalAlarmReader.cpp \ Ac1AlarmReader.cpp \ TrkAlarmReader.cpp \ TrgAlarmReader.cpp \ TofAlarmReader.cpp \ S4AlarmReader.cpp \ Ac2AlarmReader.cpp \ TsbTReader.cpp \ TsbBReader.cpp \ $(ROOTEVENTDICT).cpp #------------------------------------------------------------------------------ TARGETLIB = $(TECH_A) #------------------------------------------------------------------------------ libs: $(TARGETLIB) $(TARGETLIB) : ${OBJS} ifeq ($(verbose),) @$(AR) -scrv $@ ${OBJS} &>/dev/null else $(AR) -scrv $@ ${OBJS} endif INCLUDES = -I. -I$(ROOT_DIR)/include -I$(BASEDIR) $(ROOTEVENTDICT).cpp: TechmodelAlgorithm.h EventReader.h LinkDef.h ifeq ($(verbose),) LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c $(INCLUDES) $^ else echo $(ROOTCINT) -f $@ -c $^;\ LD_LIBRARY_PATH=$(ROOT_LIB):$(LD_LIBRARY_PATH); $(ROOTCINT) -f $@ -c $(INCLUDES) $^ endif clean: ifeq ($(verbose),) @rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(ROOTEVENTDICT).{cpp,h} else rm -f $(TARGETLIB) ${OBJS} $(OBJDIR)/.*.d $(ROOTEVENTDICT).{cpp,h} endif #distclean: clean #-include $(DEPEND) #------------------------------------------------------------------------------ include $(BASEDIR)/PamOffLineSW/Make.def.post #------------------------------------------------------------------------------