Added autoconf instructions to README
[libtar.git] / libtar / Makefile.in
blob7c6f1bc3a1ac04cbb321703ac36c7687a70a4751
1 # @configure_input@
3 ### Path settings
4 srcdir = @srcdir@
5 top_srcdir = @top_srcdir@
6 top_builddir = @top_builddir@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 libdir = @libdir@
11 includedir = @includedir@
12 datarootdir = @datarootdir@
14 PACKAGE_NAME = @PACKAGE_NAME@
15 PACKAGE_VERSION = @PACKAGE_VERSION@
17 @ENCAP_DEFS@
19 SHELL = @SHELL@
21 ### Installation programs and flags
22 INSTALL = @INSTALL@
23 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
24 INSTALL_DATA = @INSTALL_DATA@
25 LN_S = @LN_S@
26 MKDIR = @MKDIR@
28 ### Compiler and link options
29 CC = @CC@
30 LIBTOOL = @LIBTOOL@
31 CPPFLAGS = -I.. \
32 -I../lib \
33 -I../listhash \
34 -I${top_srcdir}/lib \
35 -I${top_srcdir}/compat \
36 @CPPFLAGS@
37 CFLAGS = @CFLAGS@
38 LDFLAGS = @LDFLAGS@
39 LIBS = @LIBS@ -ltar
40 LIBOBJS = @LIBOBJS@
41 RANLIB = @RANLIB@
42 @SET_MAKE@
43 VPATH = @srcdir@
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
54 ALL = libtar
57 all: ${ALL}
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}
66 %.lo: %.c
67 $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
69 clean:
70 rm -rf *~ *.o ${ALL} $(LIBTAR_OBJS) core .libs
72 distclean: clean
73 rm -f Makefile
75 install: ${ALL}
76 ${MKDIR} ${DESTDIR}${bindir}
77 $(LIBTOOL) --mode=install ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}