-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
65 lines (57 loc) · 2.47 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
###############################################################################
################### 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
#
###############################################################################
MOOSE_DIR ?= $(shell dirname `pwd`)/../moose
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
CHEMICAL_REACTIONS := no
CONTACT := no
FLUID_PROPERTIES := no
HEAT_CONDUCTION := no
MISC := no
NAVIER_STOKES := no
PHASE_FIELD := no
RDG := no
RICHARDS := no
SOLID_MECHANICS := no
STOCHASTIC_TOOLS := no
TENSOR_MECHANICS := no
WATER_STEAM_EOS := no
XFEM := no
POROUS_FLOW := no
LEVEL_SET := no
include $(MOOSE_DIR)/modules/modules.mk
###############################################################################
# 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 := deer
include $(FRAMEWORK_DIR)/app.mk
APPLICATION_DIR := $(CURRENT_DIR)
APPLICATION_NAME := deer-unit
BUILD_EXEC := yes
DEP_APPS ?= $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME))
include $(FRAMEWORK_DIR)/app.mk
# Find all the Deer unit test source files and include their dependencies.
deer_unit_srcfiles := $(shell find $(MOOSE_DIR)/unit/src -name "*.C")
deer_unit_deps := $(patsubst %.C, %.$(obj-suffix).d, $(deer_unit_srcfiles))
-include $(deer_unit_deps)
###############################################################################
# Additional special case targets should be added here