From 366bd9056c192760b6389cdb00fc1eaafb166d1d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 25 Mar 1998 04:14:18 +0000 Subject: [PATCH] changes to make VPATH work correctly, thanks to patl@cag.lcs.mit.edu --- Makefile.in | 3 ++- configure.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index f634863c..d0184870 100644 --- a/Makefile.in +++ b/Makefile.in @@ -24,8 +24,9 @@ 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) +# note that the -I. is needed to handle config.h when using VPATH .c.o: - $(CC) -I$(srcdir) $(CFLAGS) -c $*.c -o $*.o + $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@ all: rsync diff --git a/configure.in b/configure.in index bd6384c2..412d2cd9 100644 --- a/configure.in +++ b/configure.in @@ -67,4 +67,4 @@ AC_TRY_COMPILE([#include echo yes;AC_DEFINE(HAVE_UTIMBUF), echo no) -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile lib/dummy) -- 2.34.1