source: PSPA/madxPSPA/make/linker.gfortran @ 430

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

import madx-5.01.00

File size: 1.1 KB
Line 
1# |
2# o---------------------------------------------------------------------o
3# |
4# | MAD makefile - gfortran 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 = -m$(ARCH) -O3
24LDLIBS  =
25
26ifeq ($(OSTYPE),Darwin)
27###LDFLAGS += -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -Wl,-no_compact_unwind
28LDFLAGS += -mmacosx-version-min=10.5 -Wl,-no_compact_unwind
29endif
30
31ifneq ($(CXXNAME),)
32LDLIBS += -lstdc++
33#LDLIBS += -lstdc++$(if $(call eq,$(OSTYPE),Darwin),-static,)
34endif
35
36#
37# options flags
38#
39
40ifeq ($(DEBUG),yes)
41LDFLAGS += -g -ggdb
42endif
43
44ifeq ($(PROFILE),yes)
45LDFLAGS += -pg
46endif
47
48ifeq ($(STATIC),yes)
49LDFLAGS += -static
50endif
51
52ifeq ($(SHARED),yes)
53LDFLAGS += -shared
54endif
55
56ifeq ($(PLUGIN),yes)
57LDFLAGS += -rdynamic
58LDLIBS  += -ldl
59endif
60
61# end of makefile
Note: See TracBrowser for help on using the repository browser.