libtar-1.2.11 tarball sources, taken from Debian's orig tar
[libtar.git] / libtar / Makefile.in
blob3128127df68da0238f28586ac5d74d12e941010d
1 # @configure_input@
3 ### Path settings
4 srcdir = @srcdir@
5 top_srcdir = @top_srcdir@
6 prefix = @prefix@
7 exec_prefix = @exec_prefix@
8 bindir = @bindir@
9 libdir = @libdir@
10 includedir = @includedir@
12 PACKAGE_NAME = @PACKAGE_NAME@
13 PACKAGE_VERSION = @PACKAGE_VERSION@
15 @ENCAP_DEFS@
17 ### Installation programs and flags
18 INSTALL = @INSTALL@
19 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
20 INSTALL_DATA = @INSTALL_DATA@
21 LN_S = @LN_S@
22 MKDIR = @MKDIR@
24 ### Compiler and link options
25 CC = @CC@
26 CPPFLAGS = -I.. \
27 -I../lib \
28 -I../listhash \
29 -I${top_srcdir}/lib \
30 -I${top_srcdir}/compat \
31 @CPPFLAGS@
32 CFLAGS = @CFLAGS@
33 LDFLAGS = @LDFLAGS@
34 LIBS = @LIBS@
35 LIBOBJS = @LIBOBJS@
36 RANLIB = @RANLIB@
37 @SET_MAKE@
38 VPATH = @srcdir@
41 ### Makefile rules - no user-servicable parts below
43 LIBTAR_OBJS = libtar.o
44 LIBTAR_HDRS = ../config.h \
45 ${top_srcdir}/compat/compat.h \
46 ${top_srcdir}/lib/libtar.h \
47 ../listhash/libtar_listhash.h
48 LIBTAR_LIBS = ../lib/libtar.a
49 ALL = libtar
52 all: ${ALL}
54 .PHONY: clean distclean install
56 libtar: ${LIBTAR_OBJS} ${LIBTAR_LIBS} ${LIBTAR_HDRS}
57 ${CC} ${CFLAGS} ${LDFLAGS} -o libtar libtar.o ${LIBTAR_LIBS} ${LIBS}
59 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
61 .c.o:
62 ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
64 clean:
65 rm -f *~ *.o ${ALL} core
67 distclean: clean
68 rm -f Makefile
70 install: ${ALL}
71 ${MKDIR} ${DESTDIR}${bindir}
72 ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir}