# # # ifndef BASEDIR BASEDIR =$(shell pwd) endif ifdef release debug = 0 release = 1 endif ifndef release debug = 1 release = 0 endif export LDFLAGS+=$(PAM_BIT) export CFLAGS+=$(PAM_BIT) export FFLAGS+=$(PAM_BIT) DIRS=event PamOffLineSW YodaProfiler all: for sub_dir in $(DIRS) ; do \ ( cd $$sub_dir && make BASEDIR=$(BASEDIR)) ; \ done distclean: for sub_dir in $(DIRS) ; do \ ( cd $$sub_dir && make distclean) ; \ done install: if [ "$(PAM_SOFTWARE)" == "" ]; then echo "";\ echo "PLEASE SET THE PAMELA ENVIRONMENT BEFORE INSTALLING";\ echo ""; \ exit; fi if [ ! -d $(PAM_SOFTWARE) ]; then mkdir $(PAM_SOFTWARE); fi if [ ! -d $(PAM_LIB) ]; then mkdir $(PAM_LIB); fi if [ ! -d $(PAM_INC) ]; then mkdir $(PAM_INC); fi ln -sf $(PAM_SOFTWARE)/inc $(PAM_SOFTWARE)/include if [ ! -d $(PAM_BIN) ]; then mkdir $(PAM_BIN); fi if [ ! -d $(PAM_DOC) ]; then mkdir $(PAM_DOC); fi if [ ! -d $(PAM_MACROS) ]; then mkdir $(PAM_MACROS); fi if [ ! -d $(PAM_SRC) ]; then mkdir $(PAM_SRC); fi if [ ! -d $(PAM_CALIB) ]; then mkdir $(PAM_CALIB); fi if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/ ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0 cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda/ cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/ (cd YodaProfiler && make forceinstall)