]>
Commit | Line | Data |
---|---|---|
ffd1f86b JB |
1 | --- BTF/Lib/Makefile.orig 2012-01-09 19:34:18.460060583 +0100 |
2 | +++ BTF/Lib/Makefile 2012-01-09 20:11:23.916801765 +0100 | |
3 | @@ -15,14 +15,17 @@ | |
4 | ||
5 | all: library | |
6 | ||
7 | -library: libbtf.a | |
8 | +library: libbtf.la | |
9 | ||
10 | OBJ = btf_order.o btf_maxtrans.o btf_strongcomp.o \ | |
11 | btf_l_order.o btf_l_maxtrans.o btf_l_strongcomp.o | |
12 | ||
13 | -libbtf.a: $(OBJ) | |
14 | - $(ARCHIVE) libbtf.a $(OBJ) | |
15 | - - $(RANLIB) libbtf.a | |
16 | +libbtf.la: $(OBJ) | |
17 | + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o libbtf.la -rpath $(libdir) $(OBJ:.o=.lo) | |
18 | + | |
19 | +install: libbtf.la | |
20 | + install -d $(DESTDIR)$(libdir) | |
21 | + libtool --mode=install cp libbtf.la $(DESTDIR)$(libdir)/libbtf.la | |
22 | ||
23 | $(OBJ): $(INC) | |
24 | ||
25 | @@ -32,31 +35,31 @@ | |
26 | #------------------------------------------------------------------------------- | |
27 | ||
28 | btf_order.o: ../Source/btf_order.c | |
29 | - $(C) -c $(I) $< -o $@ | |
30 | + libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@ | |
31 | ||
32 | btf_maxtrans.o: ../Source/btf_maxtrans.c | |
33 | - $(C) -c $(I) $< -o $@ | |
34 | + libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@ | |
35 | ||
36 | btf_strongcomp.o: ../Source/btf_strongcomp.c | |
37 | - $(C) -c $(I) $< -o $@ | |
38 | + libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@ | |
39 | ||
40 | #------------------------------------------------------------------------------- | |
41 | ||
42 | btf_l_order.o: ../Source/btf_order.c | |
43 | - $(C) -c $(I) -DDLONG $< -o $@ | |
44 | + libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@ | |
45 | ||
46 | btf_l_maxtrans.o: ../Source/btf_maxtrans.c | |
47 | - $(C) -c $(I) -DDLONG $< -o $@ | |
48 | + libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@ | |
49 | ||
50 | btf_l_strongcomp.o: ../Source/btf_strongcomp.c | |
51 | - $(C) -c $(I) -DDLONG $< -o $@ | |
52 | + libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@ | |
53 | ||
54 | #------------------------------------------------------------------------------- | |
55 | ||
56 | purge: distclean | |
57 | ||
58 | distclean: clean | |
59 | - - $(RM) libbtf.a | |
60 | + - $(RM) libbtf.la | |
61 | ||
62 | clean: | |
63 | - $(RM) $(CLEAN) |