# Makefile for rsync. This is processed by configure to produce the final
# Makefile
-INSTALL_BIN=@prefix@/bin
-INSTALL_MAN=@prefix@/man
-
-CCOPTFLAGS = -O
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+INSTALL_BIN=$(exec_prefix)/bin
+INSTALL_MAN=$(prefix)/man
LIBS=@LIBS@
-CC=@CC@ $(CCOPTFLAGS)
+CC=@CC@
+CFLAGS=@CFLAGS@
INSTALLCMD=@INSTALL@
-
-SRC=@srcdir@
+VPATH=@srcdir@
+srcdir=@srcdir@
SHELL=/bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
-LIBOBJ=lib/getopt.o lib/fnmatch.o
-OBJS=rsync.o exclude.o util.o md4.o main.o checksum.o match.o flist.o $(LIBOBJ)
+LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
+OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o syscall.o
+OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o uidlist.o $(LIBOBJ)
.c.o:
- $(CC) $(CFLAGS) -c $*.c -o $*.o
+ $(CC) -I$(srcdir) $(CFLAGS) -c $*.c -o $*.o
all: rsync
install: all
+ -mkdir -p ${INSTALL_BIN}
${INSTALLCMD} -m 755 rsync ${INSTALL_BIN}
- ${INSTALLCMD} -m 644 rsync.1 ${INSTALL_MAN}/man1
+ -mkdir -p ${INSTALL_MAN}/man1
+ ${INSTALLCMD} -m 644 $(srcdir)/rsync.1 ${INSTALL_MAN}/man1
-rsync: $(OBJS)
+rsync: $(OBJS)
$(CC) $(CFLAGS) -o rsync $(OBJS) $(LIBS)
proto:
clean:
rm -f *~ $(OBJS) rsync config.cache config.log config.status
-dist:
+dist:
tar --exclude-from .ignore -czf dist.tar.gz .
-mkdir rsync-$(VERSION)
(cd rsync-$(VERSION) ; tar xzf ../dist.tar.gz)