source: PSPA/madxPSPA/make/linker.nagfor @ 447

Last change on this file since 447 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 854 bytes
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
23LDFLAGS = -O$(NOPT)
24LDLIBS  =
25
26ifeq ($(ARCH),32)
27LDFLAGS += -Wl,-m32 -abi=32
28endif
29
30ifneq ($(CXXNAME),)
31LDLIBS += -lstdc++
32endif
33
34#
35# options flags
36#
37
38ifeq ($(DEBUG),yes)
39LDFLAGS += -g -C=all -nan # -mtrace=size,line
40endif
41
42ifeq ($(PROFILE),yes)
43LDFLAGS += -pg
44endif
45
46ifeq ($(STATIC),yes)
47LDFLAGS += -Bstatic
48endif
49
50ifeq ($(PLUGIN),yes)
51LDFLAGS += -rdynamic
52LDLIBS  += -ldl
53endif
54
55# end of makefile
Note: See TracBrowser for help on using the repository browser.