/[PAMELA software]/chewbacca/Makefile
ViewVC logotype

Diff of /chewbacca/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by mocchiut, Thu Jul 30 08:16:20 2009 UTC revision 1.13 by mocchiut, Thu Dec 24 10:31:10 2009 UTC
# Line 26  export BASEDIR=$(shell echo `pwd`) Line 26  export BASEDIR=$(shell echo `pwd`)
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),)
33    export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`)
34    export GCCVERMAJ=$(word 1,$(GCCVERS))
35    export GCC4=$(shell echo `echo "${GCCVERMAJ} > 3" |bc -l`)
36    endif
37  #  #
38  DIRS=event PamOffLineSW YodaProfiler  DIRS=event PamOffLineSW YodaProfiler
39  #  #
# Line 42  else Line 48  else
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 \
# Line 88  ifeq ($(verbose),) Line 105  ifeq ($(verbose),)
105          @rm -rf $(PAM_INC)/yoda/          @rm -rf $(PAM_INC)/yoda/
106          @cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda          @cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda
107          @cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/          @cp -rf $(PAM_LIB)/libyoda.so.0.0.0 $(BASEDIR)/event/
108            @ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so
109          @(${EGREEN}"")          @(${EGREEN}"")
110          @(cd YodaProfiler &>/dev/null && make -s forceinstall)          @(cd YodaProfiler &>/dev/null && make -s forceinstall)
111  else  else
# Line 118  else Line 136  else
136          rm -rf $(PAM_INC)/yoda/          rm -rf $(PAM_INC)/yoda/
137          cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda          cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda
138          cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/          cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/
139            ln -sf $(BASEDIR)/event/libyoda.so.0.0.0 $(BASEDIR)/event/libyoda.so
140          (${EGREEN}"")          (${EGREEN}"")
141          (cd YodaProfiler && make forceinstall)          (cd YodaProfiler && make forceinstall)
142  endif  endif

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23