1 |
RED='\E[1;31;40m' |
2 |
GREEN='\E[1;32;40m' |
3 |
YELLOW='\E[1;33;40m' |
4 |
BLUE='\E[1;34;40m' |
5 |
WHITE='\E[1;37;40m' |
6 |
VIOLET='\E[1;35;40m' |
7 |
CYAN='\E[1;36;40m' |
8 |
EGREEN=echo -e ${GREEN} |
9 |
RESET=tput sgr0 |
10 |
CC=gcc |
11 |
LD=g++ |
12 |
CXX=g++ |
13 |
CXXFLAGS= -Wall -fPIC `root-config --cflags` -I. -I${PAM_INC} \ |
14 |
-I${PAM_YODA}/include/yoda \ |
15 |
-I${ROOTSYS}/include \ |
16 |
-I${PAM_VMC}/include \ |
17 |
-I${PAM_VMC}/ac/include \ |
18 |
-I${PAM_VMC}/cal/include \ |
19 |
-I${PAM_VMC}/nd/include \ |
20 |
-I${PAM_VMC}/s4/include \ |
21 |
-I${PAM_VMC}/tof/include \ |
22 |
-I${PAM_VMC}/trk/include |
23 |
CXXLIBS= `root-config --glibs` -L${PAM_LIB}\ |
24 |
${PAM_LIB}/libPamLevel2.so \ |
25 |
${PAM_LIB}/libTrkLevel2.so \ |
26 |
${PAM_LIB}/libTrkLevel1.so \ |
27 |
${PAM_LIB}/libS4Level2.so \ |
28 |
${PAM_LIB}/libCaloLevel1.so \ |
29 |
${PAM_LIB}/libCaloLevel2.so \ |
30 |
${PAM_LIB}/libNDLevel2.so \ |
31 |
${PAM_LIB}/libToFLevel2.so \ |
32 |
${PAM_LIB}/libGLTables.so \ |
33 |
${PAM_LIB}/libAcLevel2.so \ |
34 |
${PAM_LIB}/libOrbitalInfo.so \ |
35 |
${PAM_LIB}/libTrigLevel2.so \ |
36 |
${PAM_LIB}/libyoda.so \ |
37 |
${PAM_LIB}/libDarthVader.so\ |
38 |
${PAM_LIB}/libsgp4.so \ |
39 |
${PAM_LIB}/libTrkHough.so \ |
40 |
${PAM_LIB}/libRunInfo.so \ |
41 |
${ROOTSYS}/lib/libVMC.so \ |
42 |
${ROOTSYS}/lib/libGeom.so \ |
43 |
${ROOTSYS}/lib/libPhysics.so \ |
44 |
${ROOTSYS}/lib/libTree.so \ |
45 |
${ROOTSYS}/lib/libEG.so \ |
46 |
${ROOTSYS}/lib/libSQL.so \ |
47 |
${PAM_VMC}/lib/tgt_linux/libPamVMC_fc.so |
48 |
CXXSRC=vmc_dig.cpp |
49 |
CXXOBJS=vmc_dig.o |
50 |
|
51 |
all: vmc_dig |
52 |
|
53 |
vmc_dig: ${CXXOBJS} ${MYLIBS} |
54 |
@(${EGREEN} "Creating executable: "${WHITE} "$@"; ${RESET}) |
55 |
@${LD} ${CXXLIBS} -o $@ $^ |
56 |
@rm -f ${CXXOBJS} |
57 |
|
58 |
vmc_dig.o: ${CXXSRC} |
59 |
@rm -f ${CXXOBJS} |
60 |
@(${EGREEN} "Creating object file: "${WHITE} "$@"; ${RESET}) |
61 |
@${CXX} ${CXXFLAGS} -c -o $@ $< |
62 |
clean: |
63 |
rm vmc_dig *.d *.o |