Update config.sub to the latest from automake in addition to config.guess.
[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@
12
13INSTALLCMD=@INSTALL@
14
15srcdir=@srcdir@
16VPATH=$(srcdir)
17SHELL=/bin/sh
18
19
20.SUFFIXES:
21.SUFFIXES: .c .o
22
23LIBOBJ=lib/getopt.o 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
28OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o
29DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
30OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ)
31
32# note that the -I. is needed to handle config.h when using VPATH
33.c.o:
34@OBJ_SAVE@
35 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< @CC_SHOBJ_FLAG@
36@OBJ_RESTORE@
37
38all: rsync
39
40man: rsync.1 rsyncd.conf.5
41
42install: all
43 -mkdir -p ${bindir}
44 ${INSTALLCMD} -m 755 rsync ${bindir}
45 -mkdir -p ${mandir}/man1
46 -mkdir -p ${mandir}/man5
47 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${mandir}/man1
48 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${mandir}/man5
49
50install-strip:
51 $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install
52
53rsync: $(OBJS)
54 $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
55
56rsync.1: rsync.yo
57 yodl2man -o rsync.1 rsync.yo
58
59rsyncd.conf.5: rsyncd.conf.yo
60 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
61
62proto:
63 cat *.c | awk -f mkproto.awk > proto.h
64
65clean:
66 rm -f *~ $(OBJS) rsync
67
68
69# this target is really just for my use. It only works on a limited
70# range of machines and is used to produce a list of potentially
71# dead (ie. unused) functions in the code. (tridge)
72finddead:
73 nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
74 nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
75 comm -13 nmused.txt nmfns.txt