~maddevelopers/mg5amcnlo/3.0.2-alpha0

« back to all changes in this revision

Viewing changes to Template/Source/makefile

Added Template and HELAS into bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
F77   = f77
 
2
FFLAGS= -O -ffixed-line-length-132
 
3
#FFLAGS= -O 
 
4
LIBDIR= ../lib/
 
5
BINDIR= ../bin/
 
6
PDFDIR= ./PDF/
 
7
 
 
8
PROCESS= hfill.o matrix.o myamp.o 
 
9
 
 
10
DSAMPLE = dsample.o ranmar.o 
 
11
 
 
12
HBOOK = hfill.o hcurve.o hbook1.o hbook2.o
 
13
 
 
14
GENERIC = alfas_functions.o transpole.o invarients.o hfill.o pawgraphs.o ran1.o rw_events.o rw_routines.o kin_functions.o open_file.o basecode.o setrun.o run_printout.o \
 
15
          dgauss.o readgrid.o getissud.o
 
16
 
 
17
INCLUDEF= coupl.inc genps.inc hbook.inc DECAY/decay.inc psample.inc cluster.inc sudgrid.inc
 
18
 
 
19
BANNER  =  write_banner.o  rw_events.o ranmar.o  kin_functions.o open_file.o  rw_routines.o alfas_functions.o
 
20
 
 
21
COMBINE = combine_events.o  rw_events.o ranmar.o  kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o
 
22
 
 
23
GENSUDGRID = gensudgrid.o is-sud.o setrun_gen.o rw_routines.o open_file.o
 
24
 
 
25
# $B$ add_def $E$ !this is a tag for add library GENERIC_MW  in MadWeight compilation
 
26
 
 
27
 
 
28
.f.o: ; $(F77) $(FFLAGS) -c $*.f
 
29
 
 
30
# $B$ mod_all $B$ !this is a tag for modify main compilation in MadWeight compilation. Don't edit this line
 
31
all: $(LIBDIR)libdhelas3.a $(LIBDIR)libdsample.a $(LIBDIR)libgeneric.a $(LIBDIR)libpdf.a  $(LIBDIR)libmodel.a $(LIBDIR)libcernlib.a
 
32
# $E$ mod_all $E$ !this is a tag for modify main compilation in MadWeight compilation. Don't edit this line
 
33
 
 
34
scaled.dat:
 
35
        combine_events
 
36
 
 
37
#$(BINDIR)write_banner:  $(BANNER) 
 
38
#       $(F77) $(FFLAGS) -o write_banner $(BANNER) $(LIBDIR)/libmodel.a $(LIBDIR)/libpdf.a 
 
39
#       mv write_banner $(BINDIR)
 
40
 
 
41
#$(BINDIR)scale_events: scale_events.o rw_events.o
 
42
#       $(F77) $(FFLAGS) -o scale_events scale_events.o rw_events.o
 
43
#       mv scale_events $(BINDIR)
 
44
 
 
45
#$(BINDIR)select_events: select_events.o rw_events.o
 
46
#       $(F77) $(FFLAGS) -o select_events select_events.o rw_events.o
 
47
#       mv select_events $(BINDIR)
 
48
 
 
49
$(BINDIR)sum_html: sum_html.o 
 
50
        $(F77) $(FFLAGS) -o sum_html sum_html.o   
 
51
        mv sum_html $(BINDIR)
 
52
 
 
53
$(LIBDIR)libdhelas3.a: DHELAS
 
54
        cd DHELAS; make
 
55
        ranlib libdhelas3.a
 
56
        mv libdhelas3.a $(LIBDIR)
 
57
 
 
58
$(LIBDIR)libdsample.a: $(DSAMPLE)
 
59
        ar cru libdsample.a $(DSAMPLE)
 
60
        ranlib libdsample.a
 
61
        mv libdsample.a $(LIBDIR)
 
62
 
 
63
$(LIBDIR)libgeneric.a: $(GENERIC)
 
64
        ar cru libgeneric.a $(GENERIC)
 
65
        ranlib libgeneric.a
 
66
        mv libgeneric.a $(LIBDIR)
 
67
 
 
68
 
 
69
$(LIBDIR)libpdf.a: PDF
 
70
        cd PDF; make    
 
71
 
 
72
$(LIBDIR)libcernlib.a: CERNLIB
 
73
        cd CERNLIB; make        
 
74
 
 
75
$(LIBDIR)libmodel.a: MODEL
 
76
        cd MODEL; make  
 
77
 
 
78
# $B$ add_compile $E$ !this is a tag for add library in MadWeight compilation
 
79
 
 
80
dsample.o: dsample.f genps.inc
 
81
setrun.o: setrun.f nexternal.inc leshouche.inc
 
82
 
 
83
$(BINDIR)gen_ximprove: gen_ximprove.o ranmar.o rw_routines.o open_file.o
 
84
        $(F77) $(FFLAGS) -o gen_ximprove gen_ximprove.o ranmar.o rw_routines.o open_file.o
 
85
        mv gen_ximprove $(BINDIR)
 
86
 
 
87
$(BINDIR)combine_events: $(COMBINE)
 
88
        $(F77) $(FFLAGS) -o combine_events $(COMBINE) $(LIBDIR)libmodel.a $(LIBDIR)libpdf.a 
 
89
        mv combine_events $(BINDIR)
 
90
 
 
91
$(BINDIR)gensudgrid: $(GENSUDGRID) $(LIBDIR)libpdf.a $(LIBDIR)libcernlib.a
 
92
        $(F77) $(FFLAGS) -o gensudgrid $^
 
93
        mv gensudgrid $(BINDIR)
 
94