-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathMakefile
74 lines (63 loc) · 2.63 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
###############################################################################
################### MOOSE Application Standard Makefile #######################
###############################################################################
#
# Required Environment variables (one of the following)
# PACKAGES_DIR - Location of the MOOSE redistributable package
#
# Optional Environment variables
# MOOSE_DIR - Root directory of the MOOSE project
# FRAMEWORK_DIR - Location of the MOOSE framework
#
###############################################################################
# Use the MOOSE submodule if it exists and MOOSE_DIR is not set
MOOSE_SUBMODULE := $(CURDIR)/../moose
ifneq ($(wildcard $(MOOSE_SUBMODULE)/framework/Makefile),)
MOOSE_DIR ?= $(MOOSE_SUBMODULE)
else
MOOSE_DIR ?= $(shell dirname `pwd`)/../moose
endif
FRAMEWORK_DIR ?= $(MOOSE_DIR)/framework
###############################################################################
# framework
include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk
################################## MODULES ####################################
# set desired physics modules equal to 'yes' to enable them
ALL_MODULES := no
CHEMICAL_REACTIONS := no
CONTACT := yes
FLUID_PROPERTIES := no
HEAT_CONDUCTION := yes
MISC := yes
NAVIER_STOKES := no
PHASE_FIELD := no
RDG := no
RICHARDS := no
STOCHASTIC_TOOLS := yes
SOLID_MECHANICS := yes
WATER_STEAM_EOS := no
XFEM := yes
POROUS_FLOW := no
include $(MOOSE_DIR)/modules/modules.mk
###############################################################################
BLACKBEAR_DIR := $(CURDIR)/..
# Extra stuff for GTEST
ADDITIONAL_INCLUDES := -I$(FRAMEWORK_DIR)/contrib/gtest
ADDITIONAL_LIBS := $(FRAMEWORK_DIR)/contrib/gtest/libgtest.la
# dep apps
CURRENT_DIR := $(shell pwd)
APPLICATION_DIR := $(CURRENT_DIR)/..
APPLICATION_NAME := blackbear
include $(FRAMEWORK_DIR)/app.mk
APPLICATION_DIR := $(CURRENT_DIR)
APPLICATION_NAME := blackbear-unit
BUILD_EXEC := yes
DEP_APPS ?= $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME))
include $(FRAMEWORK_DIR)/app.mk
# Find all the BlackBear unit test source files and include their dependencies.
blackbear_unit_srcfiles := $(shell find $(CURRENT_DIR)/src -name "*.C")
blackbear_unit_deps := $(patsubst %.C, %.$(obj-suffix).d, $(blackbear_unit_srcfiles))
-include $(blackbear_unit_deps)
###############################################################################
# Additional special case targets should be added here