# This file gives the syntax of the makefile # enter the name of the main program here FILE = hard_pi_elprod # enter the object filenames with path FILEOBJ = $(DIROBJ)/complex.o \ $(DIROBJ)/vector.o \ $(DIROBJ)/four_vector.o \ $(DIROBJ)/int_complex.o \ $(DIROBJ)/int1dacc.o \ $(DIROBJ)/int1d.o \ $(DIROBJ)/int2d.o \ $(DIROBJ)/int3d.o \ $(DIROBJ)/int_montecarlo.o \ $(DIROBJ)/matrix.o \ $(DIROBJ)/gamma.o \ $(DIROBJ)/angular.o \ $(DIROBJ)/bessel_mod.o \ $(DIROBJ)/gegenbauer.o \ $(DIROBJ)/parton_distr.o \ $(DIROBJ)/ofpd.o \ $(DIROBJ)/strong_coupling.o \ $(DIROBJ)/pion_wavefunction.o \ $(DIROBJ)/pion_emff.o \ $(DIROBJ)/gamma_NN_vertex.o \ $(DIROBJ)/cteq3.o \ $(DIROBJ)/cteq4.o \ $(DIROBJ)/cteq5.o \ $(DIROBJ)/cteq6.o \ $(DIROBJ)/mrs97.o \ $(DIROBJ)/mrs95.o \ $(DIROBJ)/mrs98.o \ $(DIROBJ)/mrst01.o \ $(DIROBJ)/mrst02nnlo.o \ $(DIROBJ)/grv.o CC = cc F77 = f77 #CC = g++ CFLAGS = -O #CFLAGS = -O2 SFLAGS = #LF2C= libf2c.a LFLAGS = -lm -lc # original XOUT = - xout XOUT = DIRBASE = $(HOME)/r2d2/guidal_linux/VGG #DIRBASE = $(HOME)/VGG2/gen/c #DIRBASE = /group/fpi/tanja/VGG2/gen/c #DIRBASE = /users/kphth/marcvdh/c # DIRPROG is the directory of the c program DIRPROG = $(DIRBASE)/cprog/$(DIRBRANCH) # DIROBJ is the parent directory of all the object files DIROBJ = $(DIRBASE)/object # DIRH is the directory of all the header files DIRH = $(DIRBASE)/h DIRH2 = $(DIRH)/hard_elprod # DIREXE is the directory of the executable file DIREXE = $(DIRBASE)/exe/$(DIRBRANCH) # DIRBRANCH is the subdirectory under /cprog and /exe were the \ file can be found DIRBRANCH = hard_elprod # DIRINCL is the parent directory of all the include files DIRINCL = $(DIRBASE)/include DIRINCL2 = $(DIRINCL)/matrixele/hard_elprod # DIRIFOR is the parent directory of all the fortran files DIRFOR= $(DIRBASE)/cprog/fortran # DIRLIB is the directory of the external libraries (i.e., f2c) DIRLIB = $(DIRBASE)/lib # the executable file is made as follows $(DIRPROG)/$(FILE) : $(DIROBJ)/$(FILE).o $(FILEOBJ) $(F77) $(SFLAGS) $(CFLAGS) -o $(DIREXE)/$(FILE) \ -I$(DIRH) -I$(DIRH2) $(FILEOBJ) $(DIROBJ)/$(FILE).o \ $(LFLAGS) chmod u+x $(DIREXE)/$(FILE) # the object file corresponding to the program is made as follows $(DIROBJ)/$(FILE).o : $(DIRPROG)/$(FILE).c $(DIRH)/default.h \ $(DIRH)/complex.h $(DIRH)/vector.h $(DIRH)/four_vector.h \ $(DIRH)/matrix.h $(DIRH)/gamma.h $(DIRH)/angular.h \ $(DIRH)/int.h $(DIRH)/int_complex.h $(DIRH)/gegenbauer.h \ $(DIRH2)/dvcs_parameters.h $(DIRH2)/gamma_NN_vertex.h \ $(DIRH2)/parton_distr.h $(DIRH2)/ofpd.h \ $(DIRH2)/strong_coupling.h $(DIRH2)/pion_wavefunction.h $(CC) $(SFLAGS) $(CFLAGS) -c $(XOUT) -I$(DIRH) -I$(DIRH2) \ $(DIRPROG)/$(FILE).c $(LFLAGS) mv $(FILE).o $(DIROBJ) $(DIROBJ)/complex.o : $(DIRINCL)/math/complex.c $(DIRH)/default.h \ $(DIRH)/complex.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/complex.c $(LFLAGS) mv complex.o $(DIROBJ) $(DIROBJ)/vector.o : $(DIRINCL)/math/vector.c $(DIRH)/default.h \ $(DIRH)/complex.h $(DIRH)/vector.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/vector.c $(LFLAGS) mv vector.o $(DIROBJ) $(DIROBJ)/four_vector.o : $(DIRINCL)/math/four_vector.c $(DIRH)/default.h \ $(DIRH)/complex.h $(DIRH)/vector.h $(DIRH)/four_vector.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/four_vector.c $(LFLAGS) mv four_vector.o $(DIROBJ) $(DIROBJ)/matrix.o : $(DIRINCL)/math/matrix.c $(DIRH)/default.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/matrix.c $(LFLAGS) mv matrix.o $(DIROBJ) $(DIROBJ)/gamma.o : $(DIRINCL)/math/gamma.c $(DIRH)/default.h \ $(DIRH)/gamma.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/gamma.c $(LFLAGS) mv gamma.o $(DIROBJ) $(DIROBJ)/gegenbauer.o : $(DIRINCL)/math/gegenbauer.c $(DIRH)/default.h \ $(DIRH)/gegenbauer.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/gegenbauer.c $(LFLAGS) mv gegenbauer.o $(DIROBJ) $(DIROBJ)/angular.o : $(DIRINCL)/math/angular.c $(DIRH)/default.h \ $(DIRH)/angular.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/angular.c $(LFLAGS) mv angular.o $(DIROBJ) $(DIROBJ)/bessel_mod.o : $(DIRINCL)/math/bessel_mod.c $(DIRH)/default.h \ $(DIRH)/bessel_mod.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/math/bessel_mod.c $(LFLAGS) mv bessel_mod.o $(DIROBJ) $(DIROBJ)/int1d.o : $(DIRINCL)/integr/int1d.c $(DIRH)/default.h \ $(DIRH)/int.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int1d.c $(LFLAGS) mv int1d.o $(DIROBJ) $(DIROBJ)/int2d.o : $(DIRINCL)/integr/int2d.c $(DIRH)/default.h \ $(DIRH)/int.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int2d.c $(LFLAGS) mv int2d.o $(DIROBJ) $(DIROBJ)/int3d.o : $(DIRINCL)/integr/int3d.c $(DIRH)/default.h \ $(DIRH)/int.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int3d.c $(LFLAGS) mv int3d.o $(DIROBJ) $(DIROBJ)/int1dacc.o : $(DIRINCL)/integr/int1dacc.c $(DIRH)/default.h \ $(DIRH)/int.h $(DIRH)/matrix.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int1dacc.c $(LFLAGS) mv int1dacc.o $(DIROBJ) $(DIROBJ)/int_complex.o : $(DIRINCL)/integr/int_complex.c $(DIRH)/default.h \ $(DIRH)/matrix.h $(DIRH)/int.h $(DIRH)/int_complex.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int_complex.c $(LFLAGS) mv int_complex.o $(DIROBJ) $(DIROBJ)/int_montecarlo.o : $(DIRINCL)/integr/int_montecarlo.c \ $(DIRH)/default.h $(DIRH)/int_montecarlo.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) \ $(DIRINCL)/integr/int_montecarlo.c $(LFLAGS) mv int_montecarlo.o $(DIROBJ) $(DIROBJ)/gamma_NN_vertex.o : $(DIRINCL2)/gamma_NN_vertex.c \ $(DIRH)/default.h $(DIRH)/vector.h $(DIRH)/four_vector.h \ $(DIRH2)/dvcs_parameters.h $(DIRH2)/gamma_NN_vertex.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/gamma_NN_vertex.c $(LFLAGS) mv gamma_NN_vertex.o $(DIROBJ) $(DIROBJ)/parton_distr.o : $(DIRINCL2)/parton_distr.c \ $(DIRH)/default.h $(DIRH)/int.h $(DIRH)/matrix.h \ $(DIRH2)/parton_distr.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/parton_distr.c $(LFLAGS) mv parton_distr.o $(DIROBJ) $(DIROBJ)/ofpd.o : $(DIRINCL2)/ofpd.c \ $(DIRH)/default.h $(DIRH)/int.h $(DIRH)/matrix.h \ $(DIRH2)/dvcs_parameters.h $(DIRH2)/gamma_NN_vertex.h \ $(DIRH2)/parton_distr.h $(DIRH2)/ofpd.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/ofpd.c $(LFLAGS) mv ofpd.o $(DIROBJ) $(DIROBJ)/strong_coupling.o : $(DIRINCL2)/strong_coupling.c \ $(DIRH)/default.h $(DIRH)/complex.h \ $(DIRH2)/strong_coupling.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/strong_coupling.c $(LFLAGS) mv strong_coupling.o $(DIROBJ) $(DIROBJ)/pion_wavefunction.o : $(DIRINCL2)/pion_wavefunction.c \ $(DIRH)/default.h $(DIRH)/complex.h \ $(DIRH2)/pion_wavefunction.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/pion_wavefunction.c $(LFLAGS) mv pion_wavefunction.o $(DIROBJ) $(DIROBJ)/pion_emff.o : $(DIRINCL2)/pion_emff.c \ $(DIRH)/default.h $(DIRH)/complex.h $(DIRH)/int.h \ $(DIRH)/bessel_mod.h \ $(DIRH2)/strong_coupling.h $(DIRH2)/pion_wavefunction.h \ $(DIRH2)/pion_emff.h $(CC) $(SFLAGS) $(CFLAGS) -c -I$(DIRH) -I$(DIRH2) \ $(DIRINCL2)/pion_emff.c $(LFLAGS) mv pion_emff.o $(DIROBJ) $(DIROBJ)/cteq3.o : $(DIRFOR)/cteq3.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/cteq3.f mv cteq3.o $(DIROBJ) $(DIROBJ)/cteq4.o : $(DIRFOR)/cteq4.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/cteq4.f mv cteq4.o $(DIROBJ) $(DIROBJ)/cteq5.o : $(DIRFOR)/cteq5.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/cteq5.f mv cteq5.o $(DIROBJ) $(DIROBJ)/cteq6.o : $(DIRFOR)/cteq6.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/cteq6.f mv cteq6.o $(DIROBJ) $(DIROBJ)/mrs95.o : $(DIRFOR)/mrs95.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/mrs95.f mv mrs95.o $(DIROBJ) $(DIROBJ)/mrs97.o : $(DIRFOR)/mrs97.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/mrs97.f mv mrs97.o $(DIROBJ) $(DIROBJ)/mrs98.o : $(DIRFOR)/mrs98.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/mrs98.f mv mrs98.o $(DIROBJ) $(DIROBJ)/mrst01.o : $(DIRFOR)/mrst01.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/mrst01.f mv mrst01.o $(DIROBJ) $(DIROBJ)/mrst02nnlo.o : $(DIRFOR)/mrst02nnlo.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/mrst02nnlo.f mv mrst02nnlo.o $(DIROBJ) $(DIROBJ)/grv.o : $(DIRFOR)/grv.f $(DIRH2)/cfortran.h $(F77) -c $(DIRFOR)/grv.f mv grv.o $(DIROBJ)