-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
39 lines (32 loc) · 1 KB
/
makefile
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
# this makefile is for LINUX machines only
# ## iluc removed
OBJ = zfgmres.o ziluk.o zilut.o zarms2.o auxill.o
LIB = ./LIB/zPQ.o ./LIB/zpiluNEW.o ./LIB/zindsetC.o \
./LIB/zsets.o ./LIB/ztools.o ./LIB/systimer.o ./LIB/zmisc.o \
./LIB/zMatOps.o ./LIB/zilutpC.o ./LIB/givens.o ./LIB/zilutc.o
AR = gcc
#
FC = f77
FCFLAGS = -c -g -fPIC -Wall
CC = cc
CCFLAGS = -c -g -fPIC -DLINUX -Wall -O3
LD = f77
LDFLAGS =
#
# clear list of default suffixes, and declare default suffixes
.SUFFIXES:
.SUFFIXES: .f .c .o
# default rule to make .o files from .f files
.f.o : ; $(FC) $(FCFLAGS) $*.f -o $*.o
.c.o : ; $(CC) $(CCFLAGS) $*.c -o $*.o
#
lib libzitsol.a: $(OBJ) $(LIB)
$(AR) -shared -o LIB/libzitsol.so $(OBJ) $(LIB)
## ranlib libzitsol.a
#
clean :
rm -f ${OBJ} *.o *.ex *~ core ${LIB} LIB/*~ OUT/*
cleanall :
rm -f ${OBJ} *.o *.ex *.a *.cache *~ core ${LIB} \
LIB/*~ LIB/*.cache OUT/* TESTS_COO/*.o TESTS_COO/*.ex \
TESTS_HB/*.o TESTS_HB/*.ex