-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmake.inc
63 lines (51 loc) · 1.32 KB
/
make.inc
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
CC = gcc
FORTRAN = g++
AR = ar
# DSPL source and obj file path
DSPL_SRC_DIR = src
DSPL_OBJ_DIR = obj
# BLAS source path
BLAS_LIB_DIR = blas
BLAS_SRC_DIR = $(BLAS_LIB_DIR)/src
BLAS_RELEASE_DIR = $(BLAS_LIB_DIR)/bin
BLAS_LIB_NAME = $(BLAS_RELEASE_DIR)/libblas.a
# LAPACK source path
LAPACK_LIB_DIR = lapack
LAPACK_RELEASE_DIR = $(LAPACK_LIB_DIR)/bin
LAPACK_DOUBLE_SRC_DIR = $(LAPACK_LIB_DIR)/src
LAPACK_DOUBLE_LIB_NAME = $(LAPACK_RELEASE_DIR)/liblapack_double.a
LAPACK_COMPLEX_SRC_DIR = $(LAPACK_LIB_DIR)/src
LAPACK_COMPLEX_LIB_NAME = $(LAPACK_RELEASE_DIR)/liblapack_complex.a
INC_DIR = ../include
RELEASE_DIR = ../_release
EXAMPLE_BIN_DIR = ../examples/bin
VERIFICATION_BIN_DIR = ../verification/bin
PERFORMANCE_BIN_DIR = ../performance/bin
ifeq ($(OS),Windows_NT)
DSPL_LIBNAME = libdspl.dll
DEF_OS = WIN_OS
LFLAGS = -lm
else
UNAME_S := $(shell uname -s)
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_S),Linux)
DSPL_LIBNAME = libdspl.so
DEF_OS = LINUX_OS
LFLAGS = -lm -ldl
else ifeq ($(UNAME_S),Darwin)
DSPL_LIBNAME = libdspl.so
DEF_OS = LINUX_OS
LFLAGS = -lm -ldl
endif
endif
LIB_NAME = $(DSPL_LIBNAME)
ifeq ($(OS),Windows_NT)
MAKE = mingw32-make
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
MAKE = make
else ifeq ($(UNAME_S),Darwin)
MAKE = make
endif
endif