fixed a typecast
[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
f8be5ef4 23LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o lib/snprintf.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 \
26 zlib/zutil.o zlib/adler32.o
2f03f956 27OBJS1=rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o md4.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
6bbbc08b 41 -mkdir -p ${INSTALL_BIN}
c627d613 42 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
6bbbc08b 43 -mkdir -p ${INSTALL_MAN}/man1
41059f75 44 -mkdir -p ${INSTALL_MAN}/man5
d0390cd3 45 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
41059f75 46 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${INSTALL_MAN}/man5
c627d613 47
95a38e86 48rsync: $(OBJS)
da81e215 49 $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
c627d613 50
41059f75 51rsync.1: rsync.yo
a87b3b2a 52 yodl2man -o rsync.1 rsync.yo
41059f75
AT
53
54rsyncd.conf.5: rsyncd.conf.yo
a87b3b2a 55 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
41059f75 56
c627d613
AT
57proto:
58 cat *.c | awk -f mkproto.awk > proto.h
59
60clean:
61 rm -f *~ $(OBJS) rsync config.cache config.log config.status
62
6e4fb64e
AT
63
64# this target is really just for my use. It only works on a limited
65# range of machines and is used to produce a list of potentially
66# dead (ie. unused) functions in the code. (tridge)
67finddead:
68 nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
69 nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
70 comm -13 nmused.txt nmfns.txt