Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
1646:81cdb2347fab | 1647:bd3afc204773 |
---|---|
3 # DIST: that first. | 3 # DIST: that first. |
4 | 4 |
5 MAKE = make | 5 MAKE = make |
6 # BSD doesn't have it as a default. | 6 # BSD doesn't have it as a default. |
7 | 7 |
8 CC =gcc | 8 # These values are edited by configure. |
9 CC=cc | |
10 CFLAGS=-g | |
11 | |
9 CPP = $(CC) -E -Is -Im | 12 CPP = $(CC) -E -Is -Im |
10 #Note: an alternative is CPP = /lib/cpp | 13 #Note: an alternative is CPP = /lib/cpp |
11 | 14 |
12 # Just to avoid uncertainty. | 15 # Just to avoid uncertainty. |
13 SHELL = /bin/sh | 16 SHELL = /bin/sh |
38 # If you have a problem with cc -E here, changing | 41 # If you have a problem with cc -E here, changing |
39 # the definition of CPP above may fix it. | 42 # the definition of CPP above may fix it. |
40 xmakefile: ymakefile config.h | 43 xmakefile: ymakefile config.h |
41 -rm -f xmakefile xmakefile.new junk.c junk.cpp | 44 -rm -f xmakefile xmakefile.new junk.c junk.cpp |
42 cp ymakefile junk.c | 45 cp ymakefile junk.c |
43 $(CPP) junk.c > junk.cpp | 46 ## The flags for optimization and debugging depend on the |
47 ## system, so take an ordinary CFLAGS value and choose the | |
48 ## appropriate CPP symbols to use in ymakefile. | |
49 $(CPP) junk.c > junk.cpp \ | |
50 -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ | |
51 | sed -e 's/-g /C_DEBUG_SWITCH /' \ | |
52 -e 's/-O /C_OPTIMIZE_SWITCH /`" | |
44 < junk.cpp \ | 53 < junk.cpp \ |
45 sed -e 's/^#.*//' \ | 54 sed -e 's/^#.*//' \ |
46 -e 's/^[ \f\t][ \f\t]*$$//' \ | 55 -e 's/^[ \f\t][ \f\t]*$$//' \ |
47 -e 's/^ / /' \ | 56 -e 's/^ / /' \ |
48 | sed -n -e '/^..*$$/p' \ | 57 | sed -n -e '/^..*$$/p' \ |
49 > xmakefile.new | 58 > xmakefile.new |
50 mv -f xmakefile.new xmakefile | 59 mv -f xmakefile.new xmakefile |
51 rm -f junk.c | 60 rm -f junk.c junk.cpp |
52 | 61 |
53 tags TAGS: | 62 tags TAGS: |
54 etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el \ | 63 etags [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el \ |
55 ../external-lisp/*.el | 64 ../external-lisp/*.el |