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/zlib.o lib/compat.o
24 OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o
25 OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o uidlist.o $(LIBOBJ)
27 # note that the -I. is needed to handle config.h when using VPATH
29 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
34 -mkdir -p ${INSTALL_BIN}
35 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
36 -mkdir -p ${INSTALL_MAN}/man1
37 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
40 $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
43 cat *.c | awk -f mkproto.awk > proto.h
46 rm -f *~ $(OBJS) rsync config.cache config.log config.status
49 tar --exclude-from .ignore -czf dist.tar.gz .
50 -mkdir rsync-$(VERSION)
51 (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
52 tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
54 echo rsync-$(VERSION) >> .cvsignore