~maddevelopers/mg5amcnlo/WWW5_caching

« back to all changes in this revision

Viewing changes to users/mardelcourt/PROC_141512/PROC_141512/Source/MODEL/makefile

  • Committer: John Doe
  • Date: 2013-03-25 20:27:02 UTC
  • Revision ID: john.doe@gmail.com-20130325202702-5sk3t1r8h33ca4p4
first clean version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ----------------------------------------------------------------------------
 
2
#
 
3
# Makefile for model library
 
4
#
 
5
# ----------------------------------------------------------------------------
 
6
 
 
7
# Check for ../make_opts
 
8
ifeq ($(wildcard ../make_opts), ../make_opts)
 
9
  include ../make_opts
 
10
else
 
11
  FFLAGS+= -ffixed-line-length-132
 
12
  FC=gfortran
 
13
endif
 
14
 
 
15
include makeinc.inc
 
16
 
 
17
LIBDIR=../../lib/
 
18
LIBRARY=libmodel.$(libext)
 
19
 
 
20
all: $(LIBDIR)$(LIBRARY) ../param_card.inc
 
21
 
 
22
rw_para.o: ../param_card.inc 
 
23
        $(FC) $(FFLAGS) -c -o rw_para.o rw_para.f
 
24
 
 
25
../param_card.inc: ../../Cards/param_card.dat
 
26
        ../../bin/madevent treatcards param
 
27
helas_couplings: helas_couplings.o $(LIBRARY)
 
28
        $(FC) $(FFLAGS) -o $@ $^
 
29
 
 
30
testprog: testprog.o $(LIBRARY)
 
31
        $(FC) $(FFLAGS) -o $@ $^
 
32
 
 
33
$(LIBRARY): $(MODEL)
 
34
        ar cru $(LIBRARY) $(MODEL)
 
35
        ranlib $(LIBRARY)
 
36
 
 
37
$(LIBDIR)$(LIBRARY): $(MODEL)
 
38
        $(call CREATELIB, $@, $^)
 
39
 
 
40
clean: 
 
41
        $(RM) *.o $(LIBDIR)$(LIBRARY)
 
42