diff options
author | Jim Blandy <jimb@redhat.com> | 1992-12-06 22:12:37 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-12-06 22:12:37 +0000 |
commit | 33c6dfd407c78217c18022be1952d0f1f97d2cc1 (patch) | |
tree | 4b28d50b0920f11dd81b4f6b3c242c81e71199b5 /src/=Makefile.in | |
parent | a2df0f539ce43045663c331b858dfde917bbcd86 (diff) | |
download | emacs-33c6dfd407c78217c18022be1952d0f1f97d2cc1.tar.gz |
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.
Diffstat (limited to 'src/=Makefile.in')
-rw-r--r-- | src/=Makefile.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/=Makefile.in b/src/=Makefile.in index 04a083123b0..79994082791 100644 --- a/src/=Makefile.in +++ b/src/=Makefile.in @@ -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 @@ dotemacs: xmakefile 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 @@ xmakefile: ymakefile config.h | 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 \ |