Merge lp:~maddevelopers/pythia-pgs-for-mg/new_install_cmd into lp:pythia-pgs-for-mg

Proposed by Olivier Mattelaer
Status: Merged
Merged at revision: 6
Proposed branch: lp:~maddevelopers/pythia-pgs-for-mg/new_install_cmd
Merge into: lp:pythia-pgs-for-mg
Diff against target: 170 lines (+28/-10)
9 files modified
PyPGSVersion.txt (+1/-1)
UpdateNotes.txt (+3/-0)
libraries/PGS4/Makefile (+1/-0)
libraries/PGS4/examples/CLEAN/Makefile (+2/-0)
libraries/PGS4/src/stdhep-dir/mcfio/arch_mcfio (+8/-8)
libraries/PGS4/src/stdhep-dir/src/stdhep_Arch (+3/-1)
libraries/pylib/src/Makefile (+2/-0)
src/make_opts (+7/-0)
src/makefile (+1/-0)
To merge this branch: bzr merge lp:~maddevelopers/pythia-pgs-for-mg/new_install_cmd
Reviewer Review Type Date Requested Status
Olivier Mattelaer Pending
Johan Alwall Pending
Review via email: mp+79319@code.launchpad.net

Description of the change

change arch_mcfio in order to follow the same idea as the other makefile
(In the mean time before the change of Johan).

