forked from OpenCMISS-Dependencies/cellml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
34 lines (25 loc) · 1.09 KB
/
Makefile.common
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
# Original by David Nickerson.
# Changes:
#
#----------------------------------------------------------------------------------------------------------------------------------
MAKEFLAGS = --no-builtin-rules --warn-undefined-variables
SHELL = /bin/bash
#----------------------------------------------------------------------------------------------------------------------------------
ifndef OPENCMISSEXTRAS_ROOT
OPENCMISSEXTRAS_ROOT := ${OPENCMISS_ROOT}/../opencmissextras
CDA_ROOT := $(CURDIR)/../../../..
MAKEINC_ROOT := $(CURDIR)/../../opencmissextras/utils
else
CDA_ROOT := ${OPENCMISSEXTRAS_ROOT}
MAKEINC_ROOT := ${OPENCMISSEXTRAS_ROOT}/utils
endif
include $(MAKEINC_ROOT)/Makefile.inc
ifdef COMPILER_VERSION
BUILD_NAME = $(LIB_ARCH_DIR)$(DEBUG_SUFFIX)$(PROF_SUFFIX)/$(COMPILER)_$(COMPILER_VERSION)
else
BUILD_NAME = $(LIB_ARCH_DIR)$(DEBUG_SUFFIX)$(PROF_SUFFIX)/$(COMPILER)
endif
CDA_DIR = $(CDA_ROOT)/cellml/$(BUILD_NAME)
COMMON_DIR = $(CDA_ROOT)/common/$(BUILD_NAME)
LIBOCCELLML_INSTALL_DIR = $(OPENCMISS_ROOT)/cellml/$(BUILD_NAME)
LIBOCCELLML_BUILD_DIR = $(CURDIR)/build/$(BUILD_NAME)