source: PSPA/madxPSPA/make/linker.icc @ 463

Last change on this file since 463 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 - icc 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) -O$(NOPT) -static-intel -static-libgcc
24LDLIBS  =
25
26ifeq ($(OSTYPE),Darwin)
27LDFLAGS += -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
28endif
29
30#
31# options flags
32#
33
34ifeq ($(DEBUG),yes)
35LDFLAGS += -g -gdwarf-2
36endif
37
38ifeq ($(PROFILE),yes)
39LDFLAGS += -p
40endif
41
42ifeq ($(STATIC),yes) # build static library
43LDFLAGS += -static$(if $(call eq,$(OSTYPE),Darwin),lib,)
44endif
45
46ifeq ($(SHARED),yes) # build shared library
47LDFLAGS += $(if $(call eq,$(OSTYPE),Darwin),-dynamiclib,-shared)
48endif
49
50ifeq ($(PLUGIN),yes) # allow to load dynamically shared library (plugin)
51LDFLAGS += -Bdynamic
52LDLIBS  += -ldl
53endif
54
55# end of makefile
Note: See TracBrowser for help on using the repository browser.