Mercurial > emacs
diff src/=Makefile.in @ 1647:bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
it in to RCS so I can check my changes in with FSF Cambridge.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 06 Dec 1992 22:12:37 +0000 |
parents | 10665fb61dd4 |
children | bf8ee433f4d2 |
line wrap: on
line diff
--- a/src/=Makefile.in Fri Dec 04 19:59:59 1992 +0000 +++ b/src/=Makefile.in Sun Dec 06 22:12:37 1992 +0000 @@ -5,7 +5,10 @@ MAKE = make # BSD doesn't have it as a default. -CC =gcc +# These values are edited by configure. +CC=cc +CFLAGS=-g + CPP = $(CC) -E -Is -Im #Note: an alternative is CPP = /lib/cpp @@ -40,7 +43,13 @@ xmakefile: ymakefile config.h -rm -f xmakefile xmakefile.new junk.c junk.cpp cp ymakefile junk.c - $(CPP) junk.c > junk.cpp + ## The flags for optimization and debugging depend on the + ## system, so take an ordinary CFLAGS value and choose the + ## appropriate CPP symbols to use in ymakefile. + $(CPP) junk.c > junk.cpp \ + -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ + | sed -e 's/-g /C_DEBUG_SWITCH /' \ + -e 's/-O /C_OPTIMIZE_SWITCH /`" < junk.cpp \ sed -e 's/^#.*//' \ -e 's/^[ \f\t][ \f\t]*$$//' \ @@ -48,7 +57,7 @@ | sed -n -e '/^..*$$/p' \ > xmakefile.new mv -f xmakefile.new xmakefile - rm -f junk.c + rm -f junk.c junk.cpp tags TAGS: etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el \