-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 908 Bytes
/
Makefile
File metadata and controls
42 lines (30 loc) · 908 Bytes
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
CXX=g++
CXXFLAGS=-O3 -fPIC
#can be compiled with threading
#CXXFLAGS=-O3 -fPIC -fopenmp
#intel c++ compiler
#CXX=icpc
#must use -fp-model precise with intel compiler or extended precision
#CXXFLAGS=-O2 -fPIC -openmp -fp-model precise -vec-report1
#AR=xiar
PREFIX?=/usr/local
export CXX CXXFLAGS AR
.PHONY: clean deps/qd/src src
all: deps/qd/src src
test: all
$(MAKE) -C test
install: all
test -d $(PREFIX) || mkdir $(PREFIX)
test -d $(PREFIX)/lib || mkdir $(PREFIX)/lib
install -c src/libdrunkardswalk.a $(PREFIX)/lib
install -c src/libdrunkardswalk.so $(PREFIX)/lib
test -d $(PREFIX)/include || mkdir $(PREFIX)/include
test -d $(PREFIX)/include/drunkardswalk || \
mkdir $(PREFIX)/include/drunkardswalk
install -c include/drunkardswalk/solve.h $(PREFIX)/include/drunkardswalk
deps/qd/src src:
$(MAKE) -C $@
clean:
$(MAKE) -C src clean
$(MAKE) -C deps/qd/src clean
src: deps/qd/src