-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile_win
113 lines (91 loc) · 3.24 KB
/
Makefile_win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# |
# o---------------------------------------------------------------------o
# |
# | MAD makefile - post-makefile Windows customization
# |
# o---------------------------------------------------------------------o
# |
# | Methodical Accelerator Design
# |
# | Copyright (c) 2011+ CERN, [email protected]
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
#
# all
#
all-win-gnu: all-win64-gnu all-win32-gnu
all-win-intel: all-win64-intel all-win32-intel
all-win32-gnu: madx-win32-gnu numdiff-win32-gnu
all-win64-gnu: madx-win64-gnu numdiff-win64-gnu
all-win32-intel: madx-win32-intel numdiff-win32-intel
all-win64-intel: madx-win64-intel numdiff-win64-intel
#
# cleanbuild platform specific
#
cleanarch:
$E "** Cleaning binaries and libraries"
$_ $(RM) $(wildcard madx32.exe madx64.exe numdiff32.exe numdiff64.exe)
$_ $(RM) $(wildcard madx-win* numdiff-win* libs/gc/libgc*.a)
#
# madx
#
madx-win-gnu: madx-win64-gnu madx-win32-gnu
madx-win-intel: madx-win64-intel madx-win32-intel
madx-win%: MAKE_ARGS = PRJNAME=$@ DESTDIR=$(DESTDIR) ONLINE=no STATIC=yes USEGC=yes APPENDLD=yes X11=no
madx-win%: MAKE_OPTS = -j9 $(MAKEARGS)
madx-win%: MAKE_LINK = ln -sf $(DESTDIR)[email protected] && ln -sf [email protected]
madx-win32-gnu: libs/gc/libgc-win32-gnu.a
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=32 COMP=gnu && $(MAKE_LINK) madx32.exe
madx-win64-gnu: libs/gc/libgc-win64-gnu.a
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=64 COMP=gnu && $(MAKE_LINK) madx64.exe
madx-win32-intel: libs/gc/libgc-win32-intel.a
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=32 COMP=intel && $(MAKE_LINK) madx32.exe
madx-win64-intel: libs/gc/libgc-win64-intel.a
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=64 COMP=intel && $(MAKE_LINK) madx64.exe
#
# libgc
#
libs/gc/libgc-win%: MAKE_OPTS = -j9 --no-print-directory -C libs/gc
libs/gc/libgc-win32-gnu.a:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_OPTS) libgc-win32-gnu
libs/gc/libgc-win64-gnu.a:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_OPTS) libgc-win64-gnu
libs/gc/libgc-win32-intel.a:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_OPTS) libgc-win32-intel
libs/gc/libgc-win64-intel.a:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_OPTS) libgc-win64-intel
#
# numdiff
#
numdiff-win-gnu: numdiff-win64-gnu numdiff-win32-gnu
numdiff-win-intel: numdiff-win64-intel numdiff-win32-intel
numdiff-win%: DESTDIR := $(DESTDIR)tools/numdiff/
numdiff-win%: MAKE_ARGS = PRJNAME=$@ DESTDIR=../../$(DESTDIR) STATIC=yes APPENDLD=yes
numdiff-win%: MAKE_OPTS = -j9 --no-print-directory -C tools/numdiff $(MAKEARGS)
numdiff-win%: MAKE_LINK = ln -sf $(DESTDIR)[email protected] && ln -sf [email protected]
numdiff-win32-gnu:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=32 COMP=gnu && $(MAKE_LINK) numdiff32.exe
numdiff-win64-gnu:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=64 COMP=gnu && $(MAKE_LINK) numdiff64.exe
numdiff-win32-intel:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=32 COMP=intel && $(MAKE_LINK) numdiff32.exe
numdiff-win64-intel:
$E "*** Building $@"
$_ $(MAKE) $(MAKE_ARGS) $(MAKE_OPTS) ARCH=64 COMP=intel && $(MAKE_LINK) numdiff64.exe
# end of makefile