Lines 1-43
Link Here
|
1 |
#----------------------------------------------------------------------------- |
|
|
2 |
# compile the CCOLAMD demo |
3 |
#----------------------------------------------------------------------------- |
4 |
|
5 |
default: ccolamd_example ccolamd_l_example |
6 |
|
7 |
include ../../UFconfig/UFconfig.mk |
8 |
|
9 |
I = -I../Include -I../../UFconfig |
10 |
|
11 |
C = $(CC) $(CFLAGS) $(I) |
12 |
|
13 |
library: |
14 |
( cd ../Lib ; $(MAKE) ) |
15 |
|
16 |
#------------------------------------------------------------------------------ |
17 |
# Create the demo program, run it, and compare the output |
18 |
#------------------------------------------------------------------------------ |
19 |
|
20 |
dist: |
21 |
|
22 |
ccolamd_example: ccolamd_example.c library |
23 |
$(C) -o ccolamd_example ccolamd_example.c ../Lib/libccolamd.a -lm |
24 |
- ./ccolamd_example > my_ccolamd_example.out |
25 |
- diff ccolamd_example.out my_ccolamd_example.out |
26 |
|
27 |
ccolamd_l_example: ccolamd_l_example.c library |
28 |
$(C) -o ccolamd_l_example ccolamd_l_example.c ../Lib/libccolamd.a -lm |
29 |
- ./ccolamd_l_example > my_ccolamd_l_example.out |
30 |
- diff ccolamd_example.out my_ccolamd_example.out |
31 |
|
32 |
#------------------------------------------------------------------------------ |
33 |
# Remove all but the files in the original distribution |
34 |
#------------------------------------------------------------------------------ |
35 |
|
36 |
clean: |
37 |
- $(RM) $(CLEAN) |
38 |
|
39 |
purge: distclean |
40 |
|
41 |
distclean: clean |
42 |
- $(RM) ccolamd_example ccolamd_l_example |
43 |
- $(RM) my_ccolamd_example.out my_ccolamd_l_example.out |