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
35 -I
${top_srcdir}/compat \
46 ### Makefile rules - no user-servicable parts below
48 LIBTAR_OBJS
= libtar.lo
49 LIBTAR_HDRS
= ..
/config.h \
50 ${top_srcdir}/compat
/compat.h \
51 ${top_srcdir}/lib
/libtar.h \
52 ..
/listhash
/libtar_listhash.h
53 LIBTAR_LIBS
= $(top_builddir
)/lib
59 .PHONY
: clean distclean install
61 libtar
: ${LIBTAR_OBJS} ${LIBTAR_LIBS} ${LIBTAR_HDRS}
62 $(LIBTOOL
) --mode
=link
${CC} ${CFLAGS} ${LDFLAGS} -o libtar
$(LIBTAR_OBJS
) -L
${LIBTAR_LIBS} ${LIBS}
64 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
67 $(LIBTOOL
) --mode
=compile
${CC} ${CFLAGS} ${CPPFLAGS} -c
-o
$@
$<
70 rm -rf
*~
*.o
${ALL} $(LIBTAR_OBJS
) core .libs
76 ${MKDIR} ${DESTDIR}${bindir}
77 $(LIBTOOL
) --mode
=install ${INSTALL_PROGRAM} libtar
${DESTDIR}${bindir}