82 |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
83 |
|
|
84 |
# -- CPP - Executables -- |
# -- CPP - Executables -- |
85 |
CXXEXESRCS=${DIRSRC}/DarthVader.cpp |
CXXEXESRCS=${DIRSRC}/DarthVader.cpp \ |
86 |
|
${DIRSRC}/R2-D2.cpp |
87 |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
88 |
CXXEXELIBS:=DarthVader |
CXXEXELIBS:=DarthVader R2-D2 |
89 |
|
|
90 |
# -- list of tracker objects needed to link |
# -- list of tracker objects needed to link |
91 |
#TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so |
#TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so |
92 |
#TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done) |
#TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done) |
93 |
OBJS=${DIRLIB}/* |
#OBJS=${DIRLIB}/*.* |
94 |
|
OBJS=$(shell cd ${DIRLIB}&>/dev/null;for file in `ls *.*`; do if [ $${file} != "" ] && [ $${file} != "DarthVader.o" ] && [ $${file} != "R2-D2.o" ]; then echo ${DIRLIB}/$${file}; fi; done) |
95 |
#TRKOBJS= |
#TRKOBJS= |
96 |
|
|
97 |
# -- directory where to find tracker headers needed to compile |
# -- directory where to find tracker headers needed to compile |
106 |
FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} |
FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} |
107 |
|
|
108 |
# Other objects to install |
# Other objects to install |
109 |
EXESRCS=${DIRBIN}/DarthVader |
EXESRCS=${DIRBIN}/DarthVader ${DIRBIN}/R2-D2 |
110 |
|
|
111 |
INCSRCS= |
INCSRCS= |
112 |
|
|
208 |
|
|
209 |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
210 |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
211 |
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${CPPOBJS} ${FOBJS} ${TRKOBJS} ${PAM_YODA}/lib/libyoda.so -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ -lThread `root-config --cflags --glibs` `cernlib mathlib` |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
|
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
|
212 |
|
|
213 |
# A small target to check environmental variables |
# A small target to check environmental variables |
214 |
%_env: |
%_env: |
388 |
wv=$${i##/*/}; \ |
wv=$${i##/*/}; \ |
389 |
dest=$${i/$${wv}/}; \ |
dest=$${i/$${wv}/}; \ |
390 |
${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\ |
${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\ |
391 |
${EYELLOW} " to: "${WHITE} $${i} ; ${RESET}; \ |
${EYELLOW} " to: "${WHITE} ${PAM_CALIB} ; ${RESET}; \ |
392 |
cp -rf ${ORIGIN}/$${i##/*/} $${i}; \ |
cp -rf ${ORIGIN}/$${i##/*/} ${PAM_CALIB}; \ |
393 |
done |
done |
394 |
endef |
endef |
395 |
|
|