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.
22 CFLAGS
=${CONFIG_CFLAGS}
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
*~ \
#* m/*~ s/*~
43 $(MAKE
) CC
='${CC}' -f xmakefile
${MFLAGS} emacs
48 $(MAKE
) CC
='${CC}' -f xmakefile
${MFLAGS} temacs
50 # If you have a problem with cc -E here, changing
51 # the definition of CPP above may fix it.
52 xmakefile
: ymakefile config.h
53 -rm -f xmakefile xmakefile.new junk.c junk.
cpp
55 ## The flags for optimization and debugging depend on the
56 ## system, so take an ordinary CFLAGS value and choose the
57 ## appropriate CPP symbols to use in ymakefile.
58 $(CPP
) junk.c
> junk.
cpp \
59 -DC_SWITCH_SITE
="`echo ${CFLAGS}' ' \
60 | sed -e 's/-g /C_DEBUG_SWITCH /' \
61 -e 's/-O /C_OPTIMIZE_SWITCH /`"
64 -e
's/^[ \f\t][ \f\t]*$$//' \
66 | sed
-n
-e
'/^..*$$/p' \
68 mv
-f xmakefile.new xmakefile
72 tagsfiles
= [a-z
]*.h
[a-z
]*.c ..
/lisp
/[a-z
]*.el ..
/lisp
/term
/[a-z
]*.el \