https://github.com/H2Lib/H2Lib
Raw File
Tip revision: fa16d46ab0546a7fde5db17c4c4198afad45e5b1 authored by Steffen Boerm on 27 August 2022, 18:33:25 UTC
Updated list of ignorable files
Tip revision: fa16d46
system.inc.macos

# --- System configuration file for Linux with gcc

#
# Archiver
#
AR = ar
ARFLAGS = cru

#
# Delete files
#
RM = rm

#
# Compilers, GCC is used to create dependencies
#
CC = gcc
GCC = gcc
CFLAGS = -Wall
LDFLAGS = -Wl,-L,.
LIBS =

#
# Debug settings
#
ifdef DEBUG
  CFLAGS += -g
endif

#
# Optimization settings
#
ifdef OPT
  CFLAGS += -O3 -march=native -funroll-loops -funswitch-loops
endif

#
# Complex or real matrices and vectors?
#
ifdef USE_COMPLEX
  CFLAGS += -DUSE_COMPLEX
endif

#
# Use singles or double precision floating point numbers?
#
ifdef USE_FLOAT
  CFLAGS += -DUSE_FLOAT
endif

#
# BLAS/LAPACK
#
ifdef USE_BLAS
  CFLAGS += -DUSE_BLAS
  LIBS += -llapack -lblas -lgfortran
endif

#
# SIMD
#
ifdef USE_SIMD
  CFLAGS += -DUSE_SIMD
endif

#
# Triquadpoints
#
ifdef USE_TRIQUADPOINTS
  CFLAGS += -DUSE_TRIQUADPOINTS
endif

#
# Cairo graphics
#
ifdef USE_CAIRO
  CFLAGS += -DUSE_CAIRO $(shell pkg-config --cflags cairo)
  LIBS += $(shell pkg-config --libs cairo)
endif

#
# OpenMP parallelization
#
ifdef USE_OPENMP
  CFLAGS += -DUSE_OPENMP -fopenmp
  LDFLAGS += -fopenmp
endif

#
# OpenCL heterogeneous programming
#
ifdef USE_OPENCL
  CFLAGS += -DUSE_OPENCL -I/usr/local/cuda/include
  LIBS += -lOpenCL
endif

#
# NetCDF import/export
#
ifdef USE_NETCDF
  CFLAGS += -DUSE_NETCDF $(shell pkg-config --cflags netcdf)
  LIBS += $(shell pkg-config --libs netcdf)
endif

#
# zlib compression
#
ifdef USE_ZLIB
  CFLAGS += -DUSE_ZLIB
  LIBS += -lz
endif

#
# GTK+ 3.x visualization
#
ifdef USE_GTK3
  CFLAGS += -DUSE_GTK3 $(shell pkg-config --cflags gtk+-3.0)
  LIBS += $(shell pkg-config --libs gtk+-3.0)
endif

#
# FreeGLUT visualization
#
ifdef USE_FREEGLUT
  CFLAGS += -DUSE_FREEGLUT
  LIBS += -lglut -lGLU -lGL
endif

#
# Mathematics library
#
LIBS += -lm
back to top