put the pid on each line of the log file to facilitate
[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@
4040be4d
DD
6bindir=@bindir@
7mandir=@mandir@
c627d613 8
c627d613 9LIBS=@LIBS@
95a38e86 10CC=@CC@
ce2ac5ac 11CFLAGS=@CFLAGS@
95a38e86 12
c627d613
AT
13INSTALLCMD=@INSTALL@
14
d0390cd3 15srcdir=@srcdir@
4040be4d 16VPATH=$(srcdir)
c627d613
AT
17SHELL=/bin/sh
18
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
8de330a3 23LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o
5914bf15
PM
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 \
8de330a3
AT
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
4c36ddbe 28OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o
bcb7e502 29DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
5914bf15 30OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ)
c627d613 31
366bd905 32# note that the -I. is needed to handle config.h when using VPATH
c627d613 33.c.o:
366bd905 34 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
c627d613 35
a87b3b2a
AT
36all: rsync
37
38man: rsync.1 rsyncd.conf.5
c627d613
AT
39
40install: all
4040be4d
DD
41 -mkdir -p ${bindir}
42 ${INSTALLCMD} -m 755 rsync ${bindir}
43 -mkdir -p ${mandir}/man1
44 -mkdir -p ${mandir}/man5
45 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${mandir}/man1
46 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${mandir}/man5
47
48install-strip:
49 $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install
c627d613 50
95a38e86 51rsync: $(OBJS)
da81e215 52 $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
c627d613 53
41059f75 54rsync.1: rsync.yo
a87b3b2a 55 yodl2man -o rsync.1 rsync.yo
41059f75
AT
56
57rsyncd.conf.5: rsyncd.conf.yo
a87b3b2a 58 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
41059f75 59
c627d613
AT
60proto:
61 cat *.c | awk -f mkproto.awk > proto.h
62
63clean:
8de330a3 64 rm -f *~ $(OBJS) rsync
c627d613 65
6e4fb64e
AT
66
67# this target is really just for my use. It only works on a limited
68# range of machines and is used to produce a list of potentially
69# dead (ie. unused) functions in the code. (tridge)
70finddead:
71 nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
72 nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
73 comm -13 nmused.txt nmfns.txt