1 |
# Makefile for GNU Emacs. |
# Makefile for GNU Emacs. |
2 |
# Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001 |
# Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001, 2003 |
3 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
4 |
|
|
5 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
37 |
CPPFLAGS=@CPPFLAGS@ |
CPPFLAGS=@CPPFLAGS@ |
38 |
LDFLAGS=@LDFLAGS@ |
LDFLAGS=@LDFLAGS@ |
39 |
LN_S=@LN_S@ |
LN_S=@LN_S@ |
40 |
|
EXEEXT=@EXEEXT@ |
41 |
# Substitute an assignment for the MAKE variable, because |
# Substitute an assignment for the MAKE variable, because |
42 |
# BSD doesn't have it as a default. |
# BSD doesn't have it as a default. |
43 |
@SET_MAKE@ |
@SET_MAKE@ |
108 |
#endif |
#endif |
109 |
|
|
110 |
/* GNU libc requires ORDINARY_LINK so that its own crt0 is used. |
/* GNU libc requires ORDINARY_LINK so that its own crt0 is used. |
111 |
Linux is an exception because it uses a funny variant of GNU libc. */ |
GNU/Linux is an exception because it uses a funny variant of GNU libc. */ |
112 |
#ifdef __GNU_LIBRARY__ |
#ifdef __GNU_LIBRARY__ |
113 |
#ifndef GNU_LINUX |
#ifndef GNU_LINUX |
114 |
#define ORDINARY_LINK |
#define ORDINARY_LINK |
253 |
#define C_SWITCH_ASM |
#define C_SWITCH_ASM |
254 |
#endif |
#endif |
255 |
|
|
256 |
|
#if HAVE_GTK |
257 |
|
#define USE_GTK |
258 |
|
TOOLKIT_DEFINES = -DUSE_GTK |
259 |
|
#endif |
260 |
|
|
261 |
#ifdef USE_X_TOOLKIT |
#ifdef USE_X_TOOLKIT |
262 |
#define USE_@X_TOOLKIT_TYPE@ |
#define USE_@X_TOOLKIT_TYPE@ |
263 |
TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@ |
TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@ |
264 |
#else |
#else |
265 |
|
#ifndef USE_GTK |
266 |
TOOLKIT_DEFINES = |
TOOLKIT_DEFINES = |
267 |
#endif |
#endif |
268 |
|
#endif |
269 |
|
|
270 |
/* DO NOT use -R. There is a special hack described in lastfile.c |
/* DO NOT use -R. There is a special hack described in lastfile.c |
271 |
which is used instead. Some initialized data areas are modified |
which is used instead. Some initialized data areas are modified |
280 |
|
|
281 |
/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
282 |
since it may have -I options that should override those two. */ |
since it may have -I options that should override those two. */ |
283 |
ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAG) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS} |
ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS} |
284 |
.c.o: |
.c.o: |
285 |
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
286 |
|
|
308 |
#ifdef HAVE_MENUS |
#ifdef HAVE_MENUS |
309 |
|
|
310 |
/* Include xmenu.o in the list of X object files. */ |
/* Include xmenu.o in the list of X object files. */ |
311 |
|
|
312 |
|
#ifdef USE_GTK |
313 |
|
XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o gtkutil.o |
314 |
|
#else |
315 |
XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o |
XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o |
316 |
|
#endif |
317 |
|
|
318 |
/* The X Menu stuff is present in the X10 distribution, but missing |
/* The X Menu stuff is present in the X10 distribution, but missing |
319 |
from X11. If we have X10, just use the installed library; |
from X11. If we have X10, just use the installed library; |
385 |
#endif /* not LIBXT_STATIC */ |
#endif /* not LIBXT_STATIC */ |
386 |
|
|
387 |
#else /* not USE_X_TOOLKIT */ |
#else /* not USE_X_TOOLKIT */ |
388 |
|
|
389 |
|
#ifdef USE_GTK |
390 |
|
LIBW=@GTK_LIBS@ |
391 |
|
OLDXMENU= |
392 |
|
LIBXMENU= |
393 |
|
#endif /* USE_GTK */ |
394 |
|
|
395 |
#ifdef HAVE_X_SM |
#ifdef HAVE_X_SM |
396 |
LIBXT=-lSM -lICE |
LIBXT=$(LIBW) -lSM -lICE |
397 |
#else |
#else |
398 |
LIBXT= |
LIBXT=$(LIBW) |
399 |
#endif |
#endif |
400 |
#endif /* not USE_X_TOOLKIT */ |
#endif /* not USE_X_TOOLKIT */ |
401 |
|
|
525 |
#endif /* not COFF_ENCAPSULATE */ |
#endif /* not COFF_ENCAPSULATE */ |
526 |
#endif /* not ORDINARY_LINK */ |
#endif /* not ORDINARY_LINK */ |
527 |
|
|
528 |
ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE \ |
/* Flags to pass to LD only for temacs. */ |
529 |
LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE $(LDFLAGS) |
/* Don't split this line with a backslash. That can cause trouble with |
530 |
|
some cpps. */ |
531 |
|
TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE |
532 |
|
|
533 |
/* A macro which other sections of Makefile can redefine to munge the |
/* A macro which other sections of Makefile can redefine to munge the |
534 |
flags before they're passed to LD. This is helpful if you have |
flags before they're passed to LD. This is helpful if you have |
560 |
#endif |
#endif |
561 |
|
|
562 |
#ifdef HAVE_CARBON |
#ifdef HAVE_CARBON |
563 |
|
mac = $(dot)$(dot)/mac/ |
564 |
XMENU_OBJ = |
XMENU_OBJ = |
565 |
MAC_OBJ = mac.o macterm.o macfns.o macmenu.o fontset.o |
MAC_OBJ = mac.o macterm.o macfns.o macmenu.o fontset.o |
566 |
emacsapp = ../mac/Emacs.app/ |
emacsapp = $(PWD)/$(mac)Emacs.app/ |
567 |
|
emacsappsrc = ${srcdir}/../mac/Emacs.app/ |
568 |
#else |
#else |
569 |
XMENU_OBJ = xmenu.o |
XMENU_OBJ = xmenu.o |
570 |
#endif |
#endif |
572 |
/* lastfile must follow all files |
/* lastfile must follow all files |
573 |
whose initialized data areas should be dumped as pure by dump-emacs. */ |
whose initialized data areas should be dumped as pure by dump-emacs. */ |
574 |
obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \ |
obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \ |
575 |
charset.o coding.o category.o ccl.o\ |
charset.o coding.o category.o ccl.o \ |
576 |
cm.o term.o xfaces.o $(XOBJ) \ |
cm.o term.o xfaces.o $(XOBJ) \ |
577 |
emacs.o keyboard.o macros.o keymap.o sysdep.o \ |
emacs.o keyboard.o macros.o keymap.o sysdep.o \ |
578 |
buffer.o filelock.o insdel.o marker.o \ |
buffer.o filelock.o insdel.o marker.o \ |
591 |
in case they are needed there. */ |
in case they are needed there. */ |
592 |
SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o \ |
SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o \ |
593 |
xterm.o xfns.o xmenu.o xselect.o xrdb.o \ |
xterm.o xfns.o xmenu.o xselect.o xrdb.o \ |
594 |
mac.o macterm.o macfns.o macmenu.o |
mac.o macterm.o macfns.o macmenu.o fontset.o |
595 |
|
|
596 |
|
|
597 |
#ifdef TERMINFO |
#ifdef TERMINFO |
690 |
${lispsource}buff-menu.elc \ |
${lispsource}buff-menu.elc \ |
691 |
${lispsource}button.elc \ |
${lispsource}button.elc \ |
692 |
${lispsource}byte-run.elc \ |
${lispsource}byte-run.elc \ |
693 |
|
${lispsource}cus-face.elc \ |
694 |
${lispsource}cus-start.elc \ |
${lispsource}cus-start.elc \ |
695 |
${lispsource}custom.elc \ |
${lispsource}custom.elc \ |
696 |
${lispsource}emacs-lisp/backquote.elc \ |
${lispsource}emacs-lisp/backquote.elc \ |
703 |
${lispsource}facemenu.elc \ |
${lispsource}facemenu.elc \ |
704 |
MOUSE_SUPPORT \ |
MOUSE_SUPPORT \ |
705 |
${lispsource}float-sup.elc \ |
${lispsource}float-sup.elc \ |
706 |
${lispsource}frame.elc\ |
${lispsource}frame.elc \ |
707 |
${lispsource}help.elc \ |
${lispsource}help.elc \ |
708 |
${lispsource}indent.elc \ |
${lispsource}indent.elc \ |
709 |
${lispsource}isearch.elc \ |
${lispsource}isearch.elc \ |
718 |
${lispsource}international/characters.elc \ |
${lispsource}international/characters.elc \ |
719 |
${lispsource}international/ucs-tables.elc \ |
${lispsource}international/ucs-tables.elc \ |
720 |
${lispsource}international/utf-8.elc \ |
${lispsource}international/utf-8.elc \ |
721 |
|
${lispsource}international/utf-16.elc \ |
722 |
${lispsource}international/latin-1.el \ |
${lispsource}international/latin-1.el \ |
723 |
${lispsource}international/latin-2.el \ |
${lispsource}international/latin-2.el \ |
724 |
${lispsource}international/latin-3.el \ |
${lispsource}international/latin-3.el \ |
731 |
${lispsource}language/cyrillic.elc \ |
${lispsource}language/cyrillic.elc \ |
732 |
${lispsource}language/indian.elc \ |
${lispsource}language/indian.elc \ |
733 |
${lispsource}language/devanagari.el \ |
${lispsource}language/devanagari.el \ |
734 |
|
${lispsource}language/malayalam.el \ |
735 |
|
${lispsource}language/tamil.el \ |
736 |
${lispsource}language/english.el \ |
${lispsource}language/english.el \ |
737 |
${lispsource}language/ethiopic.elc \ |
${lispsource}language/ethiopic.elc \ |
738 |
${lispsource}language/european.elc \ |
${lispsource}language/european.elc \ |
757 |
${lispsource}startup.elc \ |
${lispsource}startup.elc \ |
758 |
${lispsource}subr.elc \ |
${lispsource}subr.elc \ |
759 |
${lispsource}term/tty-colors.elc \ |
${lispsource}term/tty-colors.elc \ |
760 |
|
${lispsource}font-core.elc \ |
761 |
${lispsource}textmodes/fill.elc \ |
${lispsource}textmodes/fill.elc \ |
762 |
${lispsource}textmodes/page.elc \ |
${lispsource}textmodes/page.elc \ |
763 |
${lispsource}textmodes/paragraphs.elc \ |
${lispsource}textmodes/paragraphs.elc \ |
764 |
${lispsource}textmodes/text-mode.elc \ |
${lispsource}textmodes/text-mode.elc \ |
765 |
|
${lispsource}timer.elc \ |
766 |
${lispsource}vc-hooks.elc \ |
${lispsource}vc-hooks.elc \ |
767 |
${lispsource}ediff-hook.elc \ |
${lispsource}ediff-hook.elc \ |
768 |
VMS_SUPPORT \ |
VMS_SUPPORT \ |
781 |
../lisp/buff-menu.elc \ |
../lisp/buff-menu.elc \ |
782 |
../lisp/button.elc \ |
../lisp/button.elc \ |
783 |
../lisp/byte-run.elc \ |
../lisp/byte-run.elc \ |
784 |
|
../lisp/cus-face.elc \ |
785 |
../lisp/cus-start.elc \ |
../lisp/cus-start.elc \ |
786 |
../lisp/custom.elc \ |
../lisp/custom.elc \ |
787 |
../lisp/emacs-lisp/backquote.elc \ |
../lisp/emacs-lisp/backquote.elc \ |
807 |
../lisp/international/characters.elc \ |
../lisp/international/characters.elc \ |
808 |
../lisp/international/ucs-tables.elc \ |
../lisp/international/ucs-tables.elc \ |
809 |
../lisp/international/utf-8.elc \ |
../lisp/international/utf-8.elc \ |
810 |
|
../lisp/international/utf-16.elc \ |
811 |
../lisp/international/latin-1.el \ |
../lisp/international/latin-1.el \ |
812 |
../lisp/international/latin-2.el \ |
../lisp/international/latin-2.el \ |
813 |
../lisp/international/latin-3.el \ |
../lisp/international/latin-3.el \ |
820 |
../lisp/language/cyrillic.elc \ |
../lisp/language/cyrillic.elc \ |
821 |
../lisp/language/indian.elc \ |
../lisp/language/indian.elc \ |
822 |
../lisp/language/devanagari.el \ |
../lisp/language/devanagari.el \ |
823 |
|
../lisp/language/malayalam.el \ |
824 |
|
../lisp/language/tamil.el \ |
825 |
../lisp/language/english.el \ |
../lisp/language/english.el \ |
826 |
../lisp/language/ethiopic.elc \ |
../lisp/language/ethiopic.elc \ |
827 |
../lisp/language/european.elc \ |
../lisp/language/european.elc \ |
852 |
../lisp/textmodes/page.elc \ |
../lisp/textmodes/page.elc \ |
853 |
../lisp/textmodes/paragraphs.elc \ |
../lisp/textmodes/paragraphs.elc \ |
854 |
../lisp/textmodes/text-mode.elc \ |
../lisp/textmodes/text-mode.elc \ |
855 |
|
../lisp/timer.elc \ |
856 |
../lisp/vc-hooks.elc \ |
../lisp/vc-hooks.elc \ |
857 |
../lisp/ediff-hook.elc \ |
../lisp/ediff-hook.elc \ |
858 |
../lisp/widget.elc \ |
../lisp/widget.elc \ |
892 |
#define OBJECTS_MACHINE |
#define OBJECTS_MACHINE |
893 |
#endif |
#endif |
894 |
|
|
895 |
all: emacs OTHER_FILES |
all: emacs${EXEEXT} OTHER_FILES |
896 |
|
|
897 |
emacs: temacs ${etc}DOC ${lisp} |
emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} |
898 |
#ifdef CANNOT_DUMP |
#ifdef CANNOT_DUMP |
899 |
rm -f emacs |
rm -f emacs${EXEEXT} |
900 |
ln temacs emacs |
ln temacs${EXEEXT} emacs${EXEEXT} |
901 |
#else |
#else |
902 |
#ifdef HAVE_SHM |
#ifdef HAVE_SHM |
903 |
LC_ALL=C ./temacs -nl -batch -l loadup dump |
LC_ALL=C ./temacs -nl -batch -l loadup dump |
920 |
${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC |
${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC |
921 |
${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} |
${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} |
922 |
|
|
923 |
${libsrc}make-docfile: |
${libsrc}make-docfile${EXEEXT}: |
924 |
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile |
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT} |
925 |
|
|
926 |
/* Some systems define this to cause parallel Make-ing. */ |
/* Some systems define this to cause parallel Make-ing. */ |
927 |
#ifndef MAKE_PARALLEL |
#ifndef MAKE_PARALLEL |
928 |
#define MAKE_PARALLEL |
#define MAKE_PARALLEL |
929 |
#endif |
#endif |
930 |
|
|
931 |
temacs: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args |
temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} |
932 |
$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS}) \ |
$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
933 |
-o temacs ${STARTFILES} ${obj} ${otherobj} \ |
-o temacs ${STARTFILES} ${obj} ${otherobj} \ |
934 |
OBJECTS_MACHINE ${LIBES} |
OBJECTS_MACHINE ${LIBES} |
935 |
|
|
936 |
/* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE |
/* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE |
937 |
often contain options that have to do with using Emacs's crt0, |
often contain options that have to do with using Emacs's crt0, |
938 |
which are only good with temacs. */ |
which are only good with temacs. */ |
939 |
prefix-args: prefix-args.c $(config_h) |
prefix-args${EXEEXT}: prefix-args.c $(config_h) |
940 |
$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
941 |
|
|
942 |
/* Don't lose if this was not defined. */ |
/* Don't lose if this was not defined. */ |
955 |
to both ensure that lwlib gets remade based on its dependencies |
to both ensure that lwlib gets remade based on its dependencies |
956 |
in its own makefile, |
in its own makefile, |
957 |
and remake temacs if lwlib gets changed by this. */ |
and remake temacs if lwlib gets changed by this. */ |
958 |
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) |
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) |
959 |
touch stamp-oldxmenu |
touch stamp-oldxmenu |
960 |
/* Supply an ordering for parallel make. */ |
/* Supply an ordering for parallel make. */ |
961 |
../src/$(OLDXMENU): ${OLDXMENU} |
../src/$(OLDXMENU): ${OLDXMENU} |
1105 |
filelock.o: filelock.c buffer.h systime.h epaths.h $(config_h) |
filelock.o: filelock.c buffer.h systime.h epaths.h $(config_h) |
1106 |
filemode.o: filemode.c $(config_h) |
filemode.o: filemode.c $(config_h) |
1107 |
frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \ |
frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \ |
1108 |
buffer.h charset.h fontset.h msdos.h dosfns.h dispextern.h $(config_h) |
blockinput.h atimer.h systime.h buffer.h charset.h fontset.h \ |
1109 |
|
msdos.h dosfns.h dispextern.h $(config_h) |
1110 |
fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h charset.h frame.h \ |
fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h charset.h frame.h \ |
1111 |
keyboard.h $(config_h) |
keyboard.h $(config_h) |
1112 |
getloadavg.o: getloadavg.c $(config_h) |
getloadavg.o: getloadavg.c $(config_h) |
1113 |
indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \ |
indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \ |
1114 |
termopts.h disptab.h region-cache.h charset.h composite.h dispextern.h \ |
termopts.h disptab.h region-cache.h charset.h composite.h dispextern.h \ |
1115 |
keyboard.h |
keyboard.h |
1116 |
insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h charset.h\ |
insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h charset.h \ |
1117 |
dispextern.h atimer.h systime.h $(config_h) |
dispextern.h atimer.h systime.h $(config_h) |
1118 |
keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h charset.h \ |
keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h charset.h \ |
1119 |
commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \ |
commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \ |
1170 |
$(config_h) |
$(config_h) |
1171 |
xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h coding.h \ |
xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h coding.h \ |
1172 |
termchar.h frame.h window.h disptab.h termhooks.h charset.h $(config_h) \ |
termchar.h frame.h window.h disptab.h termhooks.h charset.h $(config_h) \ |
1173 |
msdos.h composite.h fontset.h |
msdos.h composite.h fontset.h blockinput.h atimer.h systime.h keymap.h |
1174 |
xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \ |
xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \ |
1175 |
window.h charset.h msdos.h dosfns.h composite.h atimer.h systime.h $(config_h) |
window.h charset.h msdos.h dosfns.h composite.h atimer.h systime.h $(config_h) |
1176 |
xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \ |
xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \ |
1177 |
$(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \ |
$(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \ |
1178 |
charset.h $(config_h) |
charset.h gtkutil.h $(config_h) |
1179 |
xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \ |
xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \ |
1180 |
keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h \ |
keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h \ |
1181 |
msdos.h $(config_h) |
gtkutil.h msdos.h $(config_h) |
1182 |
xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ |
xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ |
1183 |
dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ |
dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ |
1184 |
keyboard.h gnu.h charset.h ccl.h fontset.h composite.h \ |
keyboard.h gnu.h charset.h ccl.h fontset.h composite.h \ |
1185 |
coding.h process.h $(config_h) |
coding.h process.h gtkutil.h $(config_h) |
1186 |
xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \ |
xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \ |
1187 |
charset.h coding.h ccl.h buffer.h atimer.h systime.h $(config_h) |
charset.h coding.h ccl.h buffer.h atimer.h systime.h $(config_h) |
1188 |
xrdb.o: xrdb.c $(config_h) epaths.h |
xrdb.o: xrdb.c $(config_h) epaths.h |
1189 |
xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h lisp.h termhooks.h |
xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h |
1190 |
|
gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \ |
1191 |
|
blockinput.h window.h atimer.h termhooks.h |
1192 |
|
|
1193 |
hftctl.o: hftctl.c $(config_h) |
hftctl.o: hftctl.c $(config_h) |
1194 |
sound.o: sound.c dispextern.h $(config_h) |
sound.o: sound.c dispextern.h $(config_h) |
1195 |
atimer.o: atimer.c atimer.h systime.h $(config_h) |
atimer.o: atimer.c atimer.h systime.h $(config_h) |
1204 |
$(config_h) |
$(config_h) |
1205 |
floatfns.o: floatfns.c $(config_h) |
floatfns.o: floatfns.c $(config_h) |
1206 |
fns.o: fns.c commands.h $(config_h) frame.h buffer.h charset.h keyboard.h \ |
fns.o: fns.c commands.h $(config_h) frame.h buffer.h charset.h keyboard.h \ |
1207 |
frame.h window.h dispextern.h $(INTERVAL_SRC) |
frame.h window.h dispextern.h $(INTERVAL_SRC) coding.h |
1208 |
print.o: print.c process.h frame.h window.h buffer.h keyboard.h charset.h\ |
print.o: print.c process.h frame.h window.h buffer.h keyboard.h charset.h \ |
1209 |
$(config_h) dispextern.h msdos.h composite.h |
$(config_h) dispextern.h msdos.h composite.h |
1210 |
lread.o: lread.c commands.h keyboard.h buffer.h epaths.h charset.h $(config_h) \ |
lread.o: lread.c commands.h keyboard.h buffer.h epaths.h charset.h $(config_h) \ |
1211 |
termhooks.h coding.h msdos.h |
termhooks.h coding.h msdos.h |
1238 |
termchar.h gnu.h disptab.h buffer.h window.h keyboard.h $(INTERVAL_SRC) \ |
termchar.h gnu.h disptab.h buffer.h window.h keyboard.h $(INTERVAL_SRC) \ |
1239 |
process.h coding.h $(config_h) |
process.h coding.h $(config_h) |
1240 |
|
|
1241 |
macosx-app: ${emacsapp}Contents/MacOS/Emacs \ |
${emacsapp}Contents/Resources/English.lproj: |
1242 |
${emacsapp}Contents/Resources/Emacs.rsrc |
mkdir -p $@ |
|
|
|
|
${emacsapp}Contents/MacOS/Emacs: emacs |
|
|
if [ -d ${emacsapp}Contents/MacOS/ ]; then true; else \ |
|
|
mkdir ${emacsapp}Contents/MacOS/; \ |
|
|
fi |
|
|
cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs Emacs |
|
1243 |
|
|
1244 |
|
ifneq (${emacsapp},${emacsappsrc}) |
1245 |
|
${emacsapp}Contents/Info.plist: ${emacsappsrc}Contents/Info.plist |
1246 |
|
cp $< $@ |
1247 |
|
${emacsapp}Contents/PkgInfo: ${emacsappsrc}Contents/PkgInfo |
1248 |
|
cp $< $@ |
1249 |
|
${emacsapp}Contents/Resources/Emacs.icns: ${emacsappsrc}Contents/Resources/Emacs.icns |
1250 |
|
mkdir -p ${emacsapp}Contents/Resources |
1251 |
|
cp $< $@ |
1252 |
|
${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings: ${emacsappsrc}Contents/Resources/English.lproj/InfoPlist.strings |
1253 |
|
cp $< $@ |
1254 |
|
endif |
1255 |
|
|
1256 |
|
macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \ |
1257 |
|
${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo \ |
1258 |
|
${emacsapp}Contents/Resources/Emacs.icns \ |
1259 |
|
${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings |
1260 |
|
macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ |
1261 |
|
${emacsapp}Contents/Resources/Emacs.rsrc |
1262 |
|
${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT} |
1263 |
|
mkdir -p ${emacsapp}Contents/MacOS/; |
1264 |
|
cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT} |
1265 |
${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r |
${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r |
1266 |
/Developer/Tools/Rez -useDF -o \ |
/Developer/Tools/Rez -useDF \ |
1267 |
${emacsapp}Contents/Resources/Emacs.rsrc \ |
-o ${emacsapp}Contents/Resources/Emacs.rsrc \ |
1268 |
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.r \ |
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< |
|
../mac/src/Emacs.r |
|
1269 |
#endif |
#endif |
1270 |
|
|
1271 |
${libsrc}emacstool: ${libsrc}emacstool.c |
${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c |
1272 |
cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool |
cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT} |
1273 |
bootstrapclean: |
bootstrapclean: |
1274 |
rm -f bootstrap-emacs |
rm -f bootstrap-emacs${EXEEXT} |
1275 |
mostlyclean: |
mostlyclean: |
1276 |
rm -f temacs prefix-args core *.core \#* *.o libXMenu11.a liblw.a |
rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a |
1277 |
rm -f ../etc/DOC |
rm -f ../etc/DOC |
1278 |
rm -f bootstrap-emacs |
rm -f bootstrap-emacs${EXEEXT} |
1279 |
clean: mostlyclean |
clean: mostlyclean |
1280 |
rm -f emacs-* emacs |
rm -f emacs-*${EXEEXT} emacs${EXEEXT} |
1281 |
/**/# This is used in making a distribution. |
/**/# This is used in making a distribution. |
1282 |
/**/# Do not use it on development directories! |
/**/# Do not use it on development directories! |
1283 |
distclean: clean |
distclean: clean |
1290 |
@echo "it deletes files that may require special tools to rebuild." |
@echo "it deletes files that may require special tools to rebuild." |
1291 |
rm -f TAGS |
rm -f TAGS |
1292 |
versionclean: |
versionclean: |
1293 |
-rm -f emacs emacs-* ../etc/DOC* |
-rm -f emacs${EXEEXT} emacs-* ../etc/DOC* |
1294 |
extraclean: distclean |
extraclean: distclean |
1295 |
-rm -f *~ \#* m/?*~ s/?*~ |
-rm -f *~ \#* m/?*~ s/?*~ |
1296 |
|
|
1308 |
/* Arrange to make a tags table TAGS-LISP for ../lisp, |
/* Arrange to make a tags table TAGS-LISP for ../lisp, |
1309 |
plus TAGS for the C files, which includes ../lisp/TAGS by reference. */ |
plus TAGS for the C files, which includes ../lisp/TAGS by reference. */ |
1310 |
|
|
1311 |
ctagsfiles1 = [xyzXYZ]*.[hc] |
ctagsfiles1 = [xyzXYZ]*.[hc] |
1312 |
ctagsfiles2 = [a-wA-W]*.[hc] |
ctagsfiles2 = [a-wA-W]*.[hc] |
1313 |
|
|
1314 |
TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) |
TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) |
1328 |
|
|
1329 |
/* Bootstrapping. */ |
/* Bootstrapping. */ |
1330 |
|
|
1331 |
bootstrap: bootstrap-emacs |
bootstrap: bootstrap-emacs${EXEEXT} |
1332 |
|
|
1333 |
/* Dump an Emacs executable named bootstrap-emacs containing the |
/* Dump an Emacs executable named bootstrap-emacs containing the |
1334 |
files from loadup.el in source form. */ |
files from loadup.el in source form. */ |
1335 |
|
|
1336 |
bootstrap-emacs: temacs |
bootstrap-emacs${EXEEXT}: temacs${EXEEXT} |
1337 |
#ifdef CANNOT_DUMP |
#ifdef CANNOT_DUMP |
1338 |
ln temacs bootstrap-emacs |
ln temacs${EXEEXT} bootstrap-emacs${EXEEXT} |
1339 |
#else |
#else |
1340 |
#ifdef HAVE_SHM |
#ifdef HAVE_SHM |
1341 |
./temacs -nl -batch -l loadup bootstrap |
./temacs -nl -batch -l loadup bootstrap |
1342 |
#else /* ! defined (HAVE_SHM) */ |
#else /* ! defined (HAVE_SHM) */ |
1343 |
./temacs --batch --load loadup bootstrap |
./temacs --batch --load loadup bootstrap |
1344 |
#endif /* ! defined (HAVE_SHM) */ |
#endif /* ! defined (HAVE_SHM) */ |
1345 |
|
mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} |
1346 |
#endif /* ! defined (CANNOT_DUMP) */ |
#endif /* ! defined (CANNOT_DUMP) */ |
|
mv -f emacs bootstrap-emacs |
|
1347 |
|
|