41 |
CXXFLAGS=-Wall -O -fPIC -pthread |
CXXFLAGS=-Wall -O -fPIC -pthread |
42 |
# ROOTCINT |
# ROOTCINT |
43 |
ROOTCINT=rootcint |
ROOTCINT=rootcint |
44 |
|
#CERNLIB |
45 |
|
CERNLIB=./docs/cernlib_pam |
46 |
|
#CERNLIB=cernlib |
47 |
|
|
48 |
# Here the variables definig the local directories |
# Here the variables definig the local directories |
49 |
DIRTOP=${shell pwd} |
DIRTOP=${shell pwd} |
50 |
#DIRLIB=../lib/${ARCH} |
#DIRLIB=../lib/${ARCH} |
209 |
|
|
210 |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
211 |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
212 |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so ${PAM_LIB}/libshift.so -lThread `root-config --cflags --glibs` `cernlib_noshift mathlib` |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `${CERNLIB} mathlib` |
213 |
@${CXX} ${CXXFLAGS} -Xlinker -soname=libDarthVader_${VER}.so -shared -o ${DIRTOP}/${DIRLIB}/libDarthVader_${VER}.so -lg2c ${DIRTOP}/${DIRLIB}/libAcLevel2.so ${DIRTOP}/${DIRLIB}/libCaloLevel2.so ${PAM_LIB}/libsgp4.so ${DIRTOP}/${DIRLIB}/libNDLevel2.so ${DIRTOP}/${DIRLIB}/libS4Level2.so ${DIRTOP}/${DIRLIB}/libToFLevel2.so ${DIRTOP}/${DIRLIB}/libTrigLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel1.so ${PAM_LIB}/libGLTables.so ${DIRTOP}/${DIRLIB}/libRunInfo.so ${DIRTOP}/${DIRLIB}/libOrbitalInfo.so |
@${CXX} ${CXXFLAGS} -Xlinker -soname=libDarthVader_${VER}.so -shared -o ${DIRTOP}/${DIRLIB}/libDarthVader_${VER}.so -lg2c ${DIRTOP}/${DIRLIB}/libAcLevel2.so ${DIRTOP}/${DIRLIB}/libCaloLevel2.so ${PAM_LIB}/libsgp4.so ${DIRTOP}/${DIRLIB}/libNDLevel2.so ${DIRTOP}/${DIRLIB}/libS4Level2.so ${DIRTOP}/${DIRLIB}/libToFLevel2.so ${DIRTOP}/${DIRLIB}/libTrigLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel1.so ${DIRTOP}/${DIRLIB}/libTrkHough.so ${PAM_LIB}/libGLTables.so ${DIRTOP}/${DIRLIB}/libRunInfo.so ${DIRTOP}/${DIRLIB}/libOrbitalInfo.so `${CERNLIB} mathlib` |
214 |
|
|
215 |
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
216 |
|
|
217 |
# A small target to check environmental variables |
# A small target to check environmental variables |
270 |
locupgrade: FORCE=-u |
locupgrade: FORCE=-u |
271 |
locupgrade: locinstall |
locupgrade: locinstall |
272 |
|
|
273 |
|
upgradenc: |
274 |
|
@for dir in `echo ${SUBDIR}`; do \ |
275 |
|
echo "Making upgrade in $${dir}"; \ |
276 |
|
(cd $${dir} && ${MAKE} upgrade); \ |
277 |
|
done; make locupgradenc |
278 |
|
|
279 |
|
locupgradenc: FORCE=-u |
280 |
|
locupgradenc: locinstallnc |
281 |
|
|
282 |
install: |
install: |
283 |
@for dir in `echo ${SUBDIR}`; do \ |
@for dir in `echo ${SUBDIR}`; do \ |
284 |
echo "Making install in $${dir}"; \ |
echo "Making install in $${dir}"; \ |
287 |
|
|
288 |
locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro |
locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro |
289 |
|
|
290 |
|
locinstallnc: installlib installinc installmacros installdoc installexe installcmacro |
291 |
|
|
292 |
installlib: LINK=y |
installlib: LINK=y |
293 |
installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%) |
installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%) |
294 |
installlib: ORIGIN=${DIRLIB} |
installlib: ORIGIN=${DIRLIB} |