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