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