first vesrion of working socket based rsync. It still needs a lot of
[rsync/rsync.git] / Makefile.in
1 # Makefile for rsync. This is processed by configure to produce the final
2 # Makefile
3
4 prefix=@prefix@
5 exec_prefix=@exec_prefix@
6 INSTALL_BIN=$(exec_prefix)/bin
7 INSTALL_MAN=$(prefix)/man
8
9 LIBS=@LIBS@
10 CC=@CC@
11 CFLAGS=@CFLAGS@
12
13 INSTALLCMD=@INSTALL@
14
15 VPATH=@srcdir@
16 srcdir=@srcdir@
17 SHELL=/bin/sh
18
19
20 .SUFFIXES:
21 .SUFFIXES: .c .o
22
23 LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
24 OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o log.o
25 DAEMON_OBJ = params.o loadparm.o 
26 OBJS=$(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
32 all: rsync
33
34 install: 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
40 rsync: $(OBJS)
41         $(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
42
43 proto:
44         cat *.c | awk -f mkproto.awk > proto.h
45
46 clean:
47         rm -f *~ $(OBJS) rsync config.cache config.log config.status
48
49 dist:
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