Line | |
---|
1 | # | |
---|
2 | # o---------------------------------------------------------------------o |
---|
3 | # | |
---|
4 | # | MAD makefile - nagfor linker settings |
---|
5 | # | |
---|
6 | # o---------------------------------------------------------------------o |
---|
7 | # | |
---|
8 | # | Methodical Accelerator Design |
---|
9 | # | |
---|
10 | # | Copyright (c) 2011+ CERN, mad@cern.ch |
---|
11 | # | |
---|
12 | # | For more information, see http://cern.ch/mad |
---|
13 | # | |
---|
14 | # o---------------------------------------------------------------------o |
---|
15 | # | |
---|
16 | # | $Id$ |
---|
17 | # | |
---|
18 | |
---|
19 | # |
---|
20 | # linker flags |
---|
21 | # |
---|
22 | |
---|
23 | LDFLAGS = -O$(NOPT) |
---|
24 | LDLIBS = |
---|
25 | |
---|
26 | ifeq ($(ARCH),32) |
---|
27 | LDFLAGS += -Wl,-m32 -abi=32 |
---|
28 | endif |
---|
29 | |
---|
30 | ifneq ($(CXXNAME),) |
---|
31 | LDLIBS += -lstdc++ |
---|
32 | endif |
---|
33 | |
---|
34 | # |
---|
35 | # options flags |
---|
36 | # |
---|
37 | |
---|
38 | ifeq ($(DEBUG),yes) |
---|
39 | LDFLAGS += -g -C=all -nan # -mtrace=size,line |
---|
40 | endif |
---|
41 | |
---|
42 | ifeq ($(PROFILE),yes) |
---|
43 | LDFLAGS += -pg |
---|
44 | endif |
---|
45 | |
---|
46 | ifeq ($(STATIC),yes) |
---|
47 | LDFLAGS += -Bstatic |
---|
48 | endif |
---|
49 | |
---|
50 | ifeq ($(PLUGIN),yes) |
---|
51 | LDFLAGS += -rdynamic |
---|
52 | LDLIBS += -ldl |
---|
53 | endif |
---|
54 | |
---|
55 | # end of makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.