1 # Makefile for rsync. This is processed by configure to produce the final
5 exec_prefix=@
exec_prefix@
6 INSTALL_BIN
=$(exec_prefix)/bin
7 INSTALL_MAN
=$(prefix)/man
23 LIBOBJ
=lib
/getopt.o lib
/fnmatch.o lib
/compat.o
24 ZLIBOBJ
=zlib
/deflate.o zlib
/infblock.o zlib
/infcodes.o zlib
/inffast.o \
25 zlib
/inflate.o zlib
/inftrees.o zlib
/infutil.o zlib
/trees.o \
26 zlib
/zutil.o zlib
/adler32.o
27 OBJS1
=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o log.o
28 OBJS2
=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o
29 DAEMON_OBJ
= params.o loadparm.o clientserver.o access.o connection.o authenticate.o
30 OBJS
=$(OBJS1
) $(OBJS2
) $(DAEMON_OBJ
) $(LIBOBJ
) $(ZLIBOBJ
)
32 # note that the -I. is needed to handle config.h when using VPATH
34 $(CC
) -I.
-I
$(srcdir) $(CFLAGS
) -c
$< -o
$@
38 man
: rsync
.1 rsyncd.conf
.5
41 -mkdir
-p
${INSTALL_BIN}
42 ${INSTALLCMD} -m
755 rsync
${INSTALL_BIN}
43 -mkdir
-p
${INSTALL_MAN}/man1
44 -mkdir
-p
${INSTALL_MAN}/man5
45 ${INSTALLCMD} -m
644 $(srcdir)/rsync
.1 ${INSTALL_MAN}/man1
46 ${INSTALLCMD} -m
644 $(srcdir)/rsyncd.conf
.5 ${INSTALL_MAN}/man5
49 $(CC
) $(CFLAGS
) -o rsync
$(OBJS
) $(LIBS
)
52 yodl2man
-o rsync
.1 rsync.yo
54 rsyncd.conf
.5: rsyncd.conf.yo
55 yodl2man
-o rsyncd.conf
.5 rsyncd.conf.yo
58 cat
*.c | awk
-f mkproto.awk
> proto.h
61 rm -f
*~
$(OBJS
) rsync config.cache config.log config.status
64 tar --exclude-from .ignore
-czf
dist.
tar.gz .
65 -mkdir rsync-
$(VERSION
)
66 (cd rsync-
$(VERSION
) ; tar xzf ..
/dist.
tar.gz
)
67 tar -czf rsync-
$(VERSION
).
tar.gz rsync-
$(VERSION
)
69 echo rsync-
$(VERSION
) >> .cvsignore