forked from eas4dc/EAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
126 lines (105 loc) · 3.55 KB
/
Makefile.in
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
########################################################################################################
# Flags information:
#
# ARCH_X86 and ARCH_ARM define the compiling architecture and are mutually exclusive
# FEAT_MPI_API allows to compile the MPI EAR library version or non-MPI.
# FEAT_AVX512 enables/disables the AVX-512 code.
# FEAT_RESEARCH extend the set of files installed.
# FEAT_GPU_OPT installs GPU optimization policies. 0 means only monitoring.
# FEAT_AMD_OSCPUFREQ disables the utilization of virtual PSTATES in AMD and selects OS CPUFreq.
# FEAT_DB_MYSQL and FEAT_DB_PSQL defines the database (MySQL or PostgreSQL) and are mutually exclusive.
# REPLACE also replaces the current installation permissions by the user's current values.
########################################################################################################
# Architectures
ARCH = @ARCH@
# Features
FEAT_MPI_API = @FEAT_MPI_API@
FEAT_AVX512 = @FEAT_AVX512@
FEAT_SVE = @FEAT_SVE@
FEAT_RESEARCH = 0
FEAT_GPU_OPT = 1
FEAT_AMD_OSCPUFREQ = 0
FEAT_DB_MYSQL = @FEAT_DB_MYSQL@
FEAT_DB_PSQL = @FEAT_DB_PGSQL@
FEAT_EXAMON = 0
FEAT_DB_CASSANDRA = 0
# Compilers
CC = @CC@
CC_FLAGS = @CC_FLAGS@
MPICC = @MPICC@
MPICC_FLAGS = @MPICC_FLAGS@
# Includes
MPI_BASE = @MPI_DIR@
MPI_CFLAGS = @MPI_CPPFLAGS@
MPI_VERSION = @MPI_VERSION@
GSL_BASE = @GSL_DIR@
GSL_CFLAGS = @GSL_CPPFLAGS@
GSL_LDFLAGS = @GSL_LDFLAGS@ @GSL_LIBS@
SLURM_BASE = @SLURM_DIR@
SLURM_CFLAGS = @SLURM_CFLAGS@
DB_BASE = @DB_DIR@
DB_CFLAGS = @DB_CFLAGS@
DB_LDFLAGS = @DB_LDFLAGS@ @DB_LIBS@
CUDA_BASE = @CUDA_DIR@
CUDA_CFLAGS = @CUDA_CFLAGS@
CUPTI_BASE = @CUPTI_DIR@
CUPTI_CFLAGS = @CUPTI_CFLAGS@
RSMI_BASE = @RSMI_DIR@
RSMI_CFLAGS = @RSMI_CFLAGS@
ONEAPI_BASE = @ONEAPI_DIR@
ONEAPI_CFLAGS = @ONEAPI_CFLAGS@
LIKWID_BASE = @LIKWID_DIR@
LIKWID_CFLAGS = @LIKWID_CFLAGS@
REDFISH_BASE = @REDFISH_DIR@
REDFISH_CFLAGS = @REDFISH_CFLAGS@
FREEIPMI_BASE = @FREEIPMI_DIR@
FREEIPMI_CFLAGS = @FREEIPMI_CFLAGS@
FREEIPMI_LDFLAGS = @FREEIPMI_LDFLAGS@
COUNTDOWN_BASE =
# Installation directories and options
ROOTDIR = $(shell pwd)
SRCDIR = $(ROOTDIR)/src
DESTDIR = @prefix@
ETCDIR = @sysconfdir@
TMPDIR = @localstatedir@
DOCDIR = @docdir@
CHOWN_USR = @USER@
CHOWN_GRP = @GROUP@
CONSTANTS = -DSEC_KEY=10001 -DREPORT_TIMESTAMP=1 -DSYNC_SET_RPC=1 -DUSE_CNTD=0 -DMIX_RPC=1
REPLACE =
######## EXPORTS
include ./Makefile.exports
######## RULES
.PHONY: check functionals
all:
@ $(MAKE) -C 'src' all || exit
full: clean all
post:
@ $(MAKE) -C 'src' post
install:
@ $(MAKE) -C 'etc' install || exit
@ $(MAKE) -C 'src' install || exit
clean:
@ $(MAKE) -C 'src' clean || exit
######## ADDITIONAL RULES
devel.install: install;
@ $(MAKE) -C 'etc' devel.install || exit
@ $(MAKE) -C 'src' devel.install || exit
etc.install: ;
@ $(MAKE) -C 'etc' etc.install || exit
@ $(MAKE) -C 'src' etc.install || exit
rpm.install: install;
@ $(MAKE) -C 'etc' rpm.install || exit
scripts.install: ;
@ $(MAKE) -C 'etc' scripts.install || exit
doc.install: ;
@ $(MAKE) -C 'doc' install || exit
%.build: ;
@ $(MAKE) -C 'src' $*.build || exit
%.install: ;
@ $(MAKE) -C src $*.install || exit
########
depend:
@ $(MAKE) -C 'src' depend || exit
depend-clean:
@ $(MAKE) -C 'src' depend-clean || exit