5164
|
1 #------------------------------------------------------------------------------ |
|
2 # GNUmakefile for the AMD MATLAB mexFunction |
|
3 #------------------------------------------------------------------------------ |
|
4 |
|
5 all: amd |
|
6 |
|
7 include ../Make/Make.include |
|
8 |
|
9 MKOCT = mkoctfile -I../Include |
|
10 |
|
11 OCT_SPARSE_INC = -I../../../ |
|
12 |
|
13 AMD = amd_aat amd_1 amd_2 amd_dump amd_postorder amd_post_tree amd_defaults \ |
|
14 amd_order amd_control amd_info amd_valid |
|
15 |
|
16 INC = ../Include/amd.h ../Source/amd_internal.h |
|
17 |
|
18 OCTAMD = $(addsuffix .o, $(subst amd_,amd_o_,$(AMD))) |
|
19 |
|
20 amd_o_%.o: ../Source/amd_%.c $(INC) |
|
21 $(MKOCT) -DDINT -c $< -o $@ |
|
22 - $(MV) ../Source/amd_$*.o |
|
23 |
|
24 # Note temporary addition of octave sparse path |
|
25 amd: amd.cc $(OCTAMD) $(INC) |
|
26 $(MKOCT) amd.cc $(OCTAMD) $(OCT_SPARSE_INC) -o amd.oct |
|
27 |
|
28 #------------------------------------------------------------------------------ |
|
29 # Remove all but the files in the original distribution |
|
30 #------------------------------------------------------------------------------ |
|
31 |
|
32 purge: clean |
|
33 - $(RM) amd.oct |