-
Notifications
You must be signed in to change notification settings - Fork 1
/
makeLyapXoolV3
33 lines (23 loc) · 914 Bytes
/
makeLyapXoolV3
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
##Te xoot' ts'íiba' ajka'asaj Carlos Argáez'
## Makefile to build LyapXool V3.
##LIPC, IINGEN, UNAM, SISAL.
## CARLOS ARGÁEZ GARCÍA.
QP:=https://github.com/patperry/qp
clone-qp:
get clone $(QP) qp
qp-install:
make
CC=g++
CFLAGS=-I/ADDRESS/TO/armadillo/include -std=c++11 -fopenmp -march=native -Wall -Wextra -m64 -DARMA_64BIT_WORD -O2
LFLAGS=-L/ADDRESS/TO/armadillo/lib -larmadillo -L/ADDRESS/TO/openblas/lib/ -lopenblas -llapack -lgfortran -L/ADDRESS/TO/gsl -lgsl -L/ADDRESS/to/qp -lqp
DEPS=Makefile generalities.hpp lyapunovfunction.hpp odetools.hpp wendland.hpp instructions.hpp odesystem.hpp RBF.hpp
OBJ=generalities.o lyapunovfunction.o odetools.o wendland.o instructions.o odesystem.o RBF.o
%.o: %.cpp $(DEPS)
$(CC) -c $(CFLAGS) -o $@ $<
solver: $(OBJ)
$(CC) $(CFLAGS) $(LFLAGS) -o $@ $^
.PHONY: clean
clean:
rm -f *.o
rm -f s*.m
rm -f *lpx