aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-04-01 17:35:26 +0300
committerEli Zaretskii2013-04-01 17:35:26 +0300
commit030a1c5ea67b4d236f3dc31542e51128a8ee0685 (patch)
treeb47fbdc73c2588d2fb6f50a4396f93ad3f742123
parentf540ee868c7d91421d9bbf6ca239782013dfc266 (diff)
downloademacs-030a1c5ea67b4d236f3dc31542e51128a8ee0685.tar.gz
emacs-030a1c5ea67b4d236f3dc31542e51128a8ee0685.zip
Fixed nt/Makefile.in and top-level Makefile.in.
Programs in nt/ and lib-src/ compile and link. Warnings and errors in src/.
-rw-r--r--Makefile.in24
-rw-r--r--configure.ac3
-rw-r--r--lib-src/Makefile.in5
-rw-r--r--nt/Makefile.in6
-rw-r--r--src/Makefile.in3
5 files changed, 32 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index 6fbf4699bb8..fc0b2ab4fb0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -274,7 +274,7 @@ EMACS = ${EMACS_NAME}${EXEEXT}
274EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT} 274EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT}
275 275
276# Subdirectories to make recursively. 276# Subdirectories to make recursively.
277SUBDIR = lib lib-src src lisp leim $(NTDIR) 277SUBDIR = $(NTDIR) lib lib-src src lisp leim
278 278
279# The subdir makefiles created by config.status. 279# The subdir makefiles created by config.status.
280SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@ 280SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@
@@ -317,7 +317,7 @@ epaths-force: FRC
317 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \ 317 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \
318 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h 318 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h
319 319
320lib-src src: lib 320lib-src src: $(NTDIR) lib
321 321
322src: lib-src FRC 322src: lib-src FRC
323 323
@@ -326,7 +326,7 @@ src: lib-src FRC
326lisp leim: src 326lisp leim: src
327 327
328# These targets should be "${SUBDIR} without `src'". 328# These targets should be "${SUBDIR} without `src'".
329lib lib-src lisp leim: Makefile FRC 329lib lib-src lisp leim nt: Makefile FRC
330 cd $@ && $(MAKE) all $(MFLAGS) \ 330 cd $@ && $(MAKE) all $(MFLAGS) \
331 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ 331 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
332 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' 332 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
@@ -465,6 +465,13 @@ install-arch-dep: src install-arch-indep install-doc
465 ${write_subdir} || exit 1; \ 465 ${write_subdir} || exit 1; \
466 rm -rf ${ns_appresdir}/share; \ 466 rm -rf ${ns_appresdir}/share; \
467 fi 467 fi
468 if test "x$(NTDIR)" != "x"; then \
469 cd $(NTDIR) && \
470 $(MAKE) install $(MFLAGS) prefix=${prefix} \
471 exec_prefix=${exec_prefix} bindir=${bindir} \
472 libexecdir=${libexecdir} archlibdir=${archlibdir} \
473 INSTALL_STRIP=${INSTALL_STRIP}; \
474 fi
468 475
469## In the share directory, we are deleting: 476## In the share directory, we are deleting:
470## applications (with emacs.desktop, also found in etc/) 477## applications (with emacs.desktop, also found in etc/)
@@ -695,6 +702,13 @@ uninstall:
695 $(MAKE) $(MFLAGS) uninstall \ 702 $(MAKE) $(MFLAGS) uninstall \
696 prefix=${prefix} exec_prefix=${exec_prefix} \ 703 prefix=${prefix} exec_prefix=${exec_prefix} \
697 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir} 704 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}
705
706 if test "x$(NTDIR)" != "x"; then \
707 cd $(NTDIR) && \
708 $(MAKE) $(MFLAGS) uninstall \
709 prefix=${prefix} exec_prefix=${exec_prefix} \
710 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}; \
711 fi
698 -unset CDPATH; \ 712 -unset CDPATH; \
699 for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ 713 for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \
700 if [ -d $${dir} ]; then \ 714 if [ -d $${dir} ]; then \
@@ -756,6 +770,7 @@ mostlyclean: FRC
756 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean) 770 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean)
757 (cd lib; $(MAKE) $(MFLAGS) mostlyclean) 771 (cd lib; $(MAKE) $(MFLAGS) mostlyclean)
758 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean) 772 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean)
773 (cd nt; $(MAKE) $(MFLAGS) mostlyclean)
759 -(cd doc/emacs && $(MAKE) $(MFLAGS) mostlyclean) 774 -(cd doc/emacs && $(MAKE) $(MFLAGS) mostlyclean)
760 -(cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean) 775 -(cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean)
761 -(cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean) 776 -(cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean)
@@ -777,6 +792,7 @@ clean: FRC
777 (cd lwlib; $(MAKE) $(MFLAGS) clean) 792 (cd lwlib; $(MAKE) $(MFLAGS) clean)
778 (cd lib; $(MAKE) $(MFLAGS) clean) 793 (cd lib; $(MAKE) $(MFLAGS) clean)
779 (cd lib-src; $(MAKE) $(MFLAGS) clean) 794 (cd lib-src; $(MAKE) $(MFLAGS) clean)
795 (cd nt; $(MAKE) $(MFLAGS) clean)
780 -(cd doc/emacs && $(MAKE) $(MFLAGS) clean) 796 -(cd doc/emacs && $(MAKE) $(MFLAGS) clean)
781 -(cd doc/misc && $(MAKE) $(MFLAGS) clean) 797 -(cd doc/misc && $(MAKE) $(MFLAGS) clean)
782 -(cd doc/lispref && $(MAKE) $(MFLAGS) clean) 798 -(cd doc/lispref && $(MAKE) $(MFLAGS) clean)
@@ -803,6 +819,7 @@ distclean: FRC
803 (cd lwlib; $(MAKE) $(MFLAGS) distclean) 819 (cd lwlib; $(MAKE) $(MFLAGS) distclean)
804 (cd lib; $(MAKE) $(MFLAGS) distclean) 820 (cd lib; $(MAKE) $(MFLAGS) distclean)
805 (cd lib-src; $(MAKE) $(MFLAGS) distclean) 821 (cd lib-src; $(MAKE) $(MFLAGS) distclean)
822 (cd nt; $(MAKE) $(MFLAGS) distclean)
806 (cd doc/emacs && $(MAKE) $(MFLAGS) distclean) 823 (cd doc/emacs && $(MAKE) $(MFLAGS) distclean)
807 (cd doc/misc && $(MAKE) $(MFLAGS) distclean) 824 (cd doc/misc && $(MAKE) $(MFLAGS) distclean)
808 (cd doc/lispref && $(MAKE) $(MFLAGS) distclean) 825 (cd doc/lispref && $(MAKE) $(MFLAGS) distclean)
@@ -821,6 +838,7 @@ bootstrap-clean: FRC
821 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean) 838 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean)
822 (cd lib; $(MAKE) $(MFLAGS) maintainer-clean) 839 (cd lib; $(MAKE) $(MFLAGS) maintainer-clean)
823 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean) 840 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean)
841 (cd nt; $(MAKE) $(MFLAGS) maintainer-clean)
824 -(cd doc/emacs && $(MAKE) $(MFLAGS) maintainer-clean) 842 -(cd doc/emacs && $(MAKE) $(MFLAGS) maintainer-clean)
825 -(cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean) 843 -(cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean)
826 -(cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean) 844 -(cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean)
diff --git a/configure.ac b/configure.ac
index 919f4934fae..75ecb7bbc96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1577,6 +1577,7 @@ if test "${opsys}" = "mingw32"; then
1577fi 1577fi
1578 1578
1579FIRSTFILE_OBJ= 1579FIRSTFILE_OBJ=
1580NTDIR=
1580if test "${HAVE_W32}" = "yes"; then 1581if test "${HAVE_W32}" = "yes"; then
1581 AC_DEFINE(HAVE_NTGUI, 1, [Define to use native MS Windows GUI.]) 1582 AC_DEFINE(HAVE_NTGUI, 1, [Define to use native MS Windows GUI.])
1582 AC_CHECK_TOOL(WINDRES, [windres], 1583 AC_CHECK_TOOL(WINDRES, [windres],
@@ -1601,6 +1602,7 @@ if test "${HAVE_W32}" = "yes"; then
1601 CLIENTRES="emacsclient.res" 1602 CLIENTRES="emacsclient.res"
1602 CLIENTW="emacsclientw\$(EXEEXT)" 1603 CLIENTW="emacsclientw\$(EXEEXT)"
1603 FIRSTFILE_OBJ=firstfile.o 1604 FIRSTFILE_OBJ=firstfile.o
1605 NTDIR=nt
1604 fi 1606 fi
1605fi 1607fi
1606AC_SUBST(W32_OBJ) 1608AC_SUBST(W32_OBJ)
@@ -1611,6 +1613,7 @@ AC_SUBST(CLIENTRES)
1611AC_SUBST(CLIENTW) 1613AC_SUBST(CLIENTW)
1612AC_SUBST(W32_RES_LINK) 1614AC_SUBST(W32_RES_LINK)
1613AC_SUBST(FIRSTFILE_OBJ) 1615AC_SUBST(FIRSTFILE_OBJ)
1616AC_SUBST(NTDIR)
1614 1617
1615if test "${HAVE_W32}" = "yes"; then 1618if test "${HAVE_W32}" = "yes"; then
1616 window_system=w32 1619 window_system=w32
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 3af31acaa6e..c79097695ff 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -365,7 +365,8 @@ update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h)
365 ${srcdir}/update-game-score.c $(NTLIB) $(LOADLIBES) \ 365 ${srcdir}/update-game-score.c $(NTLIB) $(LOADLIBES) \
366 -o update-game-score${EXEEXT} 366 -o update-game-score${EXEEXT}
367 367
368emacsclient.res: ${srcdir}/nt/emacsclient.rc 368emacsclient.res: ${srcdir}/../nt/emacsclient.rc
369 $(WINDRES) -O coff --include-dir=${srcdir}/nt -o emacscient.res 369 $(WINDRES) -O coff --include-dir=${srcdir}/../nt -o emacsclient.res \
370 ${srcdir}/../nt/emacsclient.rc
370 371
371## Makefile ends here. 372## Makefile ends here.
diff --git a/nt/Makefile.in b/nt/Makefile.in
index 3b777047c27..0f7b3463d42 100644
--- a/nt/Makefile.in
+++ b/nt/Makefile.in
@@ -201,12 +201,12 @@ addpm${EXEEXT}: ${srcdir}/addpm.c
201ddeclient${EXEEXT}: ${srcdir}/ddeclient.c 201ddeclient${EXEEXT}: ${srcdir}/ddeclient.c
202 $(CC) ${ALL_CFLAGS} ${srcdir}/ddeclient.c -o ddeclient${EXEEXT} 202 $(CC) ${ALL_CFLAGS} ${srcdir}/ddeclient.c -o ddeclient${EXEEXT}
203 203
204cmdproxy{EXEEXT}: ${srcdir}/cmdproxy.c 204cmdproxy${EXEEXT}: ${srcdir}/cmdproxy.c
205 $(CC) ${ALL_CFLAGS} ${srcdir}/cmdproxy.c -o cmdproxy${EXEEXT} 205 $(CC) ${ALL_CFLAGS} ${srcdir}/cmdproxy.c -o cmdproxy${EXEEXT}
206 206
207runemacs{EXEEXT}: ${srcdir}/runemacs.c $(EMACSRES) 207runemacs${EXEEXT}: ${srcdir}/runemacs.c $(EMACSRES)
208 $(CC) ${ALL_CFLAGS} ${srcdir}/runemacs.c $(EMACSRES) \ 208 $(CC) ${ALL_CFLAGS} ${srcdir}/runemacs.c $(EMACSRES) \
209 -o runemacs${EXEEXT} 209 -o runemacs${EXEEXT}
210 210
211emacs.res: ${srcdir}/emacs.rc ${srcdir}/emacs.ico ${srcdir}/$(EMACS_MANIFEST) 211emacs.res: ${srcdir}/emacs.rc ${srcdir}/icons/emacs.ico ${srcdir}/$(EMACS_MANIFEST)
212 ${WINDRES} -O coff -o emacs.res emacs.rc 212 ${WINDRES} -O coff -o emacs.res emacs.rc
diff --git a/src/Makefile.in b/src/Makefile.in
index cac8ddec57c..62c1e51e298 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -524,7 +524,8 @@ doc.o: buildobj.h
524emacs.res: $(ntsource)/emacs.rc \ 524emacs.res: $(ntsource)/emacs.rc \
525 $(ntsource)/icons/emacs.ico \ 525 $(ntsource)/icons/emacs.ico \
526 $(ntsource)/$(EMACS_MANIFEST) 526 $(ntsource)/$(EMACS_MANIFEST)
527 $(WINDRES) -O COFF -o $@ $(ntsource)/emacs.rc 527 $(WINDRES) -O COFF --include-dir=$(srcdir)/../nt \
528 -o $@ $(ntsource)/emacs.rc
528 529
529ns-app: emacs$(EXEEXT) 530ns-app: emacs$(EXEEXT)
530 cd ../nextstep && $(MAKE) $(MFLAGS) all 531 cd ../nextstep && $(MAKE) $(MFLAGS) all