--- chewbacca/Makefile 2009/07/30 08:16:20 1.10 +++ chewbacca/Makefile 2009/12/24 10:31:10 1.13 @@ -26,8 +26,14 @@ #export LD_LIBRARY_PATH+=:$(BASEDIR)/event/ # export LDFLAGS+=$(PAM_BIT) -export CFLAGS+=$(PAM_BIT) -export FFLAGS+=$(PAM_BIT) +export CFLAGS+=$(PAM_BIT) -g +export FFLAGS+=$(PAM_BIT) -g +# +ifeq ($(GCC4),) +export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`) +export GCCVERMAJ=$(word 1,$(GCCVERS)) +export GCC4=$(shell echo `echo "${GCCVERMAJ} > 3" |bc -l`) +endif # DIRS=event PamOffLineSW YodaProfiler # @@ -42,6 +48,17 @@ done endif +YodaProfiler: YodaProfiler/inc/* YodaProfiler/src/* +ifeq ($(verbose),) + @for sub_dir in "YodaProfiler" ; do \ + ( cd $$sub_dir &>/dev/null && (${EGREEN} "Make all in $$sub_dir "; ${RESET}) && make -s BASEDIR=$(BASEDIR)) ; \ + done +else + for sub_dir in "YodaProfiler" ; do \ + ( cd $$sub_dir && make BASEDIR=$(BASEDIR)) ; \ + done +endif + distclean: ifeq ($(verbose),) @for sub_dir in $(DIRS) ; do \ @@ -88,6 +105,7 @@ @rm -rf $(PAM_INC)/yoda/ @cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda @cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/ + @ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so @(${EGREEN}"") @(cd YodaProfiler &>/dev/null && make -s forceinstall) else @@ -118,6 +136,7 @@ rm -rf $(PAM_INC)/yoda/ cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/ + ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so (${EGREEN}"") (cd YodaProfiler && make forceinstall) endif