/[PAMELA software]/PamVMC/Makefile
ViewVC logotype

Diff of /PamVMC/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by nikolas, Wed Feb 18 17:25:29 2009 UTC revision 1.5 by pam-rm2, Fri Jun 12 18:38:51 2009 UTC
# Line 2  Line 2 
2    
3  ############################### geant4vmc Makefile ###########################  ############################### geant4vmc Makefile ###########################
4    
   
5  PACKAGE   = PamVMC_fc  PACKAGE   = PamVMC_fc
6    
7    
8  ifeq ($(PLATFORM),)  ifeq ($(PLATFORM),)
9  PLATFORM = $(shell root-config --arch)  PLATFORM = $(shell root-config --arch)
10  endif  endif
11    
12  TOPDIR  = $(G4VMC_DIR)  TOPDIR  = $(PWD)
13  BINDIR  = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE)  BINDIR  = $(TOPDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE)
14  LIBDIR  = $(G4WORKDIR)/lib/tgt_$(PLATFORM)  LIBDIR  = $(TOPDIR)/lib/tgt_$(PLATFORM)
15    #BINDIR  = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE)
16    #LIBDIR  = $(G4WORKDIR)/lib/tgt_$(PLATFORM)
17    
18  ifeq ($(ROOTSYS),)  ifeq ($(ROOTSYS),)
19  ROOT_INCDIR = $(shell root-config --incdir)  ROOT_INCDIR = $(shell root-config --incdir)
# Line 74  OBJS   := $(CXXOBJ) $(GDICTO) $(FOBJ) Line 76  OBJS   := $(CXXOBJ) $(GDICTO) $(FOBJ)
76    
77  # PAMELA LIBS  # PAMELA LIBS
78  #  #
79  #ALIROOT=/home/nikolas/francesco/aliroot/test/pro/  PAMLIBS := -L${PAM_LIB} -lTrkLevel2  
 ALIROOT=/home/nikolas/francesco/vmc/fluka_vmc/  
 #PAMLIBS := -L${PAM_LIB} -lTrkLevel2  -L${ALIROOT}/lib/tgt_linux/ -lTFluka  
 PAMLIBS := -L${PAM_LIB} -lTrkLevel2  -L${ALIROOT}/lib/tgt_linux/ -lfluka  
80  SHLIBS := ${PAMLIBS}  SHLIBS := ${PAMLIBS}
81  # Make include list  # Make include list
82  #  #
83  #PAMINC := -I${PAM_INC} -I${PAM_INC}/yoda -I${ALIROOT}/TFluka/  PAMINC :=   -I$(PAM_INC) -I$(PAM_INC)/yoda
84  #PAMINC := -I${PAM_INC} -I${PAM_INC}/yoda -I${ALIROOT}/source/  INCDIR  := -Iinclude -I$(TOPDIR) \
 PAMINC :=   -I$(PAMELA_SOFTWARE)/include/yoda -I$(PAMELA_SOFTWARE)/inc -I${ALIROOT}/source  
 INCDIR  := -Iinclude $(PAMINC) \  
85             -Ical/include \             -Ical/include \
86             -Itrk/include \             -Itrk/include \
87             -Itof/include \             -Itof/include \
88             -Iac/include \             -Iac/include \
89             -Is4/include \             -Is4/include \
90             -Ind/include \             -Ind/include \
91             -I$(TOPDIR)/include \             -I$(G4VMC_DIR)/include \
92             -I$(CLHEP_BASE_DIR)/include \             -I$(CLHEP_BASE_DIR)/include \
93             -Iinclude -I$(G4INCLUDE)             -Iinclude -I$(G4INCLUDE)
94    
95  FINCDIR := -Itrk/include/f77  FINCDIR := -Itrk/include/f77
96  # C++ compilation flags  # C++ compilation flags
97  #  #
98  CXXFLAGS := $(CXXOPTS) -I. $(INCDIR) -I$(ROOT_INCDIR) ${PAMOPTS}  CXXFLAGS := $(CXXOPTS) -I. $(INCDIR) $(PAMINC) -I$(ROOT_INCDIR) ${PAMOPTS}
99  FFLAGS :=  $(FINCDIR)  -fvxt -fno-automatic -Wno-globals  FFLAGS :=  $(FINCDIR)  -fvxt -fno-automatic -Wno-globals
100    
101  DEPINC          += -I. -I$(ROOT_INCDIR) $(INCDIR)  DEPINC          += -I. -I$(ROOT_INCDIR) $(INCDIR)
# Line 108  DEPINC                 += -I. -I$(ROOT_INCDIR) $(INCDI Line 105  DEPINC                 += -I. -I$(ROOT_INCDIR) $(INCDI
105  RM_FILE=$(shell rm -f $(LIBDIR)/resxy_new.root)\  RM_FILE=$(shell rm -f $(LIBDIR)/resxy_new.root)\
106          $(shell rm -f $(LIBDIR)/CalibTrk_00110_000_000.root)          $(shell rm -f $(LIBDIR)/CalibTrk_00110_000_000.root)
107    
108    AUXDIR='aux'
109  CP_FILE=$(shell mkdir -p  ${LIBDIR})\  CP_FILE=$(shell mkdir -p  ${LIBDIR})\
110          $(shell cp -rf resxy_new.root CalibTrk_00110_000_000.root ${LIBDIR}/)          $(shell cp -rf ${AUXDIR}/resxy_new.root ${AUXDIR}/CalibTrk_00110_000_000.root ${LIBDIR}/)
111    
112  SLIBRARY        = $(LIBDIR)/lib$(PACKAGE).$(SL)  SLIBRARY        = $(LIBDIR)/lib$(PACKAGE).$(SL)
113  ALIBRARY        = $(LIBDIR)/lib$(PACKAGE).a  ALIBRARY        = $(LIBDIR)/lib$(PACKAGE).a

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23