-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (63 loc) · 1.61 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Define VPATH
VPATH ?= $(shell pwd)
# the default target
.PHONY: default
default: lib
# the all target
.PHONY: all
all: static shared
# SMEKASETTINGS (DO NOT DELETE)
# DO NOT CHANGE CONTENT IN THIS BLOCK
# IT MAY BE OVERWRITTEN WHEN REINSTALLING SMEKA
#
# This Makefile was created by smeka:
# github.com/zerothi/smeka
# Top-directory of Makefile/source tree
# If need set, do so ABOVE this block!
TOP_DIR ?= .
# Directory of smeka default Makefiles
SMEKA_DIR = smeka
# Include the smeka settings!
include $(TOP_DIR)/$(SMEKA_DIR)/Makefile.smeka
# SMEKAENDSETTINGS (DO NOT DELETE)
#### MPI
MPI ?= 0
ifneq ($(MPI),0)
# Define the mpi flag
# the BUD_MPI should now retain the MPI standard
# I.e. =1, =2, =3, etc.
FPPFLAGS += -DBUD_MPI=$(MPI)
CC := $(MPICC)
CXX := $(MPICXX)
FC := $(MPIFC)
endif
#### Object-Oriented
OO ?= 0
ifneq ($(OO),0)
FPPFLAGS += -DBUD_FORTRAN=2003
endif
# Include the makefile in the source directories:
# ./src
include $(TOP_DIR)/src/Makefile.inc
# We add all plugins that is defined in the
# setup.make file (or on the command-line)
ifdef PLUGINS
$(eval orig_TOP_DIR:=$(TOP_DIR))\
$(foreach plugin,$(PLUGINS),\
$(eval TOP_DIR:=$(TOP_DIR)/plugins/$(plugin)/)\
$(eval include $(TOP_DIR)/Makefile.plugin))
$(eval TOP_DIR:=$(orig_TOP_DIR))
endif
# Define that this is *not* a plugin
IS_PLUGIN := 0
# The linker is a fortran compiler
LINK := $(FC)
# Libraries depend on the objects
$(LIBRARIES): $(OBJECTS)
# Create target
lib: $(LIBRARIES)
# Create target
source: source-src
# Include the makefile in the test source directories:
# ./src/test
-include $(TOP_DIR)/src/test/Makefile.inc