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 ====================
16 # ============================= Targets ==============================
18 CPP
= $(CC
) -E
-Is
-Im
19 #Note: an alternative is CPP = /lib/cpp
21 # Just to avoid uncertainty.
24 SUBMAKEFLAGS
= CC
='${CC}' LN_S
='${LN_S}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}'
29 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} all
31 #This is used in making a distribution.
32 #Do not use it on development directories!
34 -rm -f paths.h config.h emacs-
* temacs emacs xmakefile core
*.o
37 -rm -f temacs emacs prefix-args xmakefile
* core \
#* *.o libXMenu11.a
40 -rm -f emacs emacs-
* ..
/etc
/DOC
*
43 -rm -f
*~ \
#* m/*~ s/*~
49 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} emacs
55 $(MAKE
) ${SUBMAKEFLAGS} -f xmakefile
${MFLAGS} temacs
57 SOURCES
= *.
[ch
] [sm
]/* COPYING Makefile.in ymakefile \
58 config.h.in README COPYING ChangeLog vms.pp-trans
66 ### Some makes, like Ultrix's make, complain if you put a comment in
67 ### the middle of a rule's command list! Dummies.
69 ### The flags for optimization and debugging depend on the
70 ### system, so take an ordinary CFLAGS value and choose the
71 ### appropriate CPP symbols to use in ymakefile.
72 ### If you have a problem with cc -E here, changing
73 ### the definition of CPP above may fix it.
75 # Remake xmakefile whenever we reconfigure even if config.h didn't change.
76 xmakefile
: ymakefile config.h ..
/config.status
77 -rm -f xmakefile xmakefile.new junk.c junk.
cpp
78 cp
${srcdir}/ymakefile junk.c
79 ${CPP} -I
${srcdir} ${CFLAGS} junk.c
> junk.
cpp \
80 -DC_SWITCH_SITE
="`echo ${CFLAGS}' ' \
81 | sed -e 's/-g /C_DEBUG_SWITCH /' \
82 -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
85 -e
's/^[ \f\t][ \f\t]*$$//' \
87 -e
's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \
88 -e
's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \
89 | sed
-n
-e
'/^..*$$/p' \
91 mv
-f xmakefile.new xmakefile
95 tagsfiles
= [a-z
]*.h
[a-z
]*.c ..
/lisp
/[a-z
]*.el ..
/lisp
/term
/[a-z
]*.el