1 # Makefile for rsync. This is processed by configure to produce the final
5 exec_prefix=@
exec_prefix@
23 LIBOBJ
=lib
/getopt.o lib
/fnmatch.o lib
/compat.o lib
/snprintf.o lib
/mdfour.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 generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.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
35 $(CC
) -I.
-I
$(srcdir) $(CFLAGS
) -c
$< @CC_SHOBJ_FLAG@
40 man
: rsync
.1 rsyncd.conf
.5
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
51 $(MAKE
) INSTALLCMD
='$(INSTALLCMD) -s' install
54 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o rsync
$(OBJS
) $(LIBS
)
57 yodl2man
-o rsync
.1 rsync.yo
59 rsyncd.conf
.5: rsyncd.conf.yo
60 yodl2man
-o rsyncd.conf
.5 rsyncd.conf.yo
63 cat
*.c lib
/compat.c | awk
-f mkproto.awk
> proto.h
66 rm -f
*~
$(OBJS
) rsync
69 rm -f config.h config.cache config.status Makefile
72 # this target is really just for my use. It only works on a limited
73 # range of machines and is used to produce a list of potentially
74 # dead (ie. unused) functions in the code. (tridge)
76 nm
*.o
*/*.o |grep
'U ' | awk
'{print $$2}' |
sort -u
> nmused.txt
77 nm
*.o
*/*.o |grep
'T ' | awk
'{print $$3}' |
sort -u
> nmfns.txt
78 comm
-13 nmused.txt nmfns.txt