-
Notifications
You must be signed in to change notification settings - Fork 18
/
makefile
70 lines (57 loc) · 1.76 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
# This top level makefile is only used to setup the build directories.
# In general this should not be called directly, instead use the
# build_all script.
#
# This top level makefile includes
# make.inc includes
# make_$(MACHINE).inc (from SHARE) ... no external makefiles
# and make_all.inc (from SHARE)
#
#
include make.inc
FLAG_CALLED_FROM_BUILD_ALL ?= false
.PHONY: release debug clean_release clean_debug static_release shared_release
release: pre_build
debug: pre_build
clean_release: pre_build
clean_debug: pre_build
static_release: pre_build
shared_release: pre_build
pre_build:
ifeq "$(FLAG_CALLED_FROM_BUILD_ALL)" "false"
@echo 'To compile STELLOPT use the build_all script instead of calling make directly.'
@(exit 1)
endif
ifeq ($(wildcard $(MYHOME)),)
@echo 'Creating STELLOPT output directory.'
mkdir -p $(MYHOME)
endif
pystel:
@echo 'Building pySTEL'
@cd pySTEL; python3 setup.py install --user
# @python3 -m pip install ./pySTEL --user
libstell$(SHARED_EXT):
@cd LIBSTELL
@make shared_release
test_make:
@echo MACHINE is $(MACHINE)
@echo STELLOPT_HOME is $(STELLOPT_HOME)
@echo STELLOPT_PATH is $(STELLOPT_PATH)
# @echo VMEC_DIR is $(VMEC_DIR)
# @echo BEAMS3D_DIR is $(BEAMS3D_DIR)
# @echo BOOTSJ_DIR is $(BOOTSJ_DIR)
# @echo BNORM_DIR is $(BNORM_DIR)
# @echo BOOZ_DIR is $(BOOZ_DIR)
# @echo COBRA_DIR is $(COBRA_DIR)
# @echo DIANGO_DIR is $(DIANGO_DIR)
# @echo FIELDLINES_DIR is $(FIELDLINES_DIR)
# @echo JINV_DIR is $(JINV_DIR)
# @echo MGRID_DIR is $(MGRID_DIR)
# @echo DKES_DIR is $(DKES_DIR)
# @echo NEO_DIR is $(NEO_DIR)
@echo GENE_DIR is $(GENE_DIR)
@echo REGCOIL_DIR is $(REGCOIL_DIR)
@echo SFINCS_DIR is $(SFINCS_DIR)
@echo MANGO_DIR is $(MANGO_DIR)
@echo Compiler flags are $(LIBS)
@echo LIB_LINK is $(LIB_LINK)