fixed a typecast
[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@
6INSTALL_BIN=$(exec_prefix)/bin
7INSTALL_MAN=$(prefix)/man
8
9LIBS=@LIBS@
10CC=@CC@
11CFLAGS=@CFLAGS@
12
13INSTALLCMD=@INSTALL@
14
15VPATH=@srcdir@
16srcdir=@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
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 md4.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 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
35
36all: rsync
37
38man: rsync.1 rsyncd.conf.5
39
40install: all
41 -mkdir -p ${INSTALL_BIN}
42 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
43 -mkdir -p ${INSTALL_MAN}/man1
44 -mkdir -p ${INSTALL_MAN}/man5
45 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
46 ${INSTALLCMD} -m 644 $(srcdir)/rsyncd.conf.5 ${INSTALL_MAN}/man5
47
48rsync: $(OBJS)
49 $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
50
51rsync.1: rsync.yo
52 yodl2man -o rsync.1 rsync.yo
53
54rsyncd.conf.5: rsyncd.conf.yo
55 yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
56
57proto:
58 cat *.c | awk -f mkproto.awk > proto.h
59
60clean:
61 rm -f *~ $(OBJS) rsync config.cache config.log config.status
62
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