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

« back to all changes in this revision

Viewing changes to LDL/Demo/Makefile

  • 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
# LDL Demo Makefile
 
3
#-------------------------------------------------------------------------------
 
4
 
 
5
default: all
 
6
 
 
7
include ../../UFconfig/UFconfig.mk
 
8
 
 
9
I = -I../../UFconfig -I../Include
 
10
 
 
11
C = $(CC) $(CFLAGS) $(I)
 
12
 
 
13
all: ldlsimple ldllsimple ldlmain ldllmain ldlamd ldllamd
 
14
 
 
15
library:
 
16
        ( cd ../../AMD ; $(MAKE) library )
 
17
        ( cd ../Lib ; $(MAKE) )
 
18
 
 
19
#-------------------------------------------------------------------------------
 
20
# stand-alone C programs:
 
21
#-------------------------------------------------------------------------------
 
22
 
 
23
ldlmain:  ldlmain.c library
 
24
        $(C) ldlmain.c ../Lib/libldl.a -o ldlmain -lm
 
25
        - ./ldlmain > my_ldlmain.out
 
26
        - diff ldlmain.out my_ldlmain.out
 
27
 
 
28
ldllmain:  ldlmain.c library
 
29
        $(C) -DLDL_LONG ldlmain.c ../Lib/libldl.a -o ldllmain -lm
 
30
        - ./ldllmain > my_ldllmain.out
 
31
        - diff ldlmain.out my_ldllmain.out
 
32
 
 
33
ldlsimple:  ldlsimple.c library
 
34
        $(C) ldlsimple.c ../Lib/libldl.a -o ldlsimple -lm
 
35
        - ./ldlsimple > my_ldlsimple.out
 
36
        - diff ldlsimple.out my_ldlsimple.out
 
37
 
 
38
ldllsimple:  ldlsimple.c library
 
39
        $(C) $(I) -DLDL_LONG ldlsimple.c ../Lib/libldl.a -o ldllsimple -lm
 
40
        - ./ldllsimple > my_ldllsimple.out
 
41
        - diff ldlsimple.out my_ldllsimple.out
 
42
 
 
43
ldlamd:  ldlmain.c library
 
44
        - $(C) -I../../AMD/Include -DUSE_AMD \
 
45
                ldlmain.c ../../AMD/Lib/libamd.a ../Lib/libldl.a -o ldlamd -lm
 
46
        - ./ldlamd > my_ldlamd.out
 
47
        - diff ldlamd.out my_ldlamd.out
 
48
 
 
49
ldllamd:  ldlmain.c library
 
50
        - $(C) -DLDL_LONG $(I) -I../../AMD/Include -DUSE_AMD \
 
51
                ldlmain.c ../../AMD/Lib/libamd.a ../Lib/libldl.a -o ldllamd -lm
 
52
        - ./ldllamd > my_ldllamd.out
 
53
        - diff ldllamd.out my_ldllamd.out
 
54
 
 
55
run:
 
56
        - ./ldlsimple > my_ldlsimple.out
 
57
        - diff ldlsimple.out my_ldlsimple.out
 
58
        - ./ldllsimple > my_ldllsimple.out
 
59
        - diff ldlsimple.out my_ldllsimple.out
 
60
        - ./ldlmain > my_ldlmain.out
 
61
        - diff ldlmain.out my_ldlmain.out
 
62
        - ./ldllmain > my_ldllmain.out
 
63
        - diff ldlmain.out my_ldllmain.out
 
64
        - ./ldlamd > my_ldlamd.out
 
65
        - diff ldlamd.out my_ldlamd.out
 
66
        - ./ldllamd > my_ldllamd.out
 
67
        - diff ldllamd.out my_ldllamd.out
 
68
 
 
69
 
 
70
#-------------------------------------------------------------------------------
 
71
# clean-up:
 
72
#-------------------------------------------------------------------------------
 
73
 
 
74
distclean: purge
 
75
 
 
76
purge: clean
 
77
        - $(RM) ldlmain ldllmain ldlsimple ldllsimple ldlamd ldllamd
 
78
        - $(RM) my_ldlmain.out my_ldlamd.out my_ldlsimple.out my_ldllamd.out
 
79
        - $(RM) my_ldllsimple.out my_ldllmain.out
 
80
 
 
81
clean:
 
82
        - $(RM) $(CLEAN)