Add comment: cyeoh says that getpass is deprecated, because it may
[rsync/rsync.git] / Makefile.in
... / ...
CommitLineData
1# Makefile for rsync. This is processed by configure to produce the final
2# Makefile
3
4prefix=@prefix@
5exec_prefix=@exec_prefix@
6bindir=@bindir@
7mandir=@mandir@
8
9LIBS=@LIBS@
10CC=@CC@
11CFLAGS=@CFLAGS@
12LDFLAGS=@LDFLAGS@
13
14INSTALLCMD=@INSTALL@
15
16srcdir=@srcdir@
17VPATH=$(srcdir)
18SHELL=/bin/sh
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
23LIBOBJ=lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o
24ZLIBOBJ=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
27OBJS1=rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o
28OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o batch.o
29DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
30popt_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
31 popt/popthelp.o popt/poptparse.o
32OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ) @BUILD_POPT@
33
34# note that the -I. is needed to handle config.h when using VPATH
35.c.o:
36@OBJ_SAVE@
37 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< @CC_SHOBJ_FLAG@
38@OBJ_RESTORE@
39
40all: rsync
41
42man: rsync.1 rsyncd.conf.5
43
44install: all
45 -mkdir -p ${bindir}
46 ${INSTALLCMD} -m 755 rsync ${bindir}
47 -mkdir -p ${mandir}/man1
48 -mkdir -p ${mandir}/man5
49 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${mandir}/man1
50 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${mandir}/man5
51
52install-strip:
53 $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install
54
55rsync: $(OBJS)
56 $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
57
58Makefile: Makefile.in configure config.status
59 echo "WARNING: You need to run ./config.status --recheck"
60
61# don't actually run autoconf, just issue a warning
62configure: configure.in
63 echo "WARNING: you need to rerun autoconf"
64
65rsync.1: rsync.yo
66 yodl2man -o rsync.1 rsync.yo
67
68rsyncd.conf.5: rsyncd.conf.yo
69 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
70
71proto:
72 cat *.c lib/compat.c | awk -f mkproto.awk > proto.h
73
74clean:
75 rm -f *~ $(OBJS) rsync
76
77distclean: clean
78 rm -f config.h config.cache config.status Makefile
79
80
81# this target is really just for my use. It only works on a limited
82# range of machines and is used to produce a list of potentially
83# dead (ie. unused) functions in the code. (tridge)
84finddead:
85 nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
86 nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
87 comm -13 nmused.txt nmfns.txt
88
89# 'check' is the GNU name, 'test' is the name for everybody else :-)
90.PHONY: check test
91
92test: check
93
94check:
95 rsync_bin=`pwd`/rsync srcdir="$(srcdir)" testdir=`pwd`/testdir $(srcdir)/testsuite/master.test