Change th_get_size() macro to return unsigned int
[libtar.git] / lib / Makefile.in
blob60acbe6940838670ef9a11ee7b333fbc9605633b
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.. \
33 -I${srcdir} \
34 -I${top_srcdir}/compat \
35 -I../listhash \
36 @CPPFLAGS@
37 CFLAGS = @CFLAGS@
38 LDFLAGS = @LDFLAGS@
39 LIBS = @LIBS@
40 LTLIBOBJS = @LTLIBOBJS@
41 RANLIB = @RANLIB@
42 @SET_MAKE@
43 VPATH = @srcdir@:@top_srcdir@/compat:../listhash
46 ### Makefile rules - no user-servicable parts below
48 LIBTAR_OBJS = append.lo \
49 block.lo \
50 decode.lo \
51 encode.lo \
52 extract.lo \
53 handle.lo \
54 libtar_hash.lo \
55 libtar_list.lo \
56 output.lo \
57 util.lo \
58 wrapper.lo
59 LIBTAR_HDRS = ../config.h \
60 ${top_srcdir}/compat/compat.h \
61 ${srcdir}/libtar.h \
62 ${srcdir}/internal.h \
63 ../listhash/libtar_listhash.h
64 LIBTAR_LIBS = ./libtar.la
65 ALL = libtar.la
66 LDFLAGS = @LDFLAGS@
67 CFLAGS = @CFLAGS@
69 DISTCLEANFILES = ../listhash/libtar_listhash.h \
70 ../listhash/libtar_list.c \
71 ../listhash/libtar_hash.c
74 all: ${ALL}
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}
81 # ${RANLIB} libtar.a
83 ${LIBTAR_OBJS}: ${LIBTAR_HDRS}
85 %.lo: $(srcdir)/%.c
86 $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
88 %.lo: ../listhash/%.c
89 $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
91 %.lo: ${top_srcdir}/compat/%.c
92 $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
94 clean:
95 rm -rf *~ *.o $(LIBTAR_OBJS) ${ALL} core .libs $(LTLIBOBJS)
97 distclean: clean
98 rm -f Makefile ${DISTCLEANFILES}
100 install: ${ALL}
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}