-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile.mk
48 lines (37 loc) · 1.14 KB
/
Makefile.mk
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
##############################################################################
#
# Makefile.mk
#
# This Makefile gets included in all Makefiles in this directory,
# and relevant subdirectories.
#
# Please copy one configuration file from the ./config
# directory to this directory (top level Ludwig directory)
# and make any appropriate changes for your platform.
#
# No changes should be required in this file itself.
#
# Edinburgh Soft Matter and Statistical Physics Group and
# Edinburgh Parallel Computing Centre
#
# (c) 2015-2018 The University of Edinburgh
#
# Contributing authors:
# Kevin Stratford ([email protected])
#
##############################################################################
ROOT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(ROOT_DIR)/config.mk
# TargetDP library
TARGET_INC_PATH = -I$(ROOT_DIR)./target
TARGET_LIB_PATH =
TARGET_LIB = $(ROOT_DIR)./target/libtarget.a
# Serial stubs required in serial
ifneq ("$(BUILD)","serial")
MY_BUILD = "parallel version"
else
MY_BUILD = "serial version"
MPI_INC_PATH = -I$(ROOT_DIR)./mpi_s
MPI_LIB_PATH = -L$(ROOT_DIR)./mpi_s
MPI_LIB = -lmpi
endif