1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 06-BTF_Lib_Makefile.dpatch by Daniel Rus Morales <danirus@tol-project.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: New content to build the BTF shared library
8
diff -u trunk~/BTF/Lib/Makefile trunk/BTF/Lib/Makefile
9
--- trunk~/BTF/Lib/Makefile 2007-05-03 22:34:57.000000000 +0200
10
+++ trunk/BTF/Lib/Makefile 2007-07-17 09:56:53.000000000 +0200
16
+library: libbtf.a libbtf.so.1.2
18
OBJ = btf_order.o btf_maxtrans.o btf_strongcomp.o \
19
btf_l_order.o btf_l_maxtrans.o btf_l_strongcomp.o
20
+OBJ_SL = $(subst .o,.oo,$(OBJ))
27
+libbtf.so.1.2: $(OBJ_SL)
28
+ $(CC) -shared $^ -lm -Wl,-soname -Wl,libbtf.so.1 -o $@
29
+ ln -s $@ libbtf.so.1
32
+$(OBJ) $(OBJ_SL): $(INC)
34
#-------------------------------------------------------------------------------
36
btf_order.o: ../Source/btf_order.c
38
+btf_order.oo: ../Source/btf_order.c
39
+ $(C) -fPIC -c $(I) $< -o $@
41
btf_maxtrans.o: ../Source/btf_maxtrans.c
43
+btf_maxtrans.oo: ../Source/btf_maxtrans.c
44
+ $(C) -fPIC -c $(I) $< -o $@
46
btf_strongcomp.o: ../Source/btf_strongcomp.c
48
+btf_strongcomp.oo: ../Source/btf_strongcomp.c
49
+ $(C) -fPIC -c $(I) $< -o $@
51
#-------------------------------------------------------------------------------
53
btf_l_order.o: ../Source/btf_order.c
54
$(C) -c $(I) -DDLONG $< -o $@
55
+btf_l_order.oo: ../Source/btf_order.c
56
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
58
btf_l_maxtrans.o: ../Source/btf_maxtrans.c
59
$(C) -c $(I) -DDLONG $< -o $@
60
+btf_l_maxtrans.oo: ../Source/btf_maxtrans.c
61
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
63
btf_l_strongcomp.o: ../Source/btf_strongcomp.c
64
$(C) -c $(I) -DDLONG $< -o $@
65
+btf_l_strongcomp.oo: ../Source/btf_strongcomp.c
66
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
68
#-------------------------------------------------------------------------------