preparing for release of 2.0.18
[rsync.git] / Makefile.in
bloba68797f7d80760754a93280330970bf01d950a43
1 # Makefile for rsync. This is processed by configure to produce the final
2 # Makefile
4 prefix=@prefix@
5 exec_prefix=@exec_prefix@
6 INSTALL_BIN=$(exec_prefix)/bin
7 INSTALL_MAN=$(prefix)/man
9 LIBS=@LIBS@
10 CC=@CC@
11 CFLAGS=@CFLAGS@
13 INSTALLCMD=@INSTALL@
15 VPATH=@srcdir@
16 srcdir=@srcdir@
17 SHELL=/bin/sh
20 .SUFFIXES:
21 .SUFFIXES: .c .o
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
33 .c.o:
34 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
36 all: rsync
38 man: rsync.1 rsyncd.conf.5
40 install: all
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
48 rsync: $(OBJS)
49 $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
51 rsync.1: rsync.yo
52 yodl2man -o rsync.1 rsync.yo
54 rsyncd.conf.5: rsyncd.conf.yo
55 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
57 proto:
58 cat *.c | awk -f mkproto.awk > proto.h
60 clean:
61 rm -f *~ $(OBJS) rsync config.cache config.log config.status
63 dist:
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)
68 rm -f dist.tar.gz
69 echo rsync-$(VERSION) >> .cvsignore