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: Build shared version of BTF library.
8
diff -u upstrm/BTF/Lib/Makefile debsrc/BTF/Lib/Makefile
9
--- upstrm/BTF/Lib/Makefile 2007-05-03 22:34:57.000000000 +0200
10
+++ debsrc/BTF/Lib/Makefile 2007-12-15 19:05:38.000000000 +0100
16
+library: libbtf.a libbtf.so.3.1.0
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.3.1.0: $(OBJ_SL)
28
+ $(CC) -shared $^ -lm -Wl,-soname -Wl,$@ -o $@
31
+$(OBJ) $(OBJ_SL): $(INC)
33
#-------------------------------------------------------------------------------
35
btf_order.o: ../Source/btf_order.c
37
+btf_order.oo: ../Source/btf_order.c
38
+ $(C) -fPIC -c $(I) $< -o $@
40
btf_maxtrans.o: ../Source/btf_maxtrans.c
42
+btf_maxtrans.oo: ../Source/btf_maxtrans.c
43
+ $(C) -fPIC -c $(I) $< -o $@
45
btf_strongcomp.o: ../Source/btf_strongcomp.c
47
+btf_strongcomp.oo: ../Source/btf_strongcomp.c
48
+ $(C) -fPIC -c $(I) $< -o $@
50
#-------------------------------------------------------------------------------
52
btf_l_order.o: ../Source/btf_order.c
53
$(C) -c $(I) -DDLONG $< -o $@
54
+btf_l_order.oo: ../Source/btf_order.c
55
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
57
btf_l_maxtrans.o: ../Source/btf_maxtrans.c
58
$(C) -c $(I) -DDLONG $< -o $@
59
+btf_l_maxtrans.oo: ../Source/btf_maxtrans.c
60
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
62
btf_l_strongcomp.o: ../Source/btf_strongcomp.c
63
$(C) -c $(I) -DDLONG $< -o $@
64
+btf_l_strongcomp.oo: ../Source/btf_strongcomp.c
65
+ $(C) -fPIC -c $(I) -DDLONG $< -o $@
67
#-------------------------------------------------------------------------------