5 top_srcdir
= @top_srcdir@
6 top_builddir
= @top_builddir@
8 exec_prefix = @
exec_prefix@
11 includedir = @
includedir@
12 datarootdir
= @datarootdir@
14 PACKAGE_NAME
= @PACKAGE_NAME@
15 PACKAGE_VERSION
= @PACKAGE_VERSION@
21 ### Installation programs and flags
23 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
-s
24 INSTALL_DATA
= @INSTALL_DATA@
28 ### Compiler and link options
34 -I
${top_srcdir}/compat \
40 LTLIBOBJS
= @LTLIBOBJS@
43 VPATH
= @
srcdir@
:@top_srcdir@
/compat
:..
/listhash
46 ### Makefile rules - no user-servicable parts below
48 LIBTAR_OBJS
= append.lo \
59 LIBTAR_HDRS
= ..
/config.h \
60 ${top_srcdir}/compat
/compat.h \
62 ${srcdir}/internal.h \
63 ..
/listhash
/libtar_listhash.h
64 LIBTAR_LIBS
= .
/libtar.la
69 DISTCLEANFILES
= ..
/listhash
/libtar_listhash.h \
70 ..
/listhash
/libtar_list.c \
71 ..
/listhash
/libtar_hash.c
76 .PHONY
: clean distclean install
78 libtar.la
: ${LIBTAR_OBJS} ${LTLIBOBJS}
79 $(LIBTOOL
) --mode
=link
$(CC
) $(CFLAGS
) $(LDFLAGS
) -o libtar.la
$(LIBTAR_OBJS
) $(LTLIBOBJS
) -rpath
$(libdir)
80 # ${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
83 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
86 $(LIBTOOL
) --mode
=compile
${CC} ${CFLAGS} ${CPPFLAGS} -c
-o
$@
$<
89 $(LIBTOOL
) --mode
=compile
${CC} ${CFLAGS} ${CPPFLAGS} -c
-o
$@
$<
91 %.lo
: ${top_srcdir}/compat
/%.c
92 $(LIBTOOL
) --mode
=compile
${CC} ${CFLAGS} ${CPPFLAGS} -c
-o
$@
$<
95 rm -rf
*~
*.o
$(LIBTAR_OBJS
) ${ALL} core .libs
$(LTLIBOBJS
)
98 rm -f Makefile
${DISTCLEANFILES}
101 ${MKDIR} ${DESTDIR}${libdir}
102 $(LIBTOOL
) --mode
=install ${INSTALL_DATA} libtar.la
${DESTDIR}${libdir}
103 ${MKDIR} ${DESTDIR}${includedir}
104 ${INSTALL_DATA} ${srcdir}/libtar.h
${DESTDIR}${includedir}
105 ${INSTALL_DATA} ..
/listhash
/libtar_listhash.h
${DESTDIR}${includedir}