2 |
|
|
3 |
############################### geant4vmc Makefile ########################### |
############################### geant4vmc Makefile ########################### |
4 |
|
|
|
|
|
5 |
PACKAGE = PamVMC_fc |
PACKAGE = PamVMC_fc |
6 |
|
|
7 |
ifeq ($(PLATFORM),) |
ifeq ($(PLATFORM),) |
8 |
PLATFORM = $(shell root-config --arch) |
PLATFORM = $(shell root-config --arch) |
9 |
endif |
endif |
10 |
|
|
11 |
TOPDIR = $(G4VMC_DIR) |
TOPDIR = $(PWD) |
12 |
BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
BINDIR = $(TOPDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
13 |
LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM) |
LIBDIR = $(TOPDIR)/lib/tgt_$(PLATFORM) |
14 |
|
#BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
15 |
|
#LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM) |
16 |
|
|
17 |
ifeq ($(ROOTSYS),) |
ifeq ($(ROOTSYS),) |
18 |
ROOT_INCDIR = $(shell root-config --incdir) |
ROOT_INCDIR = $(shell root-config --incdir) |
75 |
|
|
76 |
# PAMELA LIBS |
# PAMELA LIBS |
77 |
# |
# |
78 |
#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 |
|
79 |
SHLIBS := ${PAMLIBS} |
SHLIBS := ${PAMLIBS} |
80 |
# Make include list |
# Make include list |
81 |
# |
# |
|
#PAMINC := -I${PAM_INC} -I${PAM_INC}/yoda -I${ALIROOT}/TFluka/ |
|
|
#PAMINC := -I${PAM_INC} -I${PAM_INC}/yoda -I${ALIROOT}/source/ |
|
82 |
PAMINC := -I$(PAMELA_SOFTWARE)/include/yoda -I$(PAMELA_SOFTWARE)/inc -I${ALIROOT}/source |
PAMINC := -I$(PAMELA_SOFTWARE)/include/yoda -I$(PAMELA_SOFTWARE)/inc -I${ALIROOT}/source |
83 |
INCDIR := -Iinclude $(PAMINC) \ |
INCDIR := -Iinclude $(PAMINC) \ |
84 |
-Ical/include \ |
-Ical/include \ |
87 |
-Iac/include \ |
-Iac/include \ |
88 |
-Is4/include \ |
-Is4/include \ |
89 |
-Ind/include \ |
-Ind/include \ |
90 |
-I$(TOPDIR)/include \ |
-I$(G4VMC_DIR)/include \ |
91 |
-I$(CLHEP_BASE_DIR)/include \ |
-I$(CLHEP_BASE_DIR)/include \ |
92 |
-Iinclude -I$(G4INCLUDE) |
-Iinclude -I$(G4INCLUDE) |
93 |
|
|
104 |
RM_FILE=$(shell rm -f $(LIBDIR)/resxy_new.root)\ |
RM_FILE=$(shell rm -f $(LIBDIR)/resxy_new.root)\ |
105 |
$(shell rm -f $(LIBDIR)/CalibTrk_00110_000_000.root) |
$(shell rm -f $(LIBDIR)/CalibTrk_00110_000_000.root) |
106 |
|
|
107 |
|
AUXDIR='aux' |
108 |
CP_FILE=$(shell mkdir -p ${LIBDIR})\ |
CP_FILE=$(shell mkdir -p ${LIBDIR})\ |
109 |
$(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}/) |
110 |
|
|
111 |
SLIBRARY = $(LIBDIR)/lib$(PACKAGE).$(SL) |
SLIBRARY = $(LIBDIR)/lib$(PACKAGE).$(SL) |
112 |
ALIBRARY = $(LIBDIR)/lib$(PACKAGE).a |
ALIBRARY = $(LIBDIR)/lib$(PACKAGE).a |