source: PSPA/madxPSPA/make/linker.g95 @ 445

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

import madx-5.01.00

File size: 1023 bytes
Line 
1# |
2# o---------------------------------------------------------------------o
3# |
4# | MAD makefile - g95 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)
24LDLIBS  =
25
26# attemp to find the gnu libs directory for g95 (GCC only)
27LDLIBS += -L$(GNULIBDIR)
28
29ifneq ($(CXXNAME),)
30  LDLIBS += -lstdc++
31endif
32
33ifeq ($(STATIC),yes)
34  LDLIBS += -lc -lgcc_eh -lgcc
35endif
36
37ifeq ($(OSTYPE),Darwin)
38LDLIBS += -lSystemStubs
39endif
40
41#
42# options flags
43#
44
45ifeq ($(DEBUG),yes)
46LDFLAGS += -g
47endif
48
49ifeq ($(PROFILE),yes)
50LDFLAGS += -pg
51endif
52
53ifeq ($(STATIC),yes)
54LDFLAGS += -static
55endif
56
57ifeq ($(SHARED),yes)
58LDFLAGS += -shared
59endif
60
61ifeq ($(PLUGIN),yes)
62LDFLAGS += -rdynamic
63LDLIBS  += -ldl
64endif
65
66# end of makefile
Note: See TracBrowser for help on using the repository browser.