Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 173900 | Differences between
and this patch

Collapse All | Expand All

(-)CCOLAMD_orig/Demo/Makefile (-43 lines)
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
(-)CCOLAMD_orig/Demo/Makefile.am (+24 lines)
Line 0 Link Here
1
AM_CPPFLAGS = -I$(top_srcdir)/Include
2
AM_LDFLAGS = -lm
3
check_PROGRAMS = \
4
	ccolamd_example \
5
	ccolamd_l_example
6
7
ccolamd_example_SOURCES = ccolamd_example.c
8
ccolamd_example_LDADD = $(top_builddir)/Lib/libccolamd.la
9
10
ccolamd_l_example_SOURCES = ccolamd_l_example.c
11
ccolamd_l_example_LDADD = $(top_builddir)/Lib/libccolamd.la
12
13
test: $(check_PROGRAMS)
14
	@for i in $(check_PROGRAMS); do \
15
		echo "Testing $$i"; \
16
		./$$i > my_$$i.out; \
17
		if ! diff $$i.out my_$$i.out; then \
18
			echo "Test $$i failed!"; \
19
			exit 1; \
20
		fi \
21
	done;
22
23
clean-local:
24
	rm -f my*.out
(-)CCOLAMD_orig/Lib/Makefile (-32 lines)
Lines 1-32 Link Here
1
#-------------------------------------------------------------------------------
2
# CCOLAMD Makefile
3
#-------------------------------------------------------------------------------
4
5
default: libccolamd.a
6
7
include ../../UFconfig/UFconfig.mk
8
9
I = -I../Include -I../../UFconfig
10
11
INC = ../Include/ccolamd.h ../../UFconfig/UFconfig.h
12
13
SRC = ../Source/ccolamd.c ../Source/ccolamd_global.c
14
15
# creates libccolamd.a, a C-callable COLAMD library
16
libccolamd.a:  $(SRC) $(INC)
17
	$(CC) $(CFLAGS) $(I) -c ../Source/ccolamd_global.c
18
	$(CC) $(CFLAGS) $(I) -c ../Source/ccolamd.c
19
	$(CC) $(CFLAGS) $(I) -c ../Source/ccolamd.c -DDLONG -o ccolamd_l.o
20
	$(AR) libccolamd.a ccolamd.o ccolamd_l.o ccolamd_global.o
21
22
ccode: libccolamd.a
23
24
library: libccolamd.a
25
26
clean:
27
	- $(RM) $(CLEAN)
28
29
purge: distclean
30
31
distclean: clean
32
	- $(RM) libccolamd.a
(-)CCOLAMD_orig/Lib/Makefile.am (+11 lines)
Line 0 Link Here
1
AM_CPPFLAGS = -I$(top_builddir)/Include
2
lib_LTLIBRARIES = libccolamd.la
3
noinst_LTLIBRARIES = libccolamdl.la libccolamdi.la
4
5
libccolamd_la_SOURCES = $(top_srcdir)/Source/ccolamd_global.c
6
libccolamd_la_LIBADD = libccolamdl.la libccolamdi.la
7
8
libccolamdl_la_SOURCES = $(top_srcdir)/Source/ccolamd.c
9
libccolamdl_la_CFLAGS = -DDLONG
10
11
libccolamdi_la_SOURCES = $(top_srcdir)/Source/ccolamd.c
(-)CCOLAMD_orig/MATLAB/Makefile (-35 lines)
Lines 1-35 Link Here
1
# CCOLAMD Makefile for MATLAB mexFunctions
2
3
default: ccolamd2 csymamd2
4
5
include ../../UFconfig/UFconfig.mk
6
7
I = -I../../UFconfig -I../Include
8
9
INC = ../Include/ccolamd.h ../../UFconfig/UFconfig.h
10
11
SRC = ../Source/ccolamd.c ../Source/ccolamd_global.c
12
13
MX = $(MEX) -DDLONG $(I)
14
15
# Compiles the MATLAB-callable routines
16
mex: ccolamd2 csymamd2
17
18
csymamd2: csymamdmex.c $(INC) $(SRC)
19
	$(MX) -output csymamd csymamdmex.c $(SRC)
20
21
ccolamd2: ccolamdmex.c $(INC) $(SRC)
22
	$(MX) -output ccolamd ccolamdmex.c $(SRC)
23
24
# Compiles the extensive test code
25
test: mex ccolamdtestmex.c csymamdtestmex.c $(INC) $(SRC)
26
	$(MX) ccolamdtestmex.c $(SRC)
27
	$(MX) csymamdtestmex.c $(SRC)
28
29
clean:
30
	- $(RM) $(CLEAN)
31
32
purge: distclean
33
34
distclean: clean
35
	- $(RM) *.mex* *.dll
(-)CCOLAMD_orig/Makefile (-49 lines)
Lines 1-49 Link Here
1
#------------------------------------------------------------------------------
2
# CCOLAMD Makefile
3
#------------------------------------------------------------------------------
4
5
default: demo
6
7
include ../UFconfig/UFconfig.mk
8
9
# Compile all C code, including the C-callable routine and the mexFunctions.
10
# Do not the MATLAB interface.
11
demo:
12
	( cd Lib    ; $(MAKE) )
13
	( cd Demo   ; $(MAKE) )
14
15
# Compile all C code, including the C-callable routine and the mexFunctions.
16
all:
17
	( cd Lib    ; $(MAKE) )
18
	( cd Demo   ; $(MAKE) )
19
	( cd MATLAB ; $(MAKE) )
20
21
# compile just the C-callable libraries (not mexFunctions or Demos)
22
library:
23
	( cd Lib    ; $(MAKE) )
24
25
# remove object files, but keep the compiled programs and library archives
26
clean:
27
	( cd Lib    ; $(MAKE) clean )
28
	( cd Demo   ; $(MAKE) clean )
29
	( cd MATLAB ; $(MAKE) clean )
30
31
# clean, and then remove compiled programs and library archives
32
purge:
33
	( cd Lib    ; $(MAKE) purge )
34
	( cd Demo   ; $(MAKE) purge )
35
	( cd MATLAB ; $(MAKE) purge )
36
37
distclean: purge
38
39
# get ready for distribution
40
dist: purge
41
	( cd Demo   ; $(MAKE) dist )
42
43
ccode: library
44
45
lib: library
46
47
# compile the MATLAB mexFunction
48
mex:
49
	( cd MATLAB ; $(MAKE) )
(-)CCOLAMD_orig/Makefile.am (+3 lines)
Line 0 Link Here
1
EXTRA_DIST = Doc/ChangeLog README.txt
2
include_HEADERS = Include/ccolamd.h
3
SUBDIRS = Demo/ Lib/
(-)CCOLAMD_orig/configure.ac (+14 lines)
Line 0 Link Here
1
#                                               -*- Autoconf -*-
2
AC_PREREQ(2.59)
3
AC_INIT(ccolamd, 2.7.0, davis@cise.ufl.edu)
4
AM_INIT_AUTOMAKE([foreign])
5
AC_PROG_INSTALL
6
AC_PROG_LIBTOOL
7
AC_CHECK_LIB(m, sqrt)
8
AC_CHECK_HEADERS(UFconfig.h)
9
AC_CONFIG_FILES([
10
    Lib/Makefile
11
    Demo/Makefile
12
    Makefile])
13
AC_OUTPUT
14

Return to bug 173900