File: GNUmakefile

package info (click to toggle)
umfpack 4.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,904 kB
  • ctags: 2,328
  • sloc: ansic: 31,039; fortran: 1,648; makefile: 1,292; sed: 162; csh: 96
file content (30 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#------------------------------------------------------------------------------
# GNUmakefile for the AMD MATLAB mexFunction
#------------------------------------------------------------------------------

all: amd

include ../Make/Make.include

MX = $(MEX) -I../Include

AMD = amd_aat amd_1 amd_2 amd_dump amd_postorder amd_post_tree amd_defaults \
	amd_order amd_control amd_info amd_valid

INC = ../Include/amd.h ../Source/amd_internal.h

MEXAMD = $(addsuffix .o, $(subst amd_,amd_m_,$(AMD)))

amd_m_%.o: ../Source/amd_%.c $(INC)
	$(MX) -DDINT -c $<
	- $(MV) amd_$*.o $@

amd: amd_mex.c $(MEXAMD) $(INC)
	$(MX) -output amd amd_mex.c $(MEXAMD)

#------------------------------------------------------------------------------
# Remove all but the files in the original distribution
#------------------------------------------------------------------------------

purge: clean
	- $(RM) amd.mex* amd.dll