Makefile 1.12 KB
Newer Older
1
2
3
4
# $Id$
#
# Library Makefile for Finesse

5
.PHONY: clean SuperLU_MT_2.1 NICSLU sparse formulc libkatnet libMNet KLUsparse Cuba-3.0
6

7
default : SuperLU_MT_2.1 NICSLU sparse formulc libkatnet libMNet KLUsparse Cuba-3.0
adf's avatar
   
adf committed
8

9
# build the sparse package
10
11
12
13
SuperLU_MT_2.1:
	$(MAKE) --directory=$@/CBLAS ARCH=$(ARCH)
	$(MAKE) --directory=$@ ARCH=$(ARCH)
	
Daniel Brown's avatar
Daniel Brown committed
14
15
16
NICSLU:
	$(MAKE) --directory=$@/lib ARCH=$(ARCH)
	
17
sparse:
Andreas Freise's avatar
Andreas Freise committed
18
	$(MAKE) --directory=$@ ARCH=$(ARCH)
19

adf's avatar
adf committed
20
libkatnet:
Andreas Freise's avatar
Andreas Freise committed
21
	$(MAKE) --directory=$@ ARCH=$(ARCH)
adf's avatar
adf committed
22
23

libMNet:
Andreas Freise's avatar
Andreas Freise committed
24
	$(MAKE) --directory=$@ ARCH=$(ARCH)
adf's avatar
adf committed
25

26
27
# build the formulc package
formulc:
Andreas Freise's avatar
Andreas Freise committed
28
	$(MAKE) --directory=$@ ARCH=$(ARCH)
29

adf's avatar
   
adf committed
30
31
# build the KLU package
KLUsparse:
Andreas Freise's avatar
Andreas Freise committed
32
	$(MAKE) --directory=$@ ARCH=$(ARCH)
adf's avatar
   
adf committed
33

34
35
# build the cuba package
Cuba-3.0:
Andreas Freise's avatar
Andreas Freise committed
36
	$(MAKE) lib --directory=$@ ARCH=$(ARCH)
37
	cp ./Cuba-3.0/cuba.h ../src/
38
39
# cleanup targets
clean:
40
	for d in sparse formulc libkatnet libMNet KLUsparse Cuba-3.0 SuperLU_MT_2.1 NICSLU;  \
41
42
43
	do                        \
	    $(MAKE) --directory=$$d clean; \
	done
Andreas Freise's avatar
Andreas Freise committed
44

Daniel Brown's avatar
Daniel Brown committed
45
46
47
48
49
	rm ./Cuba-3.0/libcuba.a
	rm ./KLUsparse/KLU/Lib/lib*.a
	rm ./KLUsparse/COLAMD/Lib/lib*.a
	rm ./KLUsparse/BTF/Lib/lib*.a
	rm ./KLUsparse/AMD/Lib/lib*.a
50
# vim: shiftwidth=4: