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