5164
|
1 #------------------------------------------------------------------------------- |
|
2 # UMFPACK makefile (for GNU make or original make) |
|
3 #------------------------------------------------------------------------------- |
|
4 |
|
5 # UMFPACK requires the AMD package to be in ../AMD |
|
6 |
|
7 # compile everything (except hb, fortran, and fortran64), including AMD and the |
|
8 # MATLAB mexFunctions |
|
9 all: |
|
10 ( cd ../AMD ; make ) |
|
11 ( cd Source ; make ) |
|
12 ( cd Demo ; make ) |
|
13 ( cd MATLAB ; make ) |
|
14 - cat Doc/License |
|
15 |
|
16 # compile just the C-callable libraries and demo programs (not mexFunctions) |
|
17 lib: |
|
18 ( cd ../AMD ; make lib ) |
|
19 ( cd Source ; make ) |
|
20 ( cd Demo ; make ) |
|
21 - cat Doc/License |
|
22 |
|
23 # compile the FORTRAN interface and demo program |
|
24 fortran: |
|
25 ( cd Demo ; make fortran ) |
|
26 |
|
27 # compile the 64-bit FORTRAN interface and demo program |
|
28 fortran64: |
|
29 ( cd Demo ; make fortran64 ) |
|
30 |
|
31 # compile the Harwell/Boeing demo program |
|
32 hb: |
|
33 ( cd Demo ; make hb ) |
|
34 |
|
35 # compile a Octave version |
|
36 # (not compiled by "make all") |
|
37 octave: |
|
38 ( cd OCTAVE ; make ) |
|
39 - cat Doc/License |
|
40 |
|
41 # remove object files, but keep the compiled programs and library archives |
|
42 clean: |
|
43 ( cd ../AMD ; make clean ) |
|
44 ( cd Source ; make clean ) |
|
45 ( cd Demo ; make clean ) |
|
46 ( cd MATLAB ; make clean ) |
|
47 ( cd OCTAVE ; make clean ) |
|
48 ( cd Doc ; make clean ) |
|
49 |
|
50 # clean, and then remove compiled programs and library archives |
|
51 purge: |
|
52 ( cd ../AMD ; make purge ) |
|
53 ( cd Source ; make purge ) |
|
54 ( cd Demo ; make purge ) |
|
55 ( cd MATLAB ; make purge ) |
|
56 ( cd OCTAVE ; make purge ) |
|
57 ( cd Doc ; make purge ) |
|
58 |
|
59 # create PDF documents for the original distribution |
|
60 doc: |
|
61 ( cd ../AMD ; make doc ) |
|
62 ( cd Doc ; make ) |
|
63 |
|
64 # get ready for distribution |
|
65 dist: purge |
|
66 ( cd ../AMD ; make dist ) |
|
67 ( cd Demo ; make dist ) |
|
68 ( cd Doc ; make ) |