diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 70cad233587..b6d56977738 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -9,7 +9,8 @@ MAKE = make | |||
| 9 | 9 | ||
| 10 | CC=cc | 10 | CC=cc |
| 11 | CFLAGS=-g | 11 | CFLAGS=-g |
| 12 | srcdir=. | 12 | srcdir=@srcdir@/src |
| 13 | VPATH=@srcdir@/src | ||
| 13 | LN_S=ln -s | 14 | LN_S=ln -s |
| 14 | 15 | ||
| 15 | # ============================= Targets ============================== | 16 | # ============================= Targets ============================== |
| @@ -72,8 +73,8 @@ relock: | |||
| 72 | ### the definition of CPP above may fix it. | 73 | ### the definition of CPP above may fix it. |
| 73 | xmakefile: ymakefile config.h | 74 | xmakefile: ymakefile config.h |
| 74 | -rm -f xmakefile xmakefile.new junk.c junk.cpp | 75 | -rm -f xmakefile xmakefile.new junk.c junk.cpp |
| 75 | cp ymakefile junk.c | 76 | cp ${srcdir}/ymakefile junk.c |
| 76 | ${CPP} ${CFLAGS} junk.c > junk.cpp \ | 77 | ${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp \ |
| 77 | -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ | 78 | -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ |
| 78 | | sed -e 's/-g /C_DEBUG_SWITCH /' \ | 79 | | sed -e 's/-g /C_DEBUG_SWITCH /' \ |
| 79 | -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`" | 80 | -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`" |
| @@ -81,6 +82,8 @@ xmakefile: ymakefile config.h | |||
| 81 | sed -e 's/^#.*//' \ | 82 | sed -e 's/^#.*//' \ |
| 82 | -e 's/^[ \f\t][ \f\t]*$$//' \ | 83 | -e 's/^[ \f\t][ \f\t]*$$//' \ |
| 83 | -e 's/^ / /' \ | 84 | -e 's/^ / /' \ |
| 85 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | ||
| 86 | -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \ | ||
| 84 | | sed -n -e '/^..*$$/p' \ | 87 | | sed -n -e '/^..*$$/p' \ |
| 85 | > xmakefile.new | 88 | > xmakefile.new |
| 86 | mv -f xmakefile.new xmakefile | 89 | mv -f xmakefile.new xmakefile |