26 |
#export LD_LIBRARY_PATH+=:$(BASEDIR)/event/ |
#export LD_LIBRARY_PATH+=:$(BASEDIR)/event/ |
27 |
# |
# |
28 |
export LDFLAGS+=$(PAM_BIT) |
export LDFLAGS+=$(PAM_BIT) |
29 |
export CFLAGS+=$(PAM_BIT) |
export CFLAGS+=$(PAM_BIT) -g |
30 |
export FFLAGS+=$(PAM_BIT) |
export FFLAGS+=$(PAM_BIT) -g |
31 |
# |
# |
32 |
ifeq ($(GCC4),) |
ifeq ($(GCC4),) |
33 |
export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`) |
export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`) |
48 |
done |
done |
49 |
endif |
endif |
50 |
|
|
51 |
|
YodaProfiler: YodaProfiler/inc/* YodaProfiler/src/* |
52 |
|
ifeq ($(verbose),) |
53 |
|
@for sub_dir in "YodaProfiler" ; do \ |
54 |
|
( cd $$sub_dir &>/dev/null && (${EGREEN} "Make all in $$sub_dir "; ${RESET}) && make -s BASEDIR=$(BASEDIR)) ; \ |
55 |
|
done |
56 |
|
else |
57 |
|
for sub_dir in "YodaProfiler" ; do \ |
58 |
|
( cd $$sub_dir && make BASEDIR=$(BASEDIR)) ; \ |
59 |
|
done |
60 |
|
endif |
61 |
|
|
62 |
distclean: |
distclean: |
63 |
ifeq ($(verbose),) |
ifeq ($(verbose),) |
64 |
@for sub_dir in $(DIRS) ; do \ |
@for sub_dir in $(DIRS) ; do \ |
96 |
@if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi |
@if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi |
97 |
@(${EGREEN} " Installing: library "${WHITE}"libyoda.so "; ${RESET}) |
@(${EGREEN} " Installing: library "${WHITE}"libyoda.so "; ${RESET}) |
98 |
@cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ |
@cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ |
99 |
@ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so |
@cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so && cd - |
100 |
@ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 |
@cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so.0 && cd - |
101 |
|
# @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so |
102 |
|
# @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 |
103 |
@(${EGREEN} " Installing: exec file "${WHITE}"chewbacca"; ${RESET}) |
@(${EGREEN} " Installing: exec file "${WHITE}"chewbacca"; ${RESET}) |
104 |
@cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ |
@cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ |
105 |
@(${EGREEN} " Installing: "${WHITE}"yoda headers";${RESET}) |
@(${EGREEN} " Installing: "${WHITE}"yoda headers";${RESET}) |
107 |
@rm -rf $(PAM_INC)/yoda/ |
@rm -rf $(PAM_INC)/yoda/ |
108 |
@cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda |
@cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda |
109 |
@cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/ |
@cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/ |
110 |
|
@ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so |
111 |
@(${EGREEN}"") |
@(${EGREEN}"") |
112 |
@(cd YodaProfiler &>/dev/null && make -s forceinstall) |
@(cd YodaProfiler &>/dev/null && make -s forceinstall) |
113 |
else |
else |
129 |
if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi |
if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi |
130 |
(${EGREEN} " Installing "${EWHITE}"libyoda.so "; ${RESET}) |
(${EGREEN} " Installing "${EWHITE}"libyoda.so "; ${RESET}) |
131 |
cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ |
cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ |
132 |
ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so |
cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so && cd - |
133 |
ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 |
cd $(PAM_LIB) && ln -sf libyoda.so.0.0.0 libyoda.so.0 && cd - |
134 |
(${EGREEN} " Installing exec file "${EWHITE}"chewbacca"; ${RESET}) |
(${EGREEN} " Installing exec file "${EWHITE}"chewbacca"; ${RESET}) |
135 |
cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ |
cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ |
136 |
(${EGREEN} " Installing "${EWHITE}"yoda headers";${RESET}) |
(${EGREEN} " Installing "${EWHITE}"yoda headers";${RESET}) |
138 |
rm -rf $(PAM_INC)/yoda/ |
rm -rf $(PAM_INC)/yoda/ |
139 |
cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda |
cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda |
140 |
cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/ |
cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/ |
141 |
|
ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so |
142 |
(${EGREEN}"") |
(${EGREEN}"") |
143 |
(cd YodaProfiler && make forceinstall) |
(cd YodaProfiler && make forceinstall) |
144 |
endif |
endif |