Makefile 2.21 KB
Newer Older
Cody Permann's avatar
Cody Permann committed
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
###############################################################################
################### MOOSE Application Standard Makefile #######################
###############################################################################
#
# Optional Environment variables
# MOOSE_DIR     - Root directory of the MOOSE project
# FRAMEWORK_DIR - Location of the MOOSE framework
#
###############################################################################
EXAMPLE_DIR        ?= $(shell dirname `pwd`)
MOON_DIR           ?= $(shell dirname $(EXAMPLE_DIR))
MOOSE_DIR          ?= $(MOON_DIR)/moose
FRAMEWORK_DIR      ?= $(MOOSE_DIR)/framework
###############################################################################

# framework
include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk

################################## MODULES ####################################
SOLID_MECHANICS   := yes
CONTACT           := yes
HEAT_CONDUCTION   := yes
WATER_STEAM_EOS   := yes
MISC              := yes
PHASE_FIELD       := yes
XFEM              := yes
include           $(MOOSE_DIR)/modules/modules.mk
###############################################################################

# nek
NEK_SOURCE_DIR     := $(MOON_DIR)/Nek5000
NEK_CASE_DIR       := $(CURDIR)
NEK_CASENAME       := $(shell basename $(NEK_CASE_DIR))
NEK_OBJ            := obj/$(NEK_CASENAME).o
36
NEK_LIB            := $(NEK_CASE_DIR)/libnek5000.so
37
include            $(NEK_SOURCE_DIR)/nek.mk
Cody Permann's avatar
Cody Permann committed
38
39
40
41
42
43
44
45
46
47
48
49

# moon
APPLICATION_DIR    := $(MOON_DIR)
APPLICATION_NAME   := moon
DEP_APPS           := $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME))
include            $(FRAMEWORK_DIR)/app.mk

# case
APPLICATION_DIR    := $(CURDIR)
APPLICATION_NAME   := $(shell basename $(APPLICATION_DIR))
MAIN_DIR           := $(MOON_DIR)/src
BUILD_EXEC         := yes
50
ifeq ($(shell uname),Darwin)
51
EXTERNAL_FLAGS     := $(NEK_OBJ) $(NEK_LIB) -Wl,-no_compact_unwind
52
53
54
else
EXTERNAL_FLAGS     := $(NEK_OBJ) $(NEK_LIB)
endif
Cody Permann's avatar
Cody Permann committed
55
56
57
58
59
DEP_APPS           := $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME))
include            $(FRAMEWORK_DIR)/app.mk

###############################################################################
# Additional special case targets should be added here