comparison src/=Makefile.in @ 2720:ad53bd625e1c

* Makefile.in (DEFS): Remove this; we have configure build a config.h file directly, instead of having lots of -D flags. * Makefile.in (CFLAGS): Don't make this carry DEFS from the configure script; the coding standards say that CFLAGS should be left for the user to tweak. * Makefile.in (LN_S): New variable, edited by top Makefile. (SUBMAKEFILE): New variable, containing all flags to pass to recursive makes.
author Jim Blandy <jimb@redhat.com>
date Mon, 10 May 1993 00:13:32 +0000
parents f006be4acbed
children 7c0be881a633
comparison
equal deleted inserted replaced
2719:340d7c6c8790 2720:ad53bd625e1c
6 # BSD doesn't have it as a default. 6 # BSD doesn't have it as a default.
7 7
8 # ==================== Things `configure' might edit ==================== 8 # ==================== Things `configure' might edit ====================
9 9
10 CC=cc 10 CC=cc
11 DEFS=-g 11 CFLAGS=-g
12 srcdir=. 12 srcdir=.
13 LN_S=ln -s
13 14
14 # ============================= Targets ============================== 15 # ============================= Targets ==============================
15 16
16 CPP = $(CC) -E -Is -Im 17 CPP = $(CC) -E -Is -Im
17 #Note: an alternative is CPP = /lib/cpp 18 #Note: an alternative is CPP = /lib/cpp
18 19
19 # Just to avoid uncertainty. 20 # Just to avoid uncertainty.
20 SHELL = /bin/sh 21 SHELL = /bin/sh
21 22
22 CFLAGS=${DEFS} 23 SUBMAKEFLAGS = CC='${CC}' LN_S='${LN_S}'
23 24
24 all: doall 25 all: doall
25 26
26 doall: xmakefile 27 doall: xmakefile
27 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} all 28 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} all
28 29
29 #This is used in making a distribution. 30 #This is used in making a distribution.
30 #Do not use it on development directories! 31 #Do not use it on development directories!
31 distclean: 32 distclean:
32 -rm -f paths.h config.h emacs-* temacs emacs xmakefile core *.o 33 -rm -f paths.h config.h emacs-* temacs emacs xmakefile core *.o
42 43
43 emacs: doemacs 44 emacs: doemacs
44 @true 45 @true
45 46
46 doemacs: xmakefile 47 doemacs: xmakefile
47 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} emacs 48 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} emacs
48 49
49 temacs: dotemacs 50 temacs: dotemacs
50 @true 51 @true
51 52
52 dotemacs: xmakefile 53 dotemacs: xmakefile
53 $(MAKE) CC='${CC}' -f xmakefile ${MFLAGS} temacs 54 $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} temacs
54 55
55 SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \ 56 SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \
56 config.h.in README COPYING ChangeLog vms.pp-trans 57 config.h.in README COPYING ChangeLog vms.pp-trans
57 unlock: 58 unlock:
58 chmod u+w $(SOURCES) 59 chmod u+w $(SOURCES)