diff options
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | configure.in | 3 | ||||
| -rw-r--r-- | msdos/ChangeLog | 2 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/Makefile.in | 19 | ||||
| -rw-r--r-- | src/ns.mk | 39 |
7 files changed, 54 insertions, 16 deletions
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.in (ns_frag): New output file. | ||
| 4 | |||
| 3 | * configure.in (OLDXMENU): Set to "nothing" if !HAVE_X11 || USE_GTK. | 5 | * configure.in (OLDXMENU): Set to "nothing" if !HAVE_X11 || USE_GTK. |
| 4 | (OLDXMENU_TARGET): Set to empty if USE_GTK. | 6 | (OLDXMENU_TARGET): Set to empty if USE_GTK. |
| 5 | 7 | ||
diff --git a/configure.in b/configure.in index cd20908e135..6d82a20351b 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1525,6 +1525,7 @@ AC_SUBST(NS_IMPL_GNUSTEP_INC) | |||
| 1525 | AC_SUBST(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS) | 1525 | AC_SUBST(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS) |
| 1526 | AC_SUBST(TEMACS_LDFLAGS2) | 1526 | AC_SUBST(TEMACS_LDFLAGS2) |
| 1527 | 1527 | ||
| 1528 | ns_frag=/dev/null | ||
| 1528 | NS_OBJ= | 1529 | NS_OBJ= |
| 1529 | NS_SUPPORT= | 1530 | NS_SUPPORT= |
| 1530 | if test "${HAVE_NS}" = yes; then | 1531 | if test "${HAVE_NS}" = yes; then |
| @@ -1536,6 +1537,7 @@ if test "${HAVE_NS}" = yes; then | |||
| 1536 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | 1537 | if test "${EN_NS_SELF_CONTAINED}" = yes; then |
| 1537 | prefix=${ns_appresdir} | 1538 | prefix=${ns_appresdir} |
| 1538 | fi | 1539 | fi |
| 1540 | ns_frag=$srcdir/src/ns.mk | ||
| 1539 | NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o" | 1541 | NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o" |
| 1540 | NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc" | 1542 | NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc" |
| 1541 | fi | 1543 | fi |
| @@ -1544,6 +1546,7 @@ CPPFLAGS="$tmp_CPPFLAGS" | |||
| 1544 | AC_SUBST(NS_OBJ) | 1546 | AC_SUBST(NS_OBJ) |
| 1545 | AC_SUBST(NS_SUPPORT) | 1547 | AC_SUBST(NS_SUPPORT) |
| 1546 | AC_SUBST(LIB_STANDARD) | 1548 | AC_SUBST(LIB_STANDARD) |
| 1549 | AC_SUBST_FILE(ns_frag) | ||
| 1547 | 1550 | ||
| 1548 | case "${window_system}" in | 1551 | case "${window_system}" in |
| 1549 | x11 ) | 1552 | x11 ) |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index df532f60c9a..54e9f9cbe76 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * sed1v2.inp(@ns_frag@): Edit to nothing. | ||
| 4 | |||
| 3 | * sed1x.inp (OLDXMENU): Replace any initial value. | 5 | * sed1x.inp (OLDXMENU): Replace any initial value. |
| 4 | * sed1v2.inp (OLDXMENU): Edit to "nothing". | 6 | * sed1v2.inp (OLDXMENU): Edit to "nothing". |
| 5 | 7 | ||
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index a54e40b5c05..ca397e6b08b 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -149,6 +149,7 @@ s/\.h\.in/.h-in/ | |||
| 149 | /^[ ]touch /s/touch/djecho $@ >/ | 149 | /^[ ]touch /s/touch/djecho $@ >/ |
| 150 | s/@YMF_PASS_LDFLAGS@/flags/ | 150 | s/@YMF_PASS_LDFLAGS@/flags/ |
| 151 | s/@deps_frag@// | 151 | s/@deps_frag@// |
| 152 | s/@ns_frag@// | ||
| 152 | s/bootstrap-emacs/b-emacs/ | 153 | s/bootstrap-emacs/b-emacs/ |
| 153 | s/bootstrap-temacs/b-temacs/ | 154 | s/bootstrap-temacs/b-temacs/ |
| 154 | s/bootstrap-doc/b-doc/ | 155 | s/bootstrap-doc/b-doc/ |
diff --git a/src/ChangeLog b/src/ChangeLog index 5335dfc150d..d74fb712e6d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app): | ||
| 4 | Move these rules to ns.mk. | ||
| 5 | * ns.mk: New file. | ||
| 6 | |||
| 3 | * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules. | 7 | * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules. |
| 4 | 8 | ||
| 5 | * Makefile.in (CANNOT_DUMP): New, set by configure. | 9 | * Makefile.in (CANNOT_DUMP): New, set by configure. |
diff --git a/src/Makefile.in b/src/Makefile.in index 8c2994f6e8a..f82a01cbde4 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -700,22 +700,9 @@ ecrt0.o: ecrt0.c $(config_h) | |||
| 700 | doc.o: buildobj.h | 700 | doc.o: buildobj.h |
| 701 | 701 | ||
| 702 | 702 | ||
| 703 | /* System-specific programs to be made. | 703 | /* If HAVE_NS, some ns-specific rules (for OTHER_FILES) are inserted here. */ |
| 704 | OTHER_FILES select which of these should be compiled. */ | 704 | @ns_frag@ |
| 705 | 705 | ||
| 706 | #ifdef HAVE_NS | ||
| 707 | ${ns_appdir}: ${ns_appsrc} | ||
| 708 | rm -fr ${ns_appdir} | ||
| 709 | mkdir -p ${ns_appdir} | ||
| 710 | ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar xf - ) | ||
| 711 | #endif /* HAVE_NS */ | ||
| 712 | |||
| 713 | /* These are only used if HAVE_NS, but no harm in always defining them. */ | ||
| 714 | ${ns_appbindir}Emacs: emacs${EXEEXT} | ||
| 715 | mkdir -p ${ns_appbindir} | ||
| 716 | cp -f emacs${EXEEXT} ${ns_appbindir}Emacs | ||
| 717 | |||
| 718 | ns-app: ${ns_appdir} ${ns_appbindir}Emacs | ||
| 719 | 706 | ||
| 720 | mostlyclean: | 707 | mostlyclean: |
| 721 | rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a | 708 | rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a |
diff --git a/src/ns.mk b/src/ns.mk new file mode 100644 index 00000000000..255ffa7046b --- /dev/null +++ b/src/ns.mk | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* autodeps.mk --- src/Makefile fragment for GNU Emacs | ||
| 2 | |||
| 3 | Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | Commentary: | ||
| 21 | |||
| 22 | This is inserted in src/Makefile if HAVE_NS. | ||
| 23 | |||
| 24 | The only reason this is in a separate file is because $ns_appdir, | ||
| 25 | which appears as a target, is empty on non-NS builds. Some makes | ||
| 26 | do not like empty targets, even if they are never used. */ | ||
| 27 | |||
| 28 | ${ns_appdir}: ${ns_appsrc} | ||
| 29 | rm -fr ${ns_appdir} | ||
| 30 | mkdir -p ${ns_appdir} | ||
| 31 | ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar xf - ) | ||
| 32 | |||
| 33 | ${ns_appbindir}Emacs: emacs${EXEEXT} | ||
| 34 | mkdir -p ${ns_appbindir} | ||
| 35 | cp -f emacs${EXEEXT} ${ns_appbindir}Emacs | ||
| 36 | |||
| 37 | ns-app: ${ns_appdir} ${ns_appbindir}Emacs | ||
| 38 | |||
| 39 | /* ns.mk ends here */ | ||