configuration parsing and loading code for rsyncd. This is based
[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/zlib.o lib/compat.o
24OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o log.o
25DAEMON_OBJ = params.o loadparm.o
26OBJS=$(OBJS1) $(DAEMON_OBJ) flist.o io.o compat.o hlink.o token.o uidlist.o socket.o $(LIBOBJ)
27
28# note that the -I. is needed to handle config.h when using VPATH
29.c.o:
30 $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
31
32all: rsync
33
34install: all
35 -mkdir -p ${INSTALL_BIN}
36 ${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
37 -mkdir -p ${INSTALL_MAN}/man1
38 ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
39
40rsync: $(OBJS)
41 $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
42
43proto:
44 cat *.c | awk -f mkproto.awk > proto.h
45
46clean:
47 rm -f *~ $(OBJS) rsync config.cache config.log config.status
48
49dist:
50 tar --exclude-from .ignore -czf dist.tar.gz .
51 -mkdir rsync-$(VERSION)
52 (cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)
53 tar -czf rsync-$(VERSION).tar.gz rsync-$(VERSION)
54 rm -f dist.tar.gz
55 echo rsync-$(VERSION) >> .cvsignore