| 28 |
# to the compiler options for the main analysis program. |
# to the compiler options for the main analysis program. |
| 29 |
OPTIMIZE = -g3 #-DDEBUGPAMCUT |
OPTIMIZE = -g3 #-DDEBUGPAMCUT |
| 30 |
|
|
| 31 |
|
|
| 32 |
# Library flags |
# Library flags |
| 33 |
# Pamela software is modular, so some libraries may not be available in some istallations. |
# Pamela software is modular, so some libraries may not be available in some istallations. |
| 34 |
# To avoid linking problems, here you can define flags to exclude those parts of the |
# To avoid linking problems, here you can define flags to exclude those parts of the |
| 35 |
# PamCut software which make use of unavailable libraries. Remember to place |
# PamCut software which make use of unavailable libraries. Remember to place |
| 36 |
# the code to be excluded between proper preprocessor directives. See the documentation or the cut |
# the code to be excluded between proper preprocessor directives. See the documentation or the cut |
| 37 |
# TofNucleiZCut for an example. |
# TofNucleiZCut for an example. |
| 38 |
EXCLUSIONFLAGS = #-DNO_TOFNUCLEI -DNO_CALONUCLEI -DNO_TRKNUCLEI |
EXCLUSIONFLAGS = -DNO_TOFNUCLEI -DNO_CALONUCLEI -DNO_TRKNUCLEI |
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 63 |
endif |
endif |
| 64 |
|
|
| 65 |
# All Target |
# All Target |
| 66 |
all: libPamCut.so version |
all: libPamCut.so |
| 67 |
|
@echo |
| 68 |
|
@echo "**** Compiler version and compilation host ****" |
| 69 |
|
@$(C++) --version | grep GCC |
| 70 |
|
@hostname |
| 71 |
|
@echo |
| 72 |
|
|
| 73 |
# Tool invocations |
# Tool invocations |
| 74 |
libPamCut.so: $(OBJS) $(USER_OBJS) |
libPamCut.so: $(OBJS) $(USER_OBJS) |
| 75 |
@echo 'Building target: $@' |
@echo 'Building target: $@' |
| 83 |
-$(RM) $(CPP_DEPS) $(OBJS) libPamCut.so |
-$(RM) $(CPP_DEPS) $(OBJS) libPamCut.so |
| 84 |
-@echo ' ' |
-@echo ' ' |
| 85 |
|
|
| 86 |
version: |
distclean: |
| 87 |
@echo |
@rm -f ${PAM_LIB}/libPamCut.so |
| 88 |
@echo "**** Compiler version and compilation host ****" |
@rm -rf ${PAM_INC}/PamCut |
| 89 |
@$(C++) --version | grep GCC |
@echo Installed files successfully removed. |
| 90 |
@hostname |
|
| 91 |
@echo |
install: |
| 92 |
|
@if [[ "${PAM_INC}" == "" || "${PAM_LIB}" == "" ]]; then \ |
| 93 |
|
echo Pamela environment not set. ; \ |
| 94 |
|
else \ |
| 95 |
|
rootdir=`pwd`; \ |
| 96 |
|
for file in `find -name "*.h"`; do \ |
| 97 |
|
dir=`dirname $${file} | sed 's/.\///'`; \ |
| 98 |
|
mkdir -p ${PAM_INC}/PamCut/$${dir}; \ |
| 99 |
|
cp -u $${file} ${PAM_INC}/PamCut/$${dir}; \ |
| 100 |
|
done; \ |
| 101 |
|
cp -u libPamCut.so ${PAM_LIB}; \ |
| 102 |
|
fi |
| 103 |
|
@echo PamCut installed. |
| 104 |
|
|
| 105 |
|
.PHONY: all clean distclean install |
| 106 |
|
|
|
.PHONY: all clean dependents version |
|