Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 magnus 1
# @configure_input@
2
 
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
 
13
PACKAGE_NAME	= @PACKAGE_NAME@
14
PACKAGE_VERSION	= @PACKAGE_VERSION@
15
 
16
@ENCAP_DEFS@
17
 
18
### Installation programs and flags
19
INSTALL		= @INSTALL@
20
INSTALL_PROGRAM	= @INSTALL_PROGRAM@ -s
21
INSTALL_DATA	= @INSTALL_DATA@
22
LN_S		= @LN_S@
23
MKDIR		= @MKDIR@
24
 
25
### Compiler and link options
26
CC		= @CC@
27
LIBTOOL         = @LIBTOOL@
28
CPPFLAGS	= -I. \
29
		  -I.. \
30
		  -I${srcdir} \
31
		  -I${top_srcdir}/compat \
32
		  -I../listhash \
33
		  @CPPFLAGS@
34
CFLAGS		= @CFLAGS@
35
LDFLAGS		= @LDFLAGS@
36
LIBS		= @LIBS@
37
LTLIBOBJS	= @LTLIBOBJS@
38
RANLIB		= @RANLIB@
39
@SET_MAKE@
40
VPATH		= @srcdir@:@top_srcdir@/compat:../listhash
41
 
42
 
43
### Makefile rules - no user-servicable parts below
44
 
45
LIBTAR_OBJS	= append.lo \
46
		  block.lo \
47
		  decode.lo \
48
		  encode.lo \
49
		  extract.lo \
50
		  handle.lo \
51
		  libtar_hash.lo \
52
		  libtar_list.lo \
53
		  output.lo \
54
		  util.lo \
55
		  wrapper.lo
56
LIBTAR_HDRS	= ../config.h \
57
		  ${top_srcdir}/compat/compat.h \
58
		  ${srcdir}/libtar.h \
59
		  ${srcdir}/internal.h \
60
		  ../listhash/libtar_listhash.h
61
LIBTAR_LIBS	= ./libtar.la
62
ALL		= libtar.la
63
LDFLAGS		= @LDFLAGS@
64
CFLAGS		= @CFLAGS@
65
 
66
DISTCLEANFILES	= ../listhash/libtar_listhash.h \
67
		  ../listhash/libtar_list.c \
68
		  ../listhash/libtar_hash.c
69
 
70
 
71
all: ${ALL}
72
 
73
.PHONY: clean distclean install
74
 
75
libtar.la: ${LIBTAR_OBJS} ${LTLIBOBJS}
76
	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o libtar.la $(LIBTAR_OBJS) $(LTLIBOBJS) -rpath $(libdir)
77
#	${AR} rc libtar.a ${LIBTAR_OBJS} ${LIBOBJS}
78
#	${RANLIB} libtar.a
79
 
80
${LIBTAR_OBJS}: ${LIBTAR_HDRS}
81
 
82
%.lo: $(srcdir)/%.c
83
	$(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
84
 
85
%.lo: listhash/%.c
86
	$(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
87
 
88
%.lo: compat/%.c
89
	$(LIBTOOL) --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
90
 
91
clean:
92
	rm -rf *~ *.o $(LIBTAR_OBJS) ${ALL} core .libs $(LTLIBOBJS)
93
 
94
distclean: clean
95
	rm -f Makefile ${DISTCLEANFILES}
96
 
97
install: ${ALL}
98
	${MKDIR} ${DESTDIR}${libdir}
99
	$(LIBTOOL) --mode=install ${INSTALL_DATA} libtar.la ${DESTDIR}${libdir}
100
	${MKDIR} ${DESTDIR}${includedir}
101
	${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir}
102
	${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir}
103