2004-04-23 00:24:35 +00:00
|
|
|
# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
|
2012-01-05 09:46:05 +00:00
|
|
|
# Copyright (C) 2000-2012 Free Software Foundation, Inc.
|
2008-05-09 23:19:13 +00:00
|
|
|
|
|
|
|
# This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
# GNU Emacs is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2012-04-07 10:36:54 +00:00
|
|
|
ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\
|
|
|
|
$(BLD)/ctags.exe $(BLD)/etags.exe $(BLD)/movemail.exe $(BLD)/ebrowse.exe\
|
2012-07-09 00:59:38 +00:00
|
|
|
$(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe $(BLD)/profile.exe
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2012-04-07 10:19:22 +00:00
|
|
|
.PHONY: make-docfile
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2011-07-07 01:32:56 +00:00
|
|
|
LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \
|
2012-06-26 01:05:39 +00:00
|
|
|
-DNO_ARCHIVES=1 -I../lib \
|
2011-11-27 18:52:53 +00:00
|
|
|
-I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2006-11-25 15:44:32 +00:00
|
|
|
LIBS = $(BASE_LIBS) $(ADVAPI32)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2012-04-07 10:19:22 +00:00
|
|
|
# The following target is used by makefile.w32-in files in other directories.
|
|
|
|
make-docfile: $(BLD)/make-docfile.exe
|
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/make-docfile.exe: $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) $(LIBS)
|
|
|
|
$(BLD)/hexl.exe: $(BLD)/hexl.$(O)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
|
2006-06-03 15:30:02 +00:00
|
|
|
$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS)
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
"$(BLD)/test-distrib.exe" "$(LIB_SRC)/testfile"
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
MOVEMAILOBJS = $(BLD)/movemail.$(O) \
|
|
|
|
$(BLD)/pop.$(O) \
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
../lib/$(BLD)/libgnu.$(A) \
|
|
|
|
$(BLD)/ntlib.$(O)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
$(BLD)/movemail.exe: $(MOVEMAILOBJS) ../lib/getopt.h
|
2000-09-14 21:59:59 +00:00
|
|
|
# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)
|
|
|
|
|
2011-01-31 19:36:08 +00:00
|
|
|
ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR
|
2006-10-31 00:19:38 +00:00
|
|
|
ECLIENTOBJS = $(BLD)/emacsclient.$(O) \
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
$(BLD)/ntlib.$(O) \
|
|
|
|
../lib/$(BLD)/libgnu.$(A)
|
2008-04-10 09:48:22 +00:00
|
|
|
CLIENTRES = ../nt/$(BLD)/emacsclient.res
|
2006-11-27 16:00:37 +00:00
|
|
|
|
2008-04-10 09:48:22 +00:00
|
|
|
$(CLIENTRES): ../nt/emacsclient.rc
|
|
|
|
@echo Emacsclient resource file must be built from nt directory
|
|
|
|
@exit -1
|
2006-10-31 00:19:38 +00:00
|
|
|
|
|
|
|
$(BLD)/emacsclient.exe: $(ECLIENTOBJS)
|
|
|
|
# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
2007-09-27 22:08:19 +00:00
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
|
2006-10-31 00:19:38 +00:00
|
|
|
|
2008-04-10 09:48:22 +00:00
|
|
|
$(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES)
|
2006-11-13 11:07:47 +00:00
|
|
|
# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
|
2012-05-29 16:15:12 +00:00
|
|
|
$(LINK) $(LINK_OUT)$@ $(CLIENTRES) $(MWINDOWS) $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
|
2006-11-13 11:07:47 +00:00
|
|
|
|
2011-01-31 19:36:08 +00:00
|
|
|
$(BLD)/emacsclient.$(O): emacsclient.c
|
2006-11-13 00:05:29 +00:00
|
|
|
$(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c
|
2006-10-31 00:19:38 +00:00
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
ETAGSOBJ = $(BLD)/etags.$(O) \
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
../lib/$(BLD)/libgnu.$(A) \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/ntlib.$(O) \
|
|
|
|
$(BLD)/regex.$(O)
|
|
|
|
|
|
|
|
$(BLD)/etags.exe: $(ETAGSOBJ)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
|
|
|
|
|
|
|
|
|
2000-11-23 20:56:49 +00:00
|
|
|
EBROWSEOBJ = $(BLD)/ebrowse.$(O) \
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
../lib/$(BLD)/libgnu.$(A) \
|
2006-11-13 11:07:47 +00:00
|
|
|
$(BLD)/ntlib.$(O)
|
2000-11-23 20:56:49 +00:00
|
|
|
|
|
|
|
$(BLD)/ebrowse.exe: $(EBROWSEOBJ)
|
2000-11-30 11:57:36 +00:00
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS)
|
2000-11-23 20:56:49 +00:00
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/regex.$(O): ../src/regex.c ../src/regex.h ../src/config.h
|
|
|
|
$(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
|
|
|
|
../src/regex.c $(CC_OUT)$@
|
|
|
|
|
2011-02-02 16:28:24 +00:00
|
|
|
ETAGS_CFLAGS = -DHAVE_GETCWD -DEMACS_NAME="\"GNU Emacs\""
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/etags.$(O): etags.c
|
|
|
|
$(CC) $(CFLAGS) $(ETAGS_CFLAGS) $(CC_OUT)$@ etags.c
|
|
|
|
|
|
|
|
CTAGSOBJ = $(BLD)/ctags.$(O) \
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
../lib/$(BLD)/libgnu.$(A) \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/ntlib.$(O) \
|
|
|
|
$(BLD)/regex.$(O)
|
|
|
|
|
|
|
|
$(BLD)/ctags.exe: $(CTAGSOBJ)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
|
|
|
|
|
|
|
|
ctags.c: etags.c
|
|
|
|
- $(DEL) ctags.c
|
|
|
|
$(CP) etags.c ctags.c
|
|
|
|
|
2012-06-30 23:01:52 +00:00
|
|
|
CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/ctags.$(O): ctags.c
|
|
|
|
$(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
|
|
|
|
|
2012-07-09 00:59:38 +00:00
|
|
|
PROFILEOBJS = $(BLD)/profile.$(O) \
|
|
|
|
../lib/$(BLD)/libgnu.$(A) \
|
|
|
|
$(BLD)/ntlib.$(O)
|
|
|
|
$(BLD)/profile.exe: $(PROFILEOBJS)
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(PROFILEOBJS) $(LIBS)
|
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
#
|
2004-11-09 08:18:58 +00:00
|
|
|
# From ..\src\Makefile.in
|
|
|
|
# It doesn't matter if the real name is *.obj for the files in this list,
|
|
|
|
# make-docfile blindly replaces .o with .c anyway. Keep .o in this list
|
|
|
|
# as it is required by code in doc.c.
|
2000-09-14 21:59:59 +00:00
|
|
|
#
|
2007-11-11 00:56:44 +00:00
|
|
|
obj = dosfns.o msdos.o \
|
2007-10-20 23:08:16 +00:00
|
|
|
xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
|
2010-07-11 06:39:00 +00:00
|
|
|
fontset.o menu.o \
|
2008-06-26 11:57:58 +00:00
|
|
|
w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
|
2004-11-09 08:18:58 +00:00
|
|
|
w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \
|
2010-07-11 06:39:00 +00:00
|
|
|
font.o w32font.o w32uniscribe.o \
|
|
|
|
dispnew.o frame.o scroll.o xdisp.o window.o bidi.o \
|
2007-10-20 23:08:16 +00:00
|
|
|
charset.o coding.o category.o ccl.o character.o chartab.o \
|
|
|
|
cm.o term.o terminal.o xfaces.o \
|
2004-11-09 08:18:58 +00:00
|
|
|
emacs.o keyboard.o macros.o keymap.o sysdep.o \
|
|
|
|
buffer.o filelock.o insdel.o marker.o \
|
2011-02-22 00:49:54 +00:00
|
|
|
minibuf.o fileio.o dired.o \
|
2004-11-09 08:18:58 +00:00
|
|
|
cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
|
|
|
|
alloc.o data.o doc.o editfns.o callint.o \
|
|
|
|
eval.o floatfns.o fns.o print.o lread.o \
|
2007-10-28 14:37:51 +00:00
|
|
|
syntax.o bytecode.o \
|
2010-07-11 06:39:00 +00:00
|
|
|
process.o callproc.o unexw32.o \
|
2004-11-09 08:18:58 +00:00
|
|
|
region-cache.o sound.o atimer.o \
|
2011-04-25 01:28:55 +00:00
|
|
|
doprnt.o intervals.o textprop.o composite.o \
|
2012-04-07 13:57:36 +00:00
|
|
|
gnutls.o xml.o
|
2004-11-09 08:18:58 +00:00
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
#
|
|
|
|
# These are the lisp files that are loaded up in loadup.el
|
|
|
|
#
|
|
|
|
lispsource = ../lisp/
|
|
|
|
|
2007-10-20 23:39:07 +00:00
|
|
|
MOUSE_SUPPORT = \
|
|
|
|
$(lispsource)select.elc \
|
|
|
|
$(lispsource)scroll-bar.elc \
|
2008-02-23 00:30:49 +00:00
|
|
|
$(lispsource)mouse.elc
|
2007-10-20 23:39:07 +00:00
|
|
|
WINNT_SUPPORT = \
|
|
|
|
$(lispsource)ls-lisp.elc \
|
|
|
|
$(lispsource)disp-table.elc \
|
|
|
|
$(lispsource)w32-fns.elc \
|
|
|
|
$(lispsource)dos-w32.elc \
|
|
|
|
$(lispsource)w32-vars.elc \
|
2009-07-03 13:42:29 +00:00
|
|
|
$(lispsource)term/common-win.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)term/w32-win.elc
|
|
|
|
TOOLTIP_SUPPORT = $(lispsource)tooltip.elc
|
|
|
|
WINDOW_SUPPORT = \
|
|
|
|
$(lispsource)fringe.elc \
|
|
|
|
$(lispsource)image.elc \
|
|
|
|
$(lispsource)international/fontset.elc \
|
|
|
|
$(lispsource)dnd.elc \
|
|
|
|
$(lispsource)tool-bar.elc \
|
|
|
|
$(lispsource)mwheel.elc
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2008-02-23 00:30:49 +00:00
|
|
|
# lisp files that are loaded up on other platforms
|
|
|
|
OTHER_PLATFORM_SUPPORT = \
|
|
|
|
$(lispsource)dos-fns.elc \
|
|
|
|
$(lispsource)dos-vars.elc \
|
2009-12-09 20:15:56 +00:00
|
|
|
$(lispsource)term/internal.elc \
|
|
|
|
$(lispsource)term/pc-win.elc \
|
2008-02-23 00:30:49 +00:00
|
|
|
$(lispsource)x-dnd.elc \
|
2009-09-27 08:27:57 +00:00
|
|
|
$(lispsource)term/x-win.elc \
|
2010-04-07 13:43:04 +00:00
|
|
|
$(lispsource)term/ns-win.elc
|
2008-02-23 00:30:49 +00:00
|
|
|
|
|
|
|
|
2004-05-08 19:27:28 +00:00
|
|
|
lisp1= \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)abbrev.elc \
|
|
|
|
$(lispsource)buff-menu.elc \
|
2002-02-25 15:47:41 +00:00
|
|
|
$(lispsource)button.elc \
|
2003-05-31 00:33:50 +00:00
|
|
|
$(lispsource)emacs-lisp/byte-run.elc \
|
2008-02-04 09:07:32 +00:00
|
|
|
$(lispsource)composite.elc \
|
2005-12-30 13:02:42 +00:00
|
|
|
$(lispsource)cus-face.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)cus-start.elc \
|
|
|
|
$(lispsource)custom.elc \
|
2002-03-28 20:11:54 +00:00
|
|
|
$(lispsource)emacs-lisp/backquote.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)emacs-lisp/lisp-mode.elc \
|
|
|
|
$(lispsource)emacs-lisp/lisp.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)env.elc \
|
2005-12-30 13:02:42 +00:00
|
|
|
$(lispsource)faces.elc \
|
|
|
|
$(lispsource)files.elc \
|
|
|
|
$(lispsource)format.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)facemenu.elc \
|
|
|
|
$(MOUSE_SUPPORT) \
|
|
|
|
$(lispsource)emacs-lisp/float-sup.elc \
|
2003-05-31 00:33:50 +00:00
|
|
|
$(lispsource)frame.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)help.elc \
|
|
|
|
$(lispsource)indent.elc \
|
|
|
|
$(lispsource)isearch.elc \
|
2005-12-30 13:02:42 +00:00
|
|
|
$(lispsource)rfn-eshadow.elc \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(lispsource)loadup.el \
|
|
|
|
$(lispsource)loaddefs.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)bindings.elc \
|
2003-05-31 00:33:50 +00:00
|
|
|
$(lispsource)emacs-lisp/map-ynp.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)menu-bar.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)international/mule.elc \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(lispsource)international/mule-conf.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)international/mule-cmds.elc \
|
|
|
|
$(lispsource)international/characters.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)international/charprop.el \
|
2004-05-08 19:27:28 +00:00
|
|
|
$(lispsource)case-table.elc
|
|
|
|
|
|
|
|
lisp2 = \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)language/chinese.el \
|
|
|
|
$(lispsource)language/cyrillic.el \
|
|
|
|
$(lispsource)language/indian.el \
|
2008-02-22 11:03:26 +00:00
|
|
|
$(lispsource)language/sinhala.el \
|
2001-12-03 11:29:01 +00:00
|
|
|
$(lispsource)language/english.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)language/ethiopic.elc \
|
|
|
|
$(lispsource)language/european.elc \
|
2001-12-03 11:29:01 +00:00
|
|
|
$(lispsource)language/czech.el \
|
|
|
|
$(lispsource)language/slovak.el \
|
|
|
|
$(lispsource)language/romanian.el \
|
|
|
|
$(lispsource)language/greek.el \
|
2010-07-12 09:22:20 +00:00
|
|
|
$(lispsource)language/hebrew.elc \
|
2001-12-03 11:29:01 +00:00
|
|
|
$(lispsource)language/japanese.el \
|
|
|
|
$(lispsource)language/korean.el \
|
|
|
|
$(lispsource)language/lao.el \
|
2008-02-23 00:30:49 +00:00
|
|
|
$(lispsource)language/cham.el \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)language/tai-viet.el \
|
2001-12-03 11:29:01 +00:00
|
|
|
$(lispsource)language/thai.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)language/tibetan.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(lispsource)language/vietnamese.el \
|
2001-12-03 11:29:01 +00:00
|
|
|
$(lispsource)language/misc-lang.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)language/utf-8-lang.el \
|
|
|
|
$(lispsource)language/georgian.el \
|
2008-02-23 00:30:49 +00:00
|
|
|
$(lispsource)language/khmer.el \
|
|
|
|
$(lispsource)language/burmese.el \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)register.elc \
|
|
|
|
$(lispsource)replace.elc \
|
|
|
|
$(lispsource)simple.elc \
|
2008-05-30 19:52:41 +00:00
|
|
|
$(lispsource)minibuffer.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)startup.elc \
|
|
|
|
$(lispsource)subr.elc \
|
|
|
|
$(lispsource)term/tty-colors.elc \
|
2002-06-13 16:32:23 +00:00
|
|
|
$(lispsource)font-core.elc \
|
2005-12-30 13:02:42 +00:00
|
|
|
$(lispsource)emacs-lisp/syntax.elc \
|
|
|
|
$(lispsource)font-lock.elc \
|
|
|
|
$(lispsource)jit-lock.elc \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)textmodes/fill.elc \
|
|
|
|
$(lispsource)textmodes/page.elc \
|
|
|
|
$(lispsource)textmodes/paragraphs.elc \
|
|
|
|
$(lispsource)textmodes/text-mode.elc \
|
2005-12-30 13:02:42 +00:00
|
|
|
$(lispsource)emacs-lisp/timer.elc \
|
|
|
|
$(lispsource)jka-cmpr-hook.elc \
|
2010-06-11 21:26:13 +00:00
|
|
|
$(lispsource)vc/vc-hooks.elc \
|
|
|
|
$(lispsource)vc/ediff-hook.elc \
|
2008-05-08 11:05:25 +00:00
|
|
|
$(lispsource)epa-hook.elc \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(TOOLTIP_SUPPORT) \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(WINNT_SUPPORT) \
|
2007-10-20 23:39:07 +00:00
|
|
|
$(WINDOW_SUPPORT) \
|
2002-02-24 18:39:16 +00:00
|
|
|
$(lispsource)widget.elc \
|
|
|
|
$(lispsource)window.elc \
|
2000-09-14 21:59:59 +00:00
|
|
|
$(lispsource)version.el
|
|
|
|
|
2006-11-04 12:00:20 +00:00
|
|
|
# This is needed the first time we build the tree, since temacs.exe
|
|
|
|
# does not exist yet, and the DOC rule needs it to rebuild DOC whenever
|
|
|
|
# Emacs is rebuilt.
|
|
|
|
../src/$(BLD)/temacs.exe:
|
|
|
|
- mkdir "../src/$(OBJDIR)"
|
|
|
|
- mkdir "../src/$(BLD)"
|
|
|
|
@echo temacs > temacs.exe
|
|
|
|
$(CP) temacs.exe ../src/$(BLD)
|
|
|
|
- $(DEL) temacs.exe
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2002-10-04 10:09:35 +00:00
|
|
|
DOC = DOC
|
2008-02-23 00:30:49 +00:00
|
|
|
$(DOC): stamp_BLD $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2) $(OTHER_PLATFORM_SUPPORT)
|
2000-09-14 21:59:59 +00:00
|
|
|
- $(DEL) $(DOC)
|
2002-12-18 23:53:01 +00:00
|
|
|
"$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj)
|
2004-05-08 19:27:28 +00:00
|
|
|
"$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp1)
|
|
|
|
"$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp2)
|
2008-02-23 00:30:49 +00:00
|
|
|
"$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(OTHER_PLATFORM_SUPPORT)
|
2000-09-14 21:59:59 +00:00
|
|
|
$(CP) $(DOC) ../etc/DOC-X
|
|
|
|
- mkdir "../src/$(OBJDIR)"
|
|
|
|
- mkdir "../src/$(OBJDIR)/etc"
|
|
|
|
$(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X
|
|
|
|
|
|
|
|
{$(BLD)}.$(O){$(BLD)}.exe:
|
|
|
|
$(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build the executables
|
|
|
|
#
|
2012-04-07 10:19:22 +00:00
|
|
|
all: $(ALL) $(DOC)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Assuming INSTALL_DIR is defined, build and install emacs in it.
|
|
|
|
#
|
|
|
|
INSTALL_FILES = $(ALL)
|
|
|
|
install: $(INSTALL_FILES)
|
|
|
|
- mkdir "$(INSTALL_DIR)/bin"
|
|
|
|
$(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin
|
2000-11-30 11:57:36 +00:00
|
|
|
$(CP) $(BLD)/ebrowse.exe $(INSTALL_DIR)/bin
|
2000-09-14 21:59:59 +00:00
|
|
|
$(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
|
|
|
|
$(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
|
|
|
|
$(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
|
2006-10-31 00:19:38 +00:00
|
|
|
$(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin
|
2006-11-13 11:07:47 +00:00
|
|
|
$(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin
|
2012-07-09 00:59:38 +00:00
|
|
|
$(CP) $(BLD)/profile.exe $(INSTALL_DIR)/bin
|
2000-09-14 21:59:59 +00:00
|
|
|
- mkdir "$(INSTALL_DIR)/etc"
|
|
|
|
$(CP) $(DOC) $(INSTALL_DIR)/etc
|
|
|
|
|
|
|
|
#
|
|
|
|
# Maintenance
|
2002-10-04 10:09:35 +00:00
|
|
|
#
|
2007-07-16 22:41:49 +00:00
|
|
|
# We used to delete *~ here, but that might inadvertently remove
|
|
|
|
# precious files if it happens to match their short 8+3 aliases.
|
2000-09-14 21:59:59 +00:00
|
|
|
clean:
|
2007-07-16 22:41:49 +00:00
|
|
|
- $(DEL) DOC* $(COMPILER_TEMP_FILES)
|
2000-09-14 21:59:59 +00:00
|
|
|
- $(DEL) ctags.c
|
|
|
|
- $(DEL_TREE) $(OBJDIR)
|
2006-12-22 20:41:35 +00:00
|
|
|
- $(DEL) stamp_BLD
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2008-04-09 16:21:11 +00:00
|
|
|
distclean: cleanall
|
|
|
|
- $(DEL) TAGS
|
|
|
|
- $(DEL) Makefile
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
cleanall: clean
|
|
|
|
- $(DEL_TREE) obj
|
|
|
|
- $(DEL_TREE) obj-spd
|
|
|
|
- $(DEL_TREE) oo
|
|
|
|
- $(DEL_TREE) oo-spd
|
|
|
|
|
|
|
|
#
|
|
|
|
# Headers we would preprocess if we could.
|
|
|
|
#
|
|
|
|
../src/config.h: ../nt/$(CONFIG_H)
|
2010-09-29 15:07:34 +00:00
|
|
|
$(DEL) $@
|
2006-10-09 19:58:14 +00:00
|
|
|
echo $(CONFIG_H) has changed. Re-run configure.bat.
|
2005-09-11 22:29:23 +00:00
|
|
|
exit -1
|
|
|
|
|
Support TAGS targets in the w32 build.
nt/makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets.
emacs-src.tags: New file.
src/makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
(TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
(nt-TAGS-gmake, nt-TAGS-nmake): New targets.
lisp/makefile.w32-in (DEST, TAGS, TAGS-LISP, TAGS-nmake)
(TAGS-LISP-nmake, TAGS-gmake, TAGS-LISP-gmake, TAGS-SH)
(TAGS-LISP-SH, TAGS-CMD, TAGS-LISP-CMD): New targets.
lib-src/makefile.w32-in (tags, TAGS): New targets.
2010-10-01 11:45:16 +00:00
|
|
|
### TAGS ###
|
|
|
|
|
|
|
|
TAGS: $(BLD)/etags.exe *.c *.h
|
|
|
|
$(BLD)/etags.exe *.c *.h
|
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
### DEPENDENCIES ###
|
|
|
|
|
|
|
|
EMACS_ROOT = ..
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
LIB_SRC = .
|
|
|
|
SRC = $(EMACS_ROOT)/src
|
|
|
|
NT_INC = $(EMACS_ROOT)/nt/inc
|
|
|
|
GNU_LIB = $(EMACS_ROOT)/lib
|
|
|
|
|
|
|
|
MS_W32_H = $(SRC)/s/ms-w32.h \
|
|
|
|
$(NT_INC)/sys/stat.h
|
|
|
|
CONFIG_H = $(SRC)/config.h \
|
|
|
|
$(MS_W32_H)
|
|
|
|
INTTYPES_H = $(NT_INC)/inttypes.h \
|
|
|
|
$(NT_INC)/stdint.h
|
|
|
|
NTLIB_H = $(LIB_SRC)/ntlib.h \
|
|
|
|
$(NT_INC)/pwd.h
|
|
|
|
SYSTIME_H = $(SRC)/systime.h \
|
|
|
|
$(NT_INC)/sys/time.h \
|
|
|
|
$(GNU_LIB)/timespec.h
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/ctags.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/ctags.c \
|
|
|
|
$(SRC)/regex.h \
|
|
|
|
$(NT_INC)/sys/stat.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(GNU_LIB)/c-strcase.h \
|
|
|
|
$(GNU_LIB)/getopt.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
2011-02-22 17:51:38 +00:00
|
|
|
$(BLD)/ebrowse.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/ebrowse.c \
|
|
|
|
$(GNU_LIB)/getopt.h \
|
|
|
|
$(GNU_LIB)/min-max.h \
|
|
|
|
$(CONFIG_H)
|
2011-02-22 17:51:38 +00:00
|
|
|
|
2000-09-14 21:59:59 +00:00
|
|
|
$(BLD)/emacsclient.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/emacsclient.c \
|
|
|
|
$(NT_INC)/pwd.h \
|
|
|
|
$(NT_INC)/sys/stat.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(GNU_LIB)/getopt.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/etags.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/etags.c \
|
|
|
|
$(SRC)/regex.h \
|
|
|
|
$(NT_INC)/sys/stat.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(GNU_LIB)/c-strcase.h \
|
|
|
|
$(GNU_LIB)/getopt.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/hexl.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/hexl.c \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/make-docfile.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/make-docfile.c \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/movemail.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/movemail.c \
|
|
|
|
$(LIB_SRC)/pop.h \
|
|
|
|
$(SRC)/syswait.h \
|
|
|
|
$(NT_INC)/pwd.h \
|
|
|
|
$(NT_INC)/sys/file.h \
|
|
|
|
$(NT_INC)/sys/stat.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(GNU_LIB)/getopt.h \
|
|
|
|
$(CONFIG_H) \
|
|
|
|
$(NTLIB_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/ntlib.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/ntlib.c \
|
|
|
|
$(NT_INC)/sys/stat.h \
|
|
|
|
$(NTLIB_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/pop.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/pop.c \
|
|
|
|
$(LIB_SRC)/pop.h \
|
|
|
|
$(NT_INC)/netdb.h \
|
|
|
|
$(NT_INC)/pwd.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(GNU_LIB)/min-max.h \
|
|
|
|
$(CONFIG_H) \
|
|
|
|
$(NTLIB_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/profile.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/profile.c \
|
|
|
|
$(GNU_LIB)/intprops.h \
|
|
|
|
$(CONFIG_H) \
|
|
|
|
$(INTTYPES_H) \
|
|
|
|
$(SYSTIME_H)
|
|
|
|
|
|
|
|
$(BLD)/regex.$(O) : \
|
|
|
|
$(SRC)/regex.c \
|
|
|
|
$(SRC)/regex.h \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
|
|
|
$(BLD)/test-distrib.$(O) : \
|
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
2012-07-09 04:21:55 +00:00
|
|
|
$(LIB_SRC)/test-distrib.c \
|
|
|
|
$(NT_INC)/unistd.h \
|
|
|
|
$(CONFIG_H)
|
2000-09-14 21:59:59 +00:00
|
|
|
|
(make-docfile, ctags, etags, ebrowse, hexl)
(movemail, fakemail, sorted-doc, digest-doc, emacsclient)
(test-distrib, $(DOC), all): depend on stamp_BLD instead of $(BLD).
($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O))
($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O))
($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS))
($(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O))
($(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O)): Depend on stamp_BLD.
2006-12-22 18:43:11 +00:00
|
|
|
# The following dependencies are for supporting parallel builds, where
|
|
|
|
# we must make sure $(BLD) exists before any compilation starts.
|
|
|
|
#
|
2011-05-18 03:39:45 +00:00
|
|
|
$(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O): stamp_BLD
|
(make-docfile, ctags, etags, ebrowse, hexl)
(movemail, fakemail, sorted-doc, digest-doc, emacsclient)
(test-distrib, $(DOC), all): depend on stamp_BLD instead of $(BLD).
($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O))
($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O))
($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS))
($(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O))
($(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O)): Depend on stamp_BLD.
2006-12-22 18:43:11 +00:00
|
|
|
|
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 12:36:11 +00:00
|
|
|
$(BLD)/test-distrib.$(O) $(MOVEMAILOBJS): stamp_BLD
|
(make-docfile, ctags, etags, ebrowse, hexl)
(movemail, fakemail, sorted-doc, digest-doc, emacsclient)
(test-distrib, $(DOC), all): depend on stamp_BLD instead of $(BLD).
($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O))
($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O))
($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS))
($(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O))
($(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O)): Depend on stamp_BLD.
2006-12-22 18:43:11 +00:00
|
|
|
|
|
|
|
$(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O): stamp_BLD
|
|
|
|
|
|
|
|
$(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O): stamp_BLD
|