-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.mk
More file actions
34 lines (27 loc) · 776 Bytes
/
config.mk
File metadata and controls
34 lines (27 loc) · 776 Bytes
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
# Select C++ compiler
#CXX = sxc++
#CXX = g++
CXX = mpicxx # H5public.h may need mpi.h
# Select C compiler
#CC = sxcc
CC = gcc
# Select archiver
#AR = sxar
AR = ar
# C and C++ "compile but do not link" flag
CDNLFLAG = -c
# C++ compiler flags
# Debug C++ flags
#CXXFLAGS = -Wall -D__STDC_LIMIT_MACROS -fsanitize=bounds
#CXXFLAGS = -Wall -D__STDC_LIMIT_MACROS -mmpx -fcheck-pointer-bounds
# Production C++ flags
#CXXFLAGS = -Xp -Kexceptions
#CXXFLAGS = -Caopt -Xp -Kexceptions
CXXFLAGS = -Wall -O2 -ftree-vectorize -D__STDC_LIMIT_MACROS -march=native
# C compiler flags
#CFLAGS = -Xa
#CFLAGS = -Caopt -Xa
CFLAGS = -Wall -O2 -ftree-vectorize -fomit-frame-pointer -funroll-loops -march=native
# HDF path (optional)
HDF_INC = $(HDF_ROOT)/include/
HDF_LIB = $(HDF_ROOT)/lib/