1 diff -ur camd/Demo/Makefile camd-shared/Demo/Makefile
2 --- camd/Demo/Makefile 2007-12-02 19:00:33.000000000 +0100
3 +++ camd-shared/Demo/Makefile 2007-12-02 18:55:08.000000000 +0100
7 camd_demo: camd_demo.c library $(INC)
8 - $(C) -o camd_demo camd_demo.c ../Lib/libcamd.a $(LIB)
9 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_demo camd_demo.c ../Lib/libcamd.la $(LIB)
10 ./camd_demo > my_camd_demo.out
11 - diff camd_demo.out my_camd_demo.out
13 camd_l_demo: camd_l_demo.c library $(INC)
14 - $(C) -o camd_l_demo camd_l_demo.c ../Lib/libcamd.a $(LIB)
15 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_l_demo camd_l_demo.c ../Lib/libcamd.la $(LIB)
16 ./camd_l_demo > my_camd_l_demo.out
17 - diff camd_l_demo.out my_camd_l_demo.out
19 camd_demo2: camd_demo2.c library $(INC)
20 - $(C) -o camd_demo2 camd_demo2.c ../Lib/libcamd.a $(LIB)
21 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_demo2 camd_demo2.c ../Lib/libcamd.la $(LIB)
22 ./camd_demo2 > my_camd_demo2.out
23 - diff camd_demo2.out my_camd_demo2.out
25 camd_simple: camd_simple.c library $(INC)
26 - $(C) -o camd_simple camd_simple.c ../Lib/libcamd.a $(LIB)
27 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -I../Include -o camd_simple camd_simple.c ../Lib/libcamd.la $(LIB)
28 ./camd_simple > my_camd_simple.out
29 - diff camd_simple.out my_camd_simple.out
31 --- CAMD/Lib/GNUmakefile.orig 2012-01-01 13:54:50.662901345 +0100
32 +++ CAMD/Lib/GNUmakefile 2012-01-01 14:04:33.546254197 +0100
34 # CAMD Makefile for compiling on Unix systems (for GNU make only)
35 #-------------------------------------------------------------------------------
40 include /usr/share/misc/UFconfig.mk
43 #-------------------------------------------------------------------------------
45 camd_global.o: ../Source/camd_global.c $(INC)
47 + libtool --tag=CC --mode=compile $(C) -c $< -o $@
49 camd_i_%.o: ../Source/camd_%.c $(INC)
50 - $(C) -DDINT -c $< -o $@
51 + libtool --tag=CC --mode=compile $(C) -DDINT -c $< -o $@
53 camd_l_%.o: ../Source/camd_%.c $(INC)
54 - $(C) -DDLONG -c $< -o $@
55 + libtool --tag=CC --mode=compile $(C) -DDLONG -c $< -o $@
57 #-------------------------------------------------------------------------------
58 # Create the libcamd.a library (C versions only)
59 #-------------------------------------------------------------------------------
61 -libcamd.a: camd_global.o $(CAMDI) $(CAMDL)
62 - $(ARCHIVE) libcamd.a $^
63 - - $(RANLIB) libcamd.a
64 +libcamd.la: camd_global.o $(CAMDI) $(CAMDL)
65 + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) -o libcamd.la -rpath $(libdir) $(^:.o=.lo) -lm
68 + install -d $(DESTDIR)$(libdir)
69 + libtool --mode=install cp libcamd.la $(DESTDIR)$(libdir)/libcamd.la
71 #-------------------------------------------------------------------------------
72 # Remove all but the files in the original distribution