# 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=ccCPP=cc -ECFLAGS=-gC_SWITCH_SYSTEM=srcdir=@srcdir@/srcVPATH=@srcdir@/srcLN_S=ln -s# ============================= Targets ==============================CPP = $(CC) -E -Is -Im#Note: an alternative is CPP = /lib/cpp# Just to avoid uncertainty.SHELL = /bin/shSUBMAKEFLAGS = CC='${CC}' LN_S='${LN_S}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'all: doalldoall: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} allmostlyclean: rm -f temacs emacs prefix-args xmakefile* core \#* *.o libXMenu11.a rm -f ../etc/DOCclean: 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 TAGSversionclean: -rm -f emacs emacs-* ../etc/DOC*extraclean: distclean -rm -f *~ \#* m/*~ s/*~emacs: doemacs @truedoemacs: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} emacstemacs: dotemacs @truedotemacs: xmakefile $(MAKE) ${SUBMAKEFLAGS} -f xmakefile ${MFLAGS} temacsSOURCES = *.[ch] [sm]/* COPYING Makefile.in ymakefile \ config.h.in README COPYING ChangeLog vms.pp-transunlock: 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} ${C_SWITCH_SYSTEM} ${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.cpptagsfiles = [a-z]*.h [a-z]*.c ../lisp/[a-z]*.el ../lisp/term/[a-z]*.elTAGS: $(tagsfiles) etags $(tagsfiles)tags: TAGS.PHONY: tags