Allow packages to change the hl-line overlay priority
[emacs.git] / nt / Makefile.in
blob3274ff924f961d58e559e3c628eb92f637e4c38a
1 ### @configure_input@
3 # Copyright (C) 2013-2021 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
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.
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.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
20 # Avoid trouble on systems where the `SHELL' variable might be
21 # inherited from the environment.
22 SHELL = /bin/sh
24 # ==================== Things `configure' will edit ====================
26 CC=@CC@
27 CFLAGS=@CFLAGS@
28 CPPFLAGS = @CPPFLAGS@
29 LDFLAGS = @LDFLAGS@
31 version=@version@
32 ## Used in $archlibdir.
33 configuration=@configuration@
34 EXEEXT=@EXEEXT@
35 C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
36 C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
37 PROFILING_CFLAGS = @PROFILING_CFLAGS@
38 WARN_CFLAGS = @WARN_CFLAGS@
39 WERROR_CFLAGS = @WERROR_CFLAGS@
41 # Program name transformation.
42 TRANSFORM = @program_transform_name@
44 top_builddir = @top_builddir@
45 -include ${top_builddir}/src/verbose.mk
47 # ==================== Where To Install Things ====================
49 # The default location for installation. Everything is placed in
50 # subdirectories of this directory. The default values for many of
51 # the variables below are expressed in terms of this one, so you may
52 # not need to change them. This is set with the --prefix option to
53 # `../configure'.
54 prefix=@prefix@
56 # Like `prefix', but used for architecture-specific files. This is
57 # set with the --exec-prefix option to `../configure'.
58 exec_prefix=@exec_prefix@
60 # Where to install Emacs and other binaries that people will want to
61 # run directly (like etags). This is set with the --bindir option
62 # to `../configure'.
63 bindir=@bindir@
65 # The root of the directory tree for read-only architecture-independent
66 # data files. ${datadir}, ${infodir} and ${mandir} are based on this.
67 datarootdir=@datarootdir@
69 # Where to install architecture-independent data files. ${lispdir}
70 # and ${etcdir} are subdirectories of this. This is set with the
71 # --datadir option to `../configure'.
72 datadir=@datadir@
74 # Where to install and expect executable files to be run by Emacs
75 # rather than directly by users, and other architecture-dependent
76 # data. ${archlibdir} is usually below this. This is set with the
77 # --libexecdir option to `../configure'.
78 libexecdir=@libexecdir@
80 # Directory for local state files for all programs.
81 localstatedir=@localstatedir@
83 # Where to find the source code. This is set by the configure
84 # script's `--srcdir' option. However, the value of ${srcdir} in
85 # this makefile is not identical to what was specified with --srcdir,
86 # since the variable here has `/lib-src' added at the end.
88 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
89 srcdir=@srcdir@
90 VPATH=@srcdir@
92 # The top-level source directory, also set by configure.
93 top_srcdir=@top_srcdir@
94 # MinGW CPPFLAGS may use this.
95 abs_top_srcdir=@abs_top_srcdir@
97 # ==================== Emacs-specific directories ====================
99 # These variables hold the values Emacs will actually use. They are
100 # based on the values of the standard Make variables above.
102 # Where to put executables to be run by Emacs rather than the user.
103 # This path usually includes the Emacs version and configuration name,
104 # so that multiple configurations for multiple versions of Emacs may
105 # be installed at once. This can be set with the --archlibdir option
106 # to `../configure'.
107 archlibdir=@archlibdir@
109 # ==================== Utility Programs for the Build =================
111 # ../configure figures out the correct values for these.
112 INSTALL = @INSTALL@
113 INSTALL_DATA = @INSTALL_DATA@
114 INSTALL_PROGRAM = @INSTALL_PROGRAM@
115 INSTALL_SCRIPT = @INSTALL_SCRIPT@
116 # By default, we uphold the dignity of our programs.
117 INSTALL_STRIP =
118 MKDIR_P = @MKDIR_P@
120 # ========================== Lists of Files ===========================
122 # Things that a user might actually run, which should be installed in bindir.
123 INSTALLABLES = runemacs${EXEEXT} addpm${EXEEXT}
125 # Things that Emacs runs internally, which should not be installed in bindir.
126 UTILITIES = cmdproxy${EXEEXT} ddeclient${EXEEXT}
128 # Things that Emacs runs during the build process.
129 DONT_INSTALL =
131 # All files that are created by the linker, i.e., whose names end in ${EXEEXT}.
132 EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
134 # =========================== Configuration ===========================
136 # MS-Windows resource files and resource compiler
137 EMACSRES = @EMACSRES@
138 EMACS_MANIFEST = @EMACS_MANIFEST@
139 WINDRES = @WINDRES@
141 ## Extra libraries to use when linking addpm.
142 LIBS_ADDPM = -lole32 -luuid
144 ## Compilation and linking flags
145 BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
146 $(WARN_CFLAGS) $(WERROR_CFLAGS) \
147 -I. -I${srcdir}
149 ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
150 ## Unused.
151 LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS}
152 ## Unused.
153 CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS}
155 all: ${EXE_FILES}
157 .PHONY: all
159 ## Install the internal utilities. Until they are installed, we can
160 ## just run them directly from nt/.
161 $(DESTDIR)${archlibdir}: all
162 @echo
163 @echo "Installing utilities run internally by Emacs."
164 umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}"
165 exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \
166 if [ "$$exp_archlibdir" != "`/bin/pwd`" ]; then \
167 for file in ${UTILITIES}; do \
168 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \
169 done ; \
172 .PHONY: install uninstall mostlyclean clean distclean maintainer-clean
173 .PHONY: bootstrap-clean check tags
175 install: $(DESTDIR)${archlibdir}
176 @echo
177 @echo "Installing utilities for users to run."
178 umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}"
179 for file in ${INSTALLABLES} ; do \
180 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
181 done
182 ${MKDIR_P} "$(DESTDIR)${datadir}/emacs/$(version)"
183 $(INSTALL_DATA) ${srcdir}/README.W32 "$(DESTDIR)${datadir}/emacs/$(version)"
185 uninstall:
186 rm -f "$(DESTDIR)${datadir}/emacs/$(version)/README.W32"
187 for file in ${INSTALLABLES}; do \
188 rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
189 done
190 if [ -d "$(DESTDIR)${archlibdir}" ]; then \
191 (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES}) \
194 mostlyclean:
195 -rm -f core *.o *.res
197 clean: mostlyclean
198 -rm -f ${EXE_FILES}
200 distclean: clean
201 -rm -f TAGS Makefile *.rc
203 bootstrap-clean maintainer-clean: distclean
204 true
206 ## Test the contents of the directory.
207 check:
208 @echo "We don't have any tests for the nt/ directory yet."
210 ETAGS = ../lib-src/etags${EXEEXT}
212 ${ETAGS}: FORCE
213 ${MAKE} -C ../lib-src $(notdir $@)
215 tagsfiles= $(wildcard ${srcdir}/*.[ch])
217 FORCE:
218 .PHONY: tags FORCE
219 tags: TAGS
220 TAGS: ${ETAGS} ${tagsfiles}
221 ${ETAGS} ${tagsfiles}
223 ## Build the programs
224 addpm${EXEEXT}: ${srcdir}/addpm.c ../src/epaths.h
225 $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< $(LIBS_ADDPM) -o $@
227 ddeclient${EXEEXT}: ${srcdir}/ddeclient.c
228 $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< -o $@
230 cmdproxy${EXEEXT}: ${srcdir}/cmdproxy.c
231 $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< -o $@
233 runemacs${EXEEXT}: ${srcdir}/runemacs.c $(EMACSRES)
234 $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $^ -mwindows -o $@
236 ## Also used in ../src/Makefile.
237 emacs.res ../src/emacs.res: emacs.rc ${srcdir}/icons/emacs.ico \
238 ${srcdir}/icons/hand.cur ${srcdir}/$(EMACS_MANIFEST)
239 $(AM_V_RC)${WINDRES} -I ${srcdir} -O coff -o $@ $<