(file) Return to Makefile CVS log (file) (dir) Up to [HallC] / pol_hms_single

Diff for /pol_hms_single/Makefile between version 1.7 and 1.14

version 1.7, 2004/11/27 18:16:57 version 1.14, 2005/12/08 21:53:35
Line 23 
Line 23 
            stringlib.o         ranecu.o            loren.o               \            stringlib.o         ranecu.o            loren.o               \
            locforunt.o         gauss1.o            mt19937.o             \            locforunt.o         gauss1.o            mt19937.o             \
            trg_track.o         hms_track.o           \            trg_track.o         hms_track.o           \
            qfs_new12_sub.o      init.o                \             qfs_new13_sub.o      init.o                \
            brem.o              radc.o              hcf2r.o      \            brem.o              radc.o              hcf2r.o      \
            hallc2h.o             hallc2h.o enerloss_new.o engine_eloss.o christy_rss.o resmod.o ressf.o \
              qfs_deut.o call_pb_ext_subroutine.o externals_subroutine.o
   
   my_dobjs = $(SPEC)mc_hms.do     $(SPEC)mc_hms_hut.do  $(SPEC)mc_hms_recon.do \
              project.do           rotate_haxis.do      check_dipole.do        \
              transp.do            musc.do              musc_ext.do            \
              stringlib.do         ranecu.do            loren.do               \
              locforunt.do         gauss1.do            mt19937.do             \
              trg_track.do         hms_track.do           \
              qfs_new13_sub.do      init.do                \
              brem.do              radc.do              hcf2r.do   \
              hallc2h.do enerloss_new.do engine_eloss.do christy_rss.do  resmod.do ressf.do \
              qfs_deut.do call_pb_ext_subroutine.o externals_subroutine.o
  
 MYOS := $(subst -,,$(shell uname)) MYOS := $(subst -,,$(shell uname))
 CERNLIBS = -lgeant$(GEANTVER) -lpawlib -lgraflib -lgrafX11 -lpacklib -lmathlib CERNLIBS = -lgeant$(GEANTVER) -lpawlib -lgraflib -lgrafX11 -lpacklib -lmathlib
Line 98 
Line 110 
   ifeq ($(LINUX_COMPILER),g77)   ifeq ($(LINUX_COMPILER),g77)
     FC=g77     FC=g77
     F77=g77     F77=g77
     FFLAGS=-O6 -malign-double -fno-automatic -I. -ffixed-line-length-none -fno-second-underscore  
     OTHERLIBS=-L$(CERN_ROOT)/lib -lpacklib -lmathlib -lnss_nis -lnsl     OTHERLIBS=-L$(CERN_ROOT)/lib -lpacklib -lmathlib -lnss_nis -lnsl
   ##  FFLAGSO=-O1 -malign-double -fno-automatic -I. -ffixed-line-length-none -fno-second-underscore
   ##  FFLAGSO=-O1 -malign-double -fno-automatic -I. -ffixed-line-length-none -fno-second-underscore -Wall -Wsurprising
       FFLAGSO=-O1 -malign-double -fno-automatic -I. -ffixed-line-length-none -fno-second-underscore -Wimplicit -Wall -Wsurprising
       FFLAGSD=-g -malign-double -fno-automatic -I. -ffixed-line-length-none -fno-second-underscore
   endif   endif
 endif endif
  
 %.o: %.f %.o: %.f
         $(F77) $(FFLAGS) -c $< -o $@          $(F77) $(FFLAGSO) -c $< -o $@
   %.do: %.f
           $(F77) $(FFLAGSD) -c $< -o $*.do
  
 mc_hms_single: $(my_objs) Makefile mc_hms_single.o mc_hms_single: $(my_objs) Makefile mc_hms_single.o
         $(F77) -o $@ $(FFLAGS) mc_hms_single.o $(my_objs) $(OTHERLIBS)          $(F77) -o $@ $(FFLAGSO) mc_hms_single.o $(my_objs) $(OTHERLIBS)
  
 debug: $(my_objs) Makefile mc_hms_single.o  debug: $(my_dobjs) Makefile mc_hms_single.do
         $(F77) -g -o mc_hms_single $(FFLAGS) mc_hms_single.o $(my_objs) $(OTHERLIBS)          $(F77) -o mc_hms_single_dbg $(FFLAGSD) mc_hms_single.do $(my_dobjs) $(OTHERLIBS)
  
 clean: clean:
         find . -name '*.o' -exec rm {} \;         find . -name '*.o' -exec rm {} \;
         find . -name '*.d' -exec rm {} \;          find . -name '*.do' -exec rm {} \;
         rm -f mc_hms_single debug          rm -f mc_hms_single mc_hms_single_dbg
  
 #the rule below updates a file, Makefile.dep, that lists which include files #the rule below updates a file, Makefile.dep, that lists which include files
 #each fortran file uses.  If an include file is changed, all the fortran files #each fortran file uses.  If an include file is changed, all the fortran files
Line 127 
Line 144 
             inc_files=`cat $$file.f | sed -n 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][ ]*['\''"]\(.*\)['\''"]/\1/p' | sort | uniq | xargs echo -n` ;\             inc_files=`cat $$file.f | sed -n 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][ ]*['\''"]\(.*\)['\''"]/\1/p' | sort | uniq | xargs echo -n` ;\
             if [ -n "$$inc_files" ]; then \             if [ -n "$$inc_files" ]; then \
               echo "$$file.o : $$file.f $$inc_files" >> Makefile.dep;\               echo "$$file.o : $$file.f $$inc_files" >> Makefile.dep;\
                 echo "$$file.do : $$file.f $$inc_files" >> Makefile.dep;\
             fi;\             fi;\
           done           done
  


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.14

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0