1 # DIST: This is the distribution Makefile for Emacs. configure can
2 # DIST: make most of the changes to this file you might want, so try
6 # BSD doesn't have it as a default.
8 # ==================== Things `configure' might edit ====================
14 # ============================= Targets ==============================
16 CPP
= $(CC
) -E
-Is
-Im
17 #Note: an alternative is CPP = /lib/cpp
19 # Just to avoid uncertainty.
27 $(MAKE
) CC
='${CC}' -f xmakefile
${MFLAGS} all
29 #This is used in making a distribution.
30 #Do not use it on development directories!
32 -rm -f paths.h config.h emacs-
* temacs emacs xmakefile core
*.o
35 -rm -f temacs emacs prefix-args xmakefile
* core \
#* *.o
38 -rm -f emacs emacs-
* ..
/etc
/DOC
*
41 -rm -f
*~ \
#* m/*~ s/*~
47 $(MAKE
) CC
='${CC}' -f xmakefile
${MFLAGS} emacs
53 $(MAKE
) CC
='${CC}' -f xmakefile
${MFLAGS} temacs
55 SOURCES
= *.
[ch
] [sm
]/* COPYING Makefile.in ymakefile \
56 config.h.in README COPYING ChangeLog vms.pp-trans
64 ### Some makes, like Ultrix's make, complain if you put a comment in
65 ### the middle of a rule's command list! Dummies.
67 ### The flags for optimization and debugging depend on the
68 ### system, so take an ordinary CFLAGS value and choose the
69 ### appropriate CPP symbols to use in ymakefile.
70 ### If you have a problem with cc -E here, changing
71 ### the definition of CPP above may fix it.
72 xmakefile
: ymakefile config.h
73 -rm -f xmakefile xmakefile.new junk.c junk.
cpp
75 ${CPP} ${CFLAGS} junk.c
> junk.
cpp \
76 -DC_SWITCH_SITE
="`echo ${CFLAGS}' ' \
77 | sed -e 's/-g /C_DEBUG_SWITCH /' \
78 -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
81 -e
's/^[ \f\t][ \f\t]*$$//' \
83 | sed
-n
-e
'/^..*$$/p' \
85 mv
-f xmakefile.new xmakefile
89 tagsfiles
= [a-z
]*.h
[a-z
]*.c ..
/lisp
/[a-z
]*.el ..
/lisp
/term
/[a-z
]*.el