1 diff -urN libtar-1.2.11/configure.ac libtar-1.2.11.new/configure.ac
2 --- libtar-1.2.11/configure.ac 2003-03-03 01:13:37.000000000 +0100
3 +++ libtar-1.2.11.new/configure.ac 2008-08-18 17:34:37.000000000 +0200
6 dnl ### Check for compiler et al. ###################################
13 diff -urN libtar-1.2.11/lib/Makefile.in libtar-1.2.11.new/lib/Makefile.in
14 --- libtar-1.2.11/lib/Makefile.in 2002-12-15 19:02:30.000000000 +0100
15 +++ libtar-1.2.11.new/lib/Makefile.in 2008-08-18 18:06:10.000000000 +0200
19 top_srcdir = @top_srcdir@
20 +top_builddir = @top_builddir@
22 exec_prefix = @exec_prefix@
26 ### Compiler and link options
37 +LTLIBOBJS = @LTLIBOBJS@
40 VPATH = @srcdir@:@top_srcdir@/compat:../listhash
43 ### Makefile rules - no user-servicable parts below
45 -LIBTAR_OBJS = append.o \
56 +LIBTAR_OBJS = append.lo \
67 LIBTAR_HDRS = ../config.h \
68 ${top_srcdir}/compat/compat.h \
70 ${srcdir}/internal.h \
71 ../listhash/libtar_listhash.h
72 -LIBTAR_LIBS = ./libtar.a
74 +LIBTAR_LIBS = ./libtar.la
79 DISTCLEANFILES = ../listhash/libtar_listhash.h \
80 ../listhash/libtar_list.c \
83 .PHONY: clean distclean install
85 -libtar.a: ${LIBTAR_OBJS} ${LIBOBJS}
86 - ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
88 +libtar.la: ${LIBTAR_OBJS} ${LTLIBOBJS}
89 + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o libtar.la $(LIBTAR_OBJS) $(LTLIBOBJS) -rpath $(libdir)
90 +# ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
93 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
96 - ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
98 + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
101 + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
104 + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
107 - rm -f *~ *.o ${ALL} core
108 + rm -rf *~ *.o $(LIBTAR_OBJS) ${ALL} core .libs $(LTLIBOBJS)
111 rm -f Makefile ${DISTCLEANFILES}
114 ${MKDIR} ${DESTDIR}${libdir}
115 - ${INSTALL_DATA} libtar.a ${DESTDIR}${libdir}
116 + $(LIBTOOL) --mode=install ${INSTALL_DATA} libtar.la ${DESTDIR}${libdir}
117 ${MKDIR} ${DESTDIR}${includedir}
118 ${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir}
119 ${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}
120 diff -urN libtar-1.2.11/libtar/Makefile.in libtar-1.2.11.new/libtar/Makefile.in
121 --- libtar-1.2.11/libtar/Makefile.in 2002-12-15 19:02:30.000000000 +0100
122 +++ libtar-1.2.11.new/libtar/Makefile.in 2008-08-18 18:04:36.000000000 +0200
126 top_srcdir = @top_srcdir@
127 +top_builddir = @top_builddir@
129 exec_prefix = @exec_prefix@
133 ### Compiler and link options
150 ### Makefile rules - no user-servicable parts below
152 -LIBTAR_OBJS = libtar.o
153 +LIBTAR_OBJS = libtar.lo
154 LIBTAR_HDRS = ../config.h \
155 ${top_srcdir}/compat/compat.h \
156 ${top_srcdir}/lib/libtar.h \
157 ../listhash/libtar_listhash.h
158 -LIBTAR_LIBS = ../lib/libtar.a
159 +LIBTAR_LIBS = $(top_builddir)/lib
164 .PHONY: clean distclean install
166 libtar: ${LIBTAR_OBJS} ${LIBTAR_LIBS} ${LIBTAR_HDRS}
167 - ${CC} ${CFLAGS} ${LDFLAGS} -o libtar libtar.o ${LIBTAR_LIBS} ${LIBS}
168 + $(LIBTOOL) --mode=link ${CC} ${CFLAGS} ${LDFLAGS} -o libtar $(LIBTAR_OBJS) -L${LIBTAR_LIBS} ${LIBS}
170 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
173 - ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
175 + $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
178 - rm -f *~ *.o ${ALL} core
179 + rm -rf *~ *.o ${ALL} $(LIBTAR_OBJS) core .libs
185 ${MKDIR} ${DESTDIR}${bindir}
186 - ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}
187 + $(LIBTOOL) --mode=install ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}