1 --- CAMD/Demo/Makefile.orig 2014-10-01 20:15:40.452951732 +0200
2 +++ CAMD/Demo/Makefile 2014-10-01 20:40:07.992890145 +0200
6 camd_demo: camd_demo.c library $(INC)
7 - $(C) -o camd_demo camd_demo.c ../Lib/libcamd.a $(LIB2)
8 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_demo camd_demo.c ../Lib/libcamd.la $(LIB2)
9 ./camd_demo > my_camd_demo.out
10 - diff camd_demo.out my_camd_demo.out
12 camd_l_demo: camd_l_demo.c library $(INC)
13 - $(C) -o camd_l_demo camd_l_demo.c ../Lib/libcamd.a $(LIB2)
14 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_l_demo camd_l_demo.c ../Lib/libcamd.la $(LIB2)
15 ./camd_l_demo > my_camd_l_demo.out
16 - diff camd_l_demo.out my_camd_l_demo.out
18 camd_demo2: camd_demo2.c library $(INC)
19 - $(C) -o camd_demo2 camd_demo2.c ../Lib/libcamd.a $(LIB2)
20 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_demo2 camd_demo2.c ../Lib/libcamd.la $(LIB2)
21 ./camd_demo2 > my_camd_demo2.out
22 - diff camd_demo2.out my_camd_demo2.out
24 camd_simple: camd_simple.c library $(INC)
25 - $(C) -o camd_simple camd_simple.c ../Lib/libcamd.a $(LIB2)
26 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_simple camd_simple.c ../Lib/libcamd.la $(LIB2)
27 ./camd_simple > my_camd_simple.out
28 - diff camd_simple.out my_camd_simple.out
30 --- CAMD/Lib/GNUmakefile.orig 2014-10-01 20:15:40.442951733 +0200
31 +++ CAMD/Lib/GNUmakefile 2014-10-01 20:41:30.242886694 +0200
33 # CAMD Makefile for compiling on Unix systems (for GNU make only)
34 #-------------------------------------------------------------------------------
39 include /usr/share/misc/SuiteSparse_config.mk
42 #-------------------------------------------------------------------------------
44 camd_i_%.o: ../Source/camd_%.c $(INC)
45 - $(C) -DDINT -c $< -o $@
46 + libtool --tag=CC --mode=compile $(C) -DDINT -c $< -o $@
48 camd_l_%.o: ../Source/camd_%.c $(INC)
49 - $(C) -DDLONG -c $< -o $@
50 + libtool --tag=CC --mode=compile $(C) -DDLONG -c $< -o $@
52 #-------------------------------------------------------------------------------
53 # Create the libcamd.a library (C versions only)
54 #-------------------------------------------------------------------------------
56 -libcamd.a: $(CAMDI) $(CAMDL)
57 - $(ARCHIVE) libcamd.a $^
58 - - $(RANLIB) libcamd.a
59 +libcamd.la: $(CAMDI) $(CAMDL)
60 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) -o libcamd.la -rpath $(libdir) $(^:.o=.lo) -lsuitesparseconfig -lm
63 + install -d $(DESTDIR)$(libdir)
64 + libtool --mode=install install libcamd.la $(DESTDIR)$(libdir)
66 #-------------------------------------------------------------------------------
67 # Remove all but the files in the original distribution