-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
87 lines (57 loc) · 2.18 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
#
# Makefile.in
#
#-----------------------------------------------------------------------------
# Shell
#-----------------------------------------------------------------------------
SHELL = /bin/sh
#-----------------------------------------------------------------------------
# Platform
#-----------------------------------------------------------------------------
PLAT = LINUX
#-----------------------------------------------------------------------------
# Compilers:
#-----------------------------------------------------------------------------
CC = gcc
FC = gfortran
LOADER = $(FC)
#-----------------------------------------------------------------------------
# Libraries
#-----------------------------------------------------------------------------
#I have added the path to the static libaries, will resolve the dynamic library
#linking issue later.
BLLIB = /usr/local/lib/libblas.a
CBLIB = /usr/local/lib/libcblas.a
LAPACKLIB = /usr/local/lib/liblapack.a
TMGLIB = /usr/local/lib/libtmglib.a
LAPACKELIB = /usr/local/lib/liblapacke.a
#----------------------------------------------------------------------------
#Include files (Header files)
#----------------------------------------------------------------------------
INCLUDES = /usr/local/include
#-----------------------------------------------------------------------------
# Flags for Compilers
#-----------------------------------------------------------------------------
CFLAGS = -O3 -DADD_
FFLAGS = -O3 -pipe -c
#-----------------------------------------------------------------------------
# Archive programs and flags
#-----------------------------------------------------------------------------
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
dlvl = ./.
#---------------------------------------------------------------------------
#CSPID compilation
#-------------------------------------------------------------------------
all: cspid
LIBRARIES = $(LAPACKELIB) $(LAPACKLIB) $(CBLIB) $(BLASLIB)
cspid:
$(CC) -c $(CFLAGS) -I$(INCLUDES) cspid.c util.c
$(LOADER) -o xsp cspid.o $(LIBRARIES)
#Here spex is the executable file
clean: cleanobj cleanexe
cleanobj:
rm -f *.o
cleanexe:
rm -f x*