~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to AMD/Source/GNUmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#-------------------------------------------------------------------------------
2
 
# AMD Makefile for compiling on Unix systems (for GNU make only)
3
 
#-------------------------------------------------------------------------------
4
 
 
5
 
default: ../Lib/libamd.a
6
 
 
7
 
include ../../UFconfig/UFconfig.mk
8
 
 
9
 
C = $(CC) $(CFLAGS) $(CONFIG) -I../Include -I../../UFconfig
10
 
 
11
 
#-------------------------------------------------------------------------------
12
 
# source files
13
 
#-------------------------------------------------------------------------------
14
 
 
15
 
AMD = amd_aat amd_1 amd_2 amd_dump amd_postorder amd_post_tree amd_defaults \
16
 
        amd_order amd_control amd_info amd_valid amd_preprocess
17
 
 
18
 
UFCONFIG = ../../UFconfig/UFconfig.h
19
 
 
20
 
INC = ../Include/amd.h ../Include/amd_internal.h $(UFCONFIG)
21
 
 
22
 
#-------------------------------------------------------------------------------
23
 
# object files for each version
24
 
#-------------------------------------------------------------------------------
25
 
 
26
 
AMDI = $(addsuffix .o, $(subst amd_,amd_i_,$(AMD)))
27
 
AMDL = $(addsuffix .o, $(subst amd_,amd_l_,$(AMD)))
28
 
 
29
 
#-------------------------------------------------------------------------------
30
 
# compile each int and long routine (with no real/complex version)
31
 
#-------------------------------------------------------------------------------
32
 
 
33
 
amd_global.o: amd_global.c $(INC)
34
 
        $(C) -c $< -o $@
35
 
 
36
 
amd_i_%.o: amd_%.c $(INC)
37
 
        $(C) -DDINT -c $< -o $@
38
 
 
39
 
amd_l_%.o: amd_%.c $(INC)
40
 
        $(C) -DDLONG -c $< -o $@
41
 
 
42
 
#-------------------------------------------------------------------------------
43
 
# Create the libamd.a library (C versions only)
44
 
#-------------------------------------------------------------------------------
45
 
 
46
 
../Lib/libamd.a: amd_global.o $(AMDI) $(AMDL)
47
 
        $(AR) ../Lib/libamd.a $^
48
 
        - $(RANLIB) ../Lib/libamd.a
49
 
 
50
 
#-------------------------------------------------------------------------------
51
 
# compile the Fortran versions and the libamdf77.a library
52
 
#-------------------------------------------------------------------------------
53
 
 
54
 
fortran: ../Lib/libamdf77.a
55
 
 
56
 
AMDF77 = amd.o amdbar.o
57
 
 
58
 
amd.o: amd.f
59
 
        $(F77) $(F77FLAGS) -c amd.f -o amd.o
60
 
 
61
 
amdbar.o: amdbar.f
62
 
        $(F77) $(F77FLAGS) -c amdbar.f -o amdbar.o
63
 
 
64
 
../Lib/libamdf77.a: $(AMDF77)
65
 
        $(AR) ../Lib/libamdf77.a $^
66
 
        - $(RANLIB) ../Lib/libamdf77.a
67
 
 
68
 
#-------------------------------------------------------------------------------
69
 
# Remove all but the files in the original distribution
70
 
#-------------------------------------------------------------------------------
71
 
 
72
 
clean:
73
 
        - $(RM) $(CLEAN)
74
 
 
75
 
purge: distclean
76
 
 
77
 
distclean: clean
78
 
        - $(RM) ../Lib/libamd.a
79
 
        - $(RM) ../Lib/libamdf77.a