-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (29 loc) · 990 Bytes
/
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
39
40
41
42
43
#
# Makefile for mxlu1fac
#
# Copyright (C) 2005 Yin Zhang [email protected]
#
CC = gcc
MX = mex
RM = rm -f
OBJS = commonlib.o hbio.o lusol.o lusolio.o lusolmain.o mmio.o myblas.o
OBJS2 = commonlib.o hbio.o lusol.o lusolio.o mmio.o myblas.o
MXSRCS = mxlu1fac.c commonlib.c lusol.c myblas.c
CFLAGS = -DYZHANG -DNDEBUG -Wall -fexceptions -ansi -fPIC -O0 -g
MXFLAGS = -DMATLAB -DYZHANG -O # -g
#BLAS = /p/lib/prescott_gotoblas.so
#BLAS = /usr/local/matlab/bin/glnx86/libmwrefblas.so
BLAS = /global/home/groups/consultsw/sl-7.x86_64/modules/blas/3.8.0/libblas.so
LIBS = $(BLAS) -lm -ldl
#--------------------------------------------------------------------------
all: mxlu1fac lusol
mxlu1fac: $(MXSRCS)
$(MX) $(MXFLAGS) $(MXSRCS) $(LIBS)
lusol: $(OBJS)
$(CC) -o lusol $(CFLAGS) $(OBJS) $(LIBS)
srcur-test:
gcc -g -O0 -o srcur-test srcur-test.c $(CFLAGS) $(OBJS2) $(LIBS)
clean:
$(RM) $(OBJS) *.dll srcur-test lusol
distclean: clean
$(RM) -f *.mex* lusol