~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/iolibs/template_files/madevent_makefile_source

  • Committer: olivier Mattelaer
  • Date: 2015-03-05 00:14:16 UTC
  • mfrom: (258.1.9 2.3)
  • mto: (258.8.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: olivier.mattelaer@uclouvain.be-20150305001416-y9mzeykfzwnl9t0j
partial merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
LIBDIR= ../lib/
4
4
BINDIR= ../bin/internal/
5
5
PDFDIR= ./PDF/
 
6
CUTTOOLSDIR= ./CutTools/
 
7
IREGIDIR= ./IREGI/src/
6
8
 
7
9
include make_opts
8
10
 
9
11
# Source files
10
12
 
11
13
PROCESS= hfill.o matrix.o myamp.o 
12
 
DSAMPLE = dsample.o ranmar.o 
 
14
DSAMPLE = dsample.o ranmar.o DiscreteSampler.o StringCast.o
13
15
HBOOK = hfill.o hcurve.o hbook1.o hbook2.o
14
16
GENERIC = $(alfas_functions).o transpole.o invarients.o hfill.o pawgraphs.o ran1.o \
15
17
          rw_events.o rw_routines.o kin_functions.o open_file.o basecode.o setrun.o \
43
45
$(LIBDIR)libpdf.$(libext): PDF
44
46
        cd PDF; make    
45
47
$(LIBDIR)libcernlib.$(libext): CERNLIB
46
 
        cd CERNLIB; make        
 
48
        cd CERNLIB; make
47
49
%(model)s
48
50
 
49
51
$(BINDIR)gen_ximprove: gen_ximprove.o ranmar.o rw_routines.o open_file.o 
55
57
 
56
58
# Dependencies
57
59
 
58
 
dsample.o: dsample.f genps.inc
 
60
dsample.o: DiscreteSampler.o dsample.f genps.inc
 
61
DiscreteSampler.o: StringCast.o
59
62
invarients.o: invarients.f genps.inc
60
63
setrun.o: setrun.f nexternal.inc leshouche.inc genps.inc
61
64
gen_ximprove.o: gen_ximprove.f run_config.inc run_card.inc
72
75
        rm -f ../lib/libpdf.$(libext)
73
76
        rm -f ../lib/libgeneric.$(libext)
74
77
 
 
78
cleanCT:
 
79
        cd $(CUTTOOLSDIR); make clean; cd ..
 
80
 
 
81
cleanIR:
 
82
        cd $(IREGIDIR); make clean; cd ..
 
83
 
 
84
IREGI: $(LIBDIR)libiregi.a
 
85
 
 
86
CutTools: $(LIBDIR)libcts.a
 
87
 
 
88
$(LIBDIR)libcts.a: $(CUTTOOLSDIR)
 
89
        cd $(CUTTOOLSDIR); make
 
90
        ln -sf ../Source/$(CUTTOOLSDIR)includects/libcts.a $(LIBDIR)libcts.a
 
91
        ln -sf ../Source/$(CUTTOOLSDIR)includects/mpmodule.mod $(LIBDIR)mpmodule.mod
 
92
 
 
93
$(LIBDIR)libiregi.a: $(IREGIDIR)
 
94
        cd $(IREGIDIR); make
 
95
        ln -sf ../Source/$(IREGIDIR)libiregi.a $(LIBDIR)libiregi.a
 
96
 
75
97
clean:
76
98
        $(RM) *.o $(LIBRARIES) $(BINARIES)
77
99
        cd PDF; make clean; cd ..
78
100
        cd DHELAS; make clean; cd ..
79
101
        cd CERNLIB; make clean; cd ..
80
102
        cd MODEL; make clean; cd ..
 
103
        if [ -d $(CUTTOOLSDIR) ]; then cd $(CUTTOOLSDIR); make clean; cd ..; fi
 
104
        if [ -d $(IREGIDIR) ]; then cd $(IREGIDIR); make clean; cd ..; fi
 
105
        for i in `ls -d ../SubProcesses/P*`; do cd $$i; make clean; cd -; done;