-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (34 loc) · 1.4 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
39
40
41
42
#-------------------------------------------------------------------------------
# Copyright (C) 2012, Robert Johansson <[email protected]>
# All rights reserved.
#
# This file is part of QDpack, and licensed under the LGPL.
# http://dml.riken.jp/~rob/qdpack.html
#-------------------------------------------------------------------------------
# ubuntu desktop
CFLAGS= -Wall -I/usr/include/suitesparse -O3 -std=gnu99 -g -Iqdpack -I..
LDFLAGS=-lm -lumfpack -lamd -lgsl -lf77blas -llapack -lcblas -latlas -lcxsparse
# osx
#CFLAGS= -Wall -I/opt/local/include -O3 -std=gnu99 -g -Iqdpack -I..
#LDFLAGS=-L/opt/local/lib -lm -lumfpack -lamd -lgsl -llapack -lcblas -lcxsparse
#CC=clang
#CC=gcc
# bento and tofu clusters
#CFLAGS=-I/beowulf/include/ -I/beowulf/include/amd -Ilib -O3
#LDFLAGS=-L/beowulf/lib -L/beowulf/lib/atlas -llapack -lcblaswr -lm -lF77 -lI77 -lf77blas -lgsl -lcblas -latlas -lumfpack -lamd
# RSCC
#CFLAGS=-DRSCC
#LDFLAGS=-llapack -latlas -lcblas -lblas -lgsl -lgslcblas -lm
#ARFLAGS=-pc
#CC=cc -gnu2 -static
all:
(cd qdpack && CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' make)
(cd examples && CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' make)
(cd tests && CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' make)
install:
(cd qdpack && CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' make install)
doc:
doxygen config.dox
clean:
(cd qdpack && make clean)
(cd examples && make clean)