comparison lib-src/Makefile.in @ 22870:f006715d846c

(REGEXPDEPS, regex.o): Prepend $(srcdir)/ to rule dependencies outside this dir.
author Richard M. Stallman <rms@gnu.org>
date Sun, 02 Aug 1998 00:24:15 +0000
parents 84967b95587b
children 24d04663d38b
comparison
equal deleted inserted replaced
22869:6eb4bc9083e8 22870:f006715d846c
57 57
58 # Where to find the source code. This is set by the configure 58 # Where to find the source code. This is set by the configure
59 # script's `--srcdir' option. However, the value of ${srcdir} in 59 # script's `--srcdir' option. However, the value of ${srcdir} in
60 # this makefile is not identical to what was specified with --srcdir, 60 # this makefile is not identical to what was specified with --srcdir,
61 # since the variable here has `/lib-src' added at the end. 61 # since the variable here has `/lib-src' added at the end.
62
63 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
62 srcdir=@srcdir@ 64 srcdir=@srcdir@
63 VPATH=@srcdir@ 65 VPATH=@srcdir@
64 66
65 # The top-level source directory, also set by configure. 67 # The top-level source directory, also set by configure.
66 top_srcdir=@top_srcdir@ 68 top_srcdir=@top_srcdir@
349 #ifdef REGEXP_IN_LIBC 351 #ifdef REGEXP_IN_LIBC
350 REGEXPOBJ = 352 REGEXPOBJ =
351 REGEXPDEPS = 353 REGEXPDEPS =
352 #else 354 #else
353 REGEXPOBJ = regex.o 355 REGEXPOBJ = regex.o
354 REGEXPDEPS = $(REGEXPOBJ) ../src/regex.h 356 REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
355 #endif 357 #endif
356 358
357 regex.o: ../src/regex.c ../src/regex.h ../src/config.h 359 regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
358 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c 360 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
359 361
360 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h 362 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
361 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags 363 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
362 364