-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
43 lines (32 loc) · 1.1 KB
/
Copy pathmakefile
File metadata and controls
43 lines (32 loc) · 1.1 KB
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 #
# SParse Quadrature Routines (SPQR) #
# #
# created 9/11/2016 #
# #
################################################################################
#
VERSION=1.0
SHELL=/bin/sh
# set your C++ compiler
CPP= g++
# set your MEX compiler
MEX= mex
# set C++ compile flags
CPPFLAGS= -O3 -fPIC -Wall -W -pedantic
# set Eigen include path
EIGENPATH= /usr/include/eigen3/
#
#
OBJ = MXsparseQuadrature.cpp SparseQuadrature.o TensorProductQuadrature.o\
TDindexSet.o
all: $(OBJ)
$(MEX) $(OBJ) -I$(EIGENPATH)
# tell make how to create a .o from a .cpp
%.o:%.cpp
$(CPP) $(CPPFLAGS) -I$(EIGENPATH) -c $<
.PHONY: clean
clean:
rm -f *.o
# DO NOT DELETE THIS LINE -- make depends on it.