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

5
6
MKDIR = mkdir -p

7
.PHONY: clean SuperLU_MT_2.1 NICSLU sparse formulc libkatnet libMNet KLUsparse Cuba-3.0
8

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

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

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

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

29
30
# build the formulc package
formulc:
Andreas Freise's avatar
Andreas Freise committed
31
	$(MAKE) --directory=$@ ARCH=$(ARCH)
32

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

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

Daniel Brown's avatar
Daniel Brown committed
48
49
50
51
52
	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
53
# vim: shiftwidth=4: