Mercurial > emacs
view src/=Makefile.in @ 3883:b9e5a869b33e
Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
compute_char_face), so that we don't waste global face id's.
* xterm.h (struct x_display): Replace the fields faces and n_faces
with fields param_faces, n_param_faces, computed_faces,
n_computed_faces, and size_computed_faces.
(FRAME_FACES, FRAME_N_FACES): Replaced by...
(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
FRAME_N_PARAM_FACES): New macros.
* xfaces.c: Doc fixes.
(init_frame_faces): Call new_computed_face to create entries for
the default and mode line faces. Use the FRAME...PARAM_FACES
macros.
(free_frame_faces): Use the FRAME...PARAM_FACES and
FRAME...COMPUTED_FACES macros. Don't use the copy flag; all
parameter faces have real X resources, and all computed faces just
have copies. Free both the parameter and computed face arrays.
(new_computed_face): New function.
(intern_computed_face): Renamed from intern_frame_face; callers
changed. Call new_computed_face.
(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
FRAME...PARAM_FACES macros.
(recompute_basic_faces): Use the FRAME...PARAM_FACES and
FRAME...COMPUTED_FACES macros. Produce the computed faces by
starting with the base faces and merging in the parameter faces.
(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
macros. Just call recompute_basic_faces if the default or mode
line faces have changed.
* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
* dispextern.h (struct face): Remove the copy member. This is no
longer necessary; all computed faces are copies, and no parameter
faces are.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 22 Jun 1993 07:26:44 +0000 |
parents | 6c2fc671adec |
children | bd7c1de63152 |
line wrap: on
line source
# DIST: This is the distribution Makefile for Emacs. configure can # DIST: make most of the changes to this file you might want, so try # DIST: that first. MAKE = make # BSD doesn't have it as a default. # ==================== Things `configure' might edit ==================== CC=cc CPP=cc -E CFLAGS=-g srcdir=@srcdir@/src VPATH=@srcdir@/src LN_S=ln -s # ============================= Targets ============================== CPP = $(CC) -E -Is -Im #Note: an alternative is CPP = /lib/cpp # Just to avoid uncertainty. SHELL = /bin/sh SUBMAKEFLAGS = CC='${CC}' LN_S='${LN_S}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' all: doall doall: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} all mostlyclean: rm -f temacs emacs prefix-args xmakefile* core \#* *.o libXMenu11.a rm -f ../etc/DOC clean: mostlyclean true #This is used in making a distribution. #Do not use it on development directories! distclean: clean rm -f paths.h config.h emacs-* ../etc/DOC-* realclean: distclean rm -f TAGS versionclean: -rm -f emacs emacs-* ../etc/DOC* extraclean: distclean -rm -f *~ \#* m/*~ s/*~ emacs: doemacs @true doemacs: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} emacs temacs: dotemacs @true dotemacs: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} temacs SOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \ config.h.in README COPYING ChangeLog vms.pp-trans unlock: chmod u+w $(SOURCES) relock: chmod -w $(SOURCES) chmod +w paths.h ### Some makes, like Ultrix's make, complain if you put a comment in ### the middle of a rule's command list! Dummies. ### 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. ### If you have a problem with cc -E here, changing ### the definition of CPP above may fix it. # Remake xmakefile whenever we reconfigure even if config.h didn't change. xmakefile: ymakefile config.h ../config.status -rm -f xmakefile xmakefile.new junk.c junk.cpp cp ${srcdir}/ymakefile junk.c ${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp < junk.cpp \ sed -e 's/^#.*//' \ -e 's/^[ \f\t][ \f\t]*$$//' \ -e 's/^ / /' \ -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \ | sed -n -e '/^..*$$/p' \ > xmakefile.new mv -f xmakefile.new xmakefile chmod 444 xmakefile rm -f junk.c junk.cpp tagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.el TAGS: $(tagsfiles) etags $(tagsfiles) tags: TAGS .PHONY: tags