]> git.pld-linux.org Git - packages/CAMD.git/blob - CAMD-shared.patch
- updated to 2.2.3
[packages/CAMD.git] / CAMD-shared.patch
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
4 @@ -23,22 +23,22 @@
5  dist:
6  
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
12  
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
18  
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
24  
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
30  
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
33 @@ -2,7 +2,7 @@
34  # CAMD Makefile for compiling on Unix systems (for GNU make only)
35  #-------------------------------------------------------------------------------
36  
37 -default: libcamd.a
38 +default: libcamd.la
39  
40  include /usr/share/misc/UFconfig.mk
41  
42 @@ -29,21 +29,24 @@
43  #-------------------------------------------------------------------------------
44  
45  camd_global.o: ../Source/camd_global.c $(INC)
46 -       $(C) -c $< -o $@
47 +       libtool --tag=CC --mode=compile $(C) -c $< -o $@
48  
49  camd_i_%.o: ../Source/camd_%.c $(INC)
50 -       $(C) -DDINT -c $< -o $@
51 +       libtool --tag=CC --mode=compile $(C) -DDINT -c $< -o $@
52  
53  camd_l_%.o: ../Source/camd_%.c $(INC)
54 -       $(C) -DDLONG -c $< -o $@
55 +       libtool --tag=CC --mode=compile $(C) -DDLONG -c $< -o $@
56  
57  #-------------------------------------------------------------------------------
58  # Create the libcamd.a library (C versions only)
59  #-------------------------------------------------------------------------------
60  
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
66 +
67 +install: libcamd.la
68 +       install -d $(DESTDIR)$(libdir)
69 +       libtool --mode=install cp libcamd.la $(DESTDIR)$(libdir)/libcamd.la
70  
71  #-------------------------------------------------------------------------------
72  # Remove all but the files in the original distribution
73 @@ -55,4 +58,4 @@
74  purge: distclean
75  
76  distclean: clean
77 -       - $(RM) libcamd.a
78 +       - $(RM) libcamd.la
This page took 0.083245 seconds and 3 git commands to generate.