Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-04 08:05:06

0001 
0002 #CERNROOT:= /home/khelwagd
0003 
0004 ifeq "$(TYPE)" ""
0005 TYPE := $(shell uname)
0006 FC              =       gfortran
0007 LD              =       gfortran
0008 RM              =       rm
0009 O               =       .o
0010 FFLAGS          =       -fPIC -fno-automatic
0011 LDFLAGS         =       "-L/usr/lib -lgfortran"
0012 SYSTEMFILES     =       $(SRCGNU)      
0013 endif
0014 
0015 #EXTRALIBS =-L${CERNROOT}/cernlib -lmathlib -lkernlib -lpacklib
0016 
0017 
0018 # --------------- Files involved ------------------
0019 
0020 ifeq "$(MAIN)" ""
0021 MAIN            =       Main_HIJING
0022 endif
0023 
0024 SRC             =       hijing1.383.f hipyset1.35.f\
0025                         G4HIJING_Block_DATA.f\
0026                         $(MAIN).f
0027 
0028 #                       G4HIJING_RANDOM.f\
0029                         
0030 
0031 # -------------------------------------------------
0032 
0033 OBJDIR          =       obj_$(TYPE)
0034 SRCFILES        =       $(SRC) $(INC) $(SYSTEMFILES) GNUmakefile
0035 OBJECTS         =       $(addprefix $(OBJDIR)/, $(addsuffix $O, \
0036                         $(basename $(SRC) $(SYSTEMFILES))))
0037 TARGET          =       $(MAIN).$(TYPE)
0038 INSTPATH        =       ./
0039 
0040 # --------------- Pattern rules -------------------
0041 
0042 $(OBJDIR)/%.o: %.f
0043         $(FC) $(FFLAGS) -c $< -o $@
0044 
0045 # -------------------------------------------------
0046 
0047 .PHONY:         all mkobjdir clean distclean install
0048 
0049 all:            mkobjdir $(TARGET)
0050 all.F: $(SRC)
0051         cat $^ > all.F 
0052 
0053 help:
0054                 @grep '^##' GNUmakefile
0055 
0056 mkobjdir:       
0057                 -@mkdir -p $(OBJDIR)
0058 
0059 $(TARGET):      $(OBJECTS)      
0060                 $(LD) $(OBJECTS) $(LIBS) $(LDFLAGS) -o $(TARGET)
0061 
0062 clean:          
0063                 -rm $(OBJECTS) 
0064 
0065 distclean:      
0066                 -rm $(TARGET) 
0067                 -rm -r obj_*
0068                 -rm *~
0069 
0070 install:        $(TARGET)
0071                 cp $(TARGET) $(INSTPATH)/$(basename $(TARGET))
0072                 strip $(INSTPATH)/$(basename $(TARGET))
0073 
0074 # --------------- Dependencies -------------------
0075