~ubuntu-branches/ubuntu/natty/suitesparse/natty

« back to all changes in this revision

Viewing changes to AMD/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2006-12-22 10:16:15 UTC
  • Revision ID: james.westby@ubuntu.com-20061222101615-2ohaj8902oix2rnk
Tags: upstream-2.3.1
ImportĀ upstreamĀ versionĀ 2.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#------------------------------------------------------------------------------
 
2
# AMD Makefile (for GNU Make or original make)
 
3
#------------------------------------------------------------------------------
 
4
 
 
5
default: demo
 
6
 
 
7
include ../UFconfig/UFconfig.mk
 
8
 
 
9
# Compile all C code, including the C-callable routine and the mexFunctions.
 
10
# Do not compile the FORTRAN versions, or MATLAB interface.
 
11
demo:
 
12
        ( cd Source ; $(MAKE) )
 
13
        ( cd Demo   ; $(MAKE) )
 
14
 
 
15
# Compile all C code, including the C-callable routine and the mexFunctions.
 
16
# Do not compile the FORTRAN versions.
 
17
all:
 
18
        ( cd Source ; $(MAKE) )
 
19
        ( cd Demo   ; $(MAKE) )
 
20
        ( cd MATLAB ; $(MAKE) )
 
21
 
 
22
# compile just the C-callable libraries (not mexFunctions or Demos)
 
23
library:
 
24
        ( cd Source ; $(MAKE) )
 
25
 
 
26
# compile the FORTRAN libraries and demo programs (not compiled by "make all")
 
27
fortran:
 
28
        ( cd Source ; $(MAKE) fortran )
 
29
        ( cd Demo   ; $(MAKE) fortran )
 
30
 
 
31
# compile a FORTRAN demo program that calls the C version of AMD
 
32
# (not compiled by "make all")
 
33
cross:
 
34
        ( cd Demo   ; $(MAKE) cross )
 
35
 
 
36
# remove object files, but keep the compiled programs and library archives
 
37
clean:
 
38
        ( cd Source ; $(MAKE) clean )
 
39
        ( cd Demo   ; $(MAKE) clean )
 
40
        ( cd MATLAB ; $(MAKE) clean )
 
41
        ( cd Doc    ; $(MAKE) clean )
 
42
 
 
43
# clean, and then remove compiled programs and library archives
 
44
purge:
 
45
        ( cd Source ; $(MAKE) purge )
 
46
        ( cd Demo   ; $(MAKE) purge )
 
47
        ( cd MATLAB ; $(MAKE) purge )
 
48
        ( cd Doc    ; $(MAKE) purge )
 
49
 
 
50
distclean: purge
 
51
 
 
52
# create PDF documents for the original distribution
 
53
doc:
 
54
        ( cd Doc    ; $(MAKE) )
 
55
 
 
56
# get ready for distribution
 
57
dist: purge
 
58
        ( cd Demo   ; $(MAKE) dist )
 
59
        ( cd Doc    ; $(MAKE) )
 
60
 
 
61
ccode: library
 
62
 
 
63
lib: library
 
64
 
 
65
# compile the MATLAB mexFunction
 
66
mex:
 
67
        ( cd MATLAB ; $(MAKE) )