To post a comment you must log in.
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Note that this is not that urgent since
cp3wks05 is already down. (Therefore, we can't update any cluster)

4. By Johan Alwall

Moved all options (FC and -m32/64) to make_opts file in the src/ directory

5. By Johan Alwall

Fixed UpdateNotes

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi johan,

I think that you forget to include the make_opts file.

Could you add it?

Cheers,

Olivier

6. By Johan Alwall

Forgot to include the make_opts file, sorry about that

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'PyPGSVersion.txt'
2--- PyPGSVersion.txt 2011-10-10 19:34:54 +0000
3+++ PyPGSVersion.txt 2011-10-16 12:34:24 +0000
4@@ -1,1 +1,1 @@
5-2.1.11
6+2.1.12
7
8=== modified file 'UpdateNotes.txt'
9--- UpdateNotes.txt 2011-10-10 19:34:54 +0000
10+++ UpdateNotes.txt 2011-10-16 12:34:24 +0000
11@@ -1,5 +1,8 @@
12 Update notes for the Pythia-PGS package used by MadGraph/MadEvent
13
14+2.1.12 (XX/XX/XX) Move FC and -m32/64 definition to separate file
15+ src/make_opts, to allow easy setting once for all makefiles.
16+
17 2.1.11 (06/10/11) PGS is now 10 times faster! (thanks to Junichi)
18
19 2.1.10 (03/10/11) Allow for state-of-the-art matching of processes
20
21=== modified file 'libraries/PGS4/Makefile'
22--- libraries/PGS4/Makefile 2011-10-10 19:34:54 +0000
23+++ libraries/PGS4/Makefile 2011-10-16 12:34:24 +0000
24@@ -7,6 +7,7 @@
25 # -----------------------------------------------------------------
26 # General definitions
27 # -----------------------------------------------------------------
28+include ../../src/make_opts
29
30 MAKE=make
31 COMPILE=$(FC)
32
33=== modified file 'libraries/PGS4/examples/CLEAN/Makefile'
34--- libraries/PGS4/examples/CLEAN/Makefile 2011-10-10 19:34:54 +0000
35+++ libraries/PGS4/examples/CLEAN/Makefile 2011-10-16 12:34:24 +0000
36@@ -1,4 +1,6 @@
37 # -----------------------------------------------------------------
38+include ../../../../src/make_opts
39+
40 MAKE=make
41 COMPILE=$(FC)
42 ifeq "$(COMPILE)" ""
43
44=== modified file 'libraries/PGS4/src/stdhep-dir/mcfio/arch_mcfio'
45--- libraries/PGS4/src/stdhep-dir/mcfio/arch_mcfio 2011-10-10 19:34:54 +0000
46+++ libraries/PGS4/src/stdhep-dir/mcfio/arch_mcfio 2011-10-16 12:34:24 +0000
47@@ -2,11 +2,17 @@
48 # architecture specific information for StdHep makefiles
49 #
50
51+include ../../../../../../src/make_opts
52+
53 SUNAME = $(shell uname | sed s/[_-].*//)
54
55+F77 =$(FC)
56+ifeq "$(F77)" ""
57+ F77= g77
58+endif
59+
60 ifeq "$(SUNAME)" "CYGWIN"
61 CC=gcc
62- F77=g77
63 CFLAGS= $(DFLG) -I/usr/X11R6/include
64 FFLAGS= $(DFLG) -fno-second-underscore
65 MXTLIBS = -L/usr/X11R6/lib -L/usr/lib -lg2c -lXm -lrpc -lX11 -lXt \
66@@ -32,21 +38,18 @@
67
68 ifeq "$(UNAME)" "IRIX"
69 CC=cc
70- F77=f77
71 CFLAGS= $(DFLG)
72 FFLAGS= $(DFLG)
73 MXTLIBS = -lXm -lXt -lX11 -lPW -lm
74 endif
75 ifeq "$(UNAME)" "IRIX64"
76 CC=cc
77- F77=f77
78 CFLAGS= $(DFLG) -n32 -mips3
79 FFLAGS= $(DFLG) -n32 -mips3
80 MXTLIBS = -lXm -lXt -lX11 -lPW -lm
81 endif
82 ifeq "$(UNAME)" "Linux"
83 CC=gcc
84- F77=g77
85 CFLAGS= $(DFLG) -I/usr/X11R6/include
86 FFLAGS= $(DFLG) -fno-second-underscore
87 MXTLIBS = -L/usr/X11R6/lib -lXm -lX11 -lXt -lXp -lXext -lm
88@@ -57,14 +60,12 @@
89 ifeq "$(UNAME)" "Darwin"
90 CC=gcc
91 CPP=gcc
92- F77=g77
93- CFLAGS= $(DFLG) -I/usr/X11R6/include -m32
94+ CFLAGS= $(DFLG) -I/usr/X11R6/include -m$(MBITS)
95 FFLAGS= $(DFLG) -fno-second-underscore
96 LOCAL = -lSystem -ldl
97 endif
98 ifeq "$(UNAME)" "OSF1"
99 CC=cc
100- F77=f77
101 CFLAGS= $(DFLG)
102 FFLAGS= $(DFLG) -fpe2 -check underflow -check overflow
103 MXTLIBS = -lXm -lXt -lX11 -lm -lfor -lots
104@@ -72,7 +73,6 @@
105 endif
106 ifeq "$(UNAME)" "SunOS"
107 CC=/opt/SUNWspro/bin/cc
108- F77=f77
109 CFLAGS= $(DFLG) -I/usr/openwin/include -I/usr/dt/include -DMOTIF12
110 FFLAGS= $(DFLG)
111 MXTLIBS = -L/usr/openwin/lib -L/usr/dt/lib -lm -lXm -lXt -lX11 -lgen \
112
113=== modified file 'libraries/PGS4/src/stdhep-dir/src/stdhep_Arch'
114--- libraries/PGS4/src/stdhep-dir/src/stdhep_Arch 2011-10-10 19:34:54 +0000
115+++ libraries/PGS4/src/stdhep-dir/src/stdhep_Arch 2011-10-16 12:34:24 +0000
116@@ -2,6 +2,8 @@
117 # architecture specific information for StdHep makefiles
118 #
119
120+include ../../../../../../src/make_opts
121+
122 SUNAME = $(shell uname | sed s/[_-].*//)
123
124 ifeq "$(FC)" ""
125@@ -66,7 +68,7 @@
126 ifeq "$(UNAME)" "Darwin"
127 CC=gcc
128 CPP=gcc -E
129- CFLAGS= $(DFLG) -I/sw/include -m32
130+ CFLAGS= $(DFLG) -I/sw/include -m$(MBITS)
131 FFLAGS= $(DFLG) -fno-second-underscore
132 KPPFLAGS= -C -P -DLinux -DUNIX
133 LOCAL = -lSystem -lcc_dynamic -ldl
134
135=== modified file 'libraries/pylib/src/Makefile'
136--- libraries/pylib/src/Makefile 2011-10-10 19:34:54 +0000
137+++ libraries/pylib/src/Makefile 2011-10-16 12:34:24 +0000
138@@ -1,6 +1,8 @@
139 SRCS := $(wildcard *.f)
140 OBJS = ${SRCS:.f=.o}
141
142+include ../../../src/make_opts
143+
144 FF = $(FC)
145 ifeq "$(FC)" ""
146 FF = g77
147
148=== added file 'src/make_opts'
149--- src/make_opts 1970-01-01 00:00:00 +0000
150+++ src/make_opts 2011-10-16 12:34:24 +0000
151@@ -0,0 +1,7 @@
152+# Set FC unless it's defined by an environment variable
153+ifeq ($(origin FC),default)
154+ FC=g77
155+endif
156+
157+# Set MBITS to the number of bits used by the system (used for Darwin)
158+MBITS=32
159
160=== modified file 'src/makefile'
161--- src/makefile 2011-10-10 19:34:54 +0000
162+++ src/makefile 2011-10-16 12:34:24 +0000
163@@ -4,6 +4,7 @@
164 LHAPDF = ../libraries/lhapdf
165 THISDIR = ${PWD}
166
167+include make_opts
168 UNAME = $(shell uname)
169 SUNAME = $(shell uname | sed s/[_-].*//)
170 ifeq "$(SUNAME)" "CYGWIN"

Subscribers

People subscribed via source and target branches