this fixes two problems:
[rsync/rsync.git] / Makefile.in
CommitLineData
c627d613
AT
1# Makefile for rsync. This is processed by configure to produce the final
2# Makefile
3
6dd1782c
AT
4prefix=@prefix@
5exec_prefix=@exec_prefix@
6INSTALL_BIN=$(exec_prefix)/bin
7INSTALL_MAN=$(prefix)/man
c627d613 8
c627d613 9LIBS=@LIBS@
95a38e86 10CC=@CC@
ce2ac5ac 11CFLAGS=@CFLAGS@
95a38e86 12
c627d613
AT
13INSTALLCMD=@INSTALL@
14
d0390cd3
AT
15VPATH=@srcdir@
16srcdir=@srcdir@
c627d613
AT
17SHELL=/bin/sh
18
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
1e9f155a 23LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
f0fca04e 24OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o log.o
7a6421fa 25OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o
bcb7e502 26DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
7a6421fa 27OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ)
c627d613 28
366bd905 29# note that the -I. is needed to handle config.h when using VPATH
c627d613 30.c.o:
366bd905 31 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
c627d613 32
a87b3b2a
AT
33all: rsync
34
35man: rsync.1 rsyncd.conf.5
c627d613
AT
36
37install: all
6bbbc08b 38 -mkdir -p ${INSTALL_BIN}
c627d613 39 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
6bbbc08b 40 -mkdir -p ${INSTALL_MAN}/man1
41059f75 41 -mkdir -p ${INSTALL_MAN}/man5
d0390cd3 42 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
41059f75 43 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${INSTALL_MAN}/man5
c627d613 44
95a38e86 45rsync: $(OBJS)
c627d613
AT
46 $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
47
41059f75 48rsync.1: rsync.yo
a87b3b2a 49 yodl2man -o rsync.1 rsync.yo
41059f75
AT
50
51rsyncd.conf.5: rsyncd.conf.yo
a87b3b2a 52 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
41059f75 53
c627d613
AT
54proto:
55 cat *.c | awk -f mkproto.awk > proto.h
56
57clean:
58 rm -f *~ $(OBJS) rsync config.cache config.log config.status
59
95a38e86 60dist:
c627d613
AT
61 tar --exclude-from .ignore -czf dist.tar.gz .
62 -mkdir rsync-$(VERSION)
63 (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
64 tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
65 rm -f dist.tar.gz
66 echo rsync-$(VERSION) >> .cvsignore