Commit | Line | Data |
---|---|---|
bbece175 GM |
1 | ### @configure_input@ |
2 | ||
a210e783 GM |
3 | # Copyright (C) 1985, 1987-1988, 1993-1994, 2001-2014 |
4 | # Free Software Foundation, Inc. | |
29ed0542 | 5 | |
eb4252f7 | 6 | # This file is part of GNU Emacs. |
29ed0542 | 7 | |
294981c7 | 8 | # GNU Emacs is free software: you can redistribute it and/or modify |
eb4252f7 | 9 | # it under the terms of the GNU General Public License as published by |
294981c7 GM |
10 | # the Free Software Foundation, either version 3 of the License, or |
11 | # (at your option) any later version. | |
29ed0542 | 12 | |
eb4252f7 RS |
13 | # GNU Emacs is distributed in the hope that it will be useful, |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
29ed0542 | 17 | |
eb4252f7 | 18 | # You should have received a copy of the GNU General Public License |
294981c7 GM |
19 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
20 | ||
50b13cde | 21 | SHELL = @SHELL@ |
f7dbcf3c | 22 | |
70e48c86 GM |
23 | # Following ../lisp/Makefile.in. |
24 | EMACS = ../src/emacs | |
e7a42417 | 25 | EMACSOPT = -batch --no-site-file --no-site-lisp |
70e48c86 | 26 | |
eb4252f7 | 27 | # ==================== Things `configure' will edit ==================== |
c71beb75 | 28 | |
b93f2493 BF |
29 | CC=@CC@ |
30 | CFLAGS=@CFLAGS@ | |
b24ffa81 GM |
31 | CPPFLAGS = @CPPFLAGS@ |
32 | LDFLAGS = @LDFLAGS@ | |
33 | ||
b93f2493 | 34 | version=@version@ |
d3b23034 | 35 | ## Used in $archlibdir. |
cf770692 | 36 | configuration=@configuration@ |
108c7c97 | 37 | EXEEXT=@EXEEXT@ |
49628785 GM |
38 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
39 | C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ | |
e6cfa7c3 | 40 | PROFILING_CFLAGS = @PROFILING_CFLAGS@ |
b8df54ff PE |
41 | WARN_CFLAGS = @WARN_CFLAGS@ |
42 | WERROR_CFLAGS = @WERROR_CFLAGS@ | |
d4166523 | 43 | UPDATE_MANIFEST = @UPDATE_MANIFEST@ |
c71beb75 | 44 | |
a4663fed PJ |
45 | # Program name transformation. |
46 | TRANSFORM = @program_transform_name@ | |
47 | ||
eb4252f7 | 48 | # ==================== Where To Install Things ==================== |
c71beb75 | 49 | |
3a4155de GM |
50 | # Location to install Emacs.app under GNUstep / Mac OS X. |
51 | # Later values may use this. | |
52 | ns_appbindir=@ns_appbindir@ | |
53 | ||
eb4252f7 RS |
54 | # The default location for installation. Everything is placed in |
55 | # subdirectories of this directory. The default values for many of | |
56 | # the variables below are expressed in terms of this one, so you may | |
57 | # not need to change them. This is set with the --prefix option to | |
58 | # `../configure'. | |
b93f2493 | 59 | prefix=@prefix@ |
c71beb75 | 60 | |
eb4252f7 RS |
61 | # Like `prefix', but used for architecture-specific files. This is |
62 | # set with the --exec-prefix option to `../configure'. | |
b93f2493 | 63 | exec_prefix=@exec_prefix@ |
c71beb75 | 64 | |
eb4252f7 RS |
65 | # Where to install Emacs and other binaries that people will want to |
66 | # run directly (like etags). This is set with the --bindir option | |
67 | # to `../configure'. | |
b93f2493 | 68 | bindir=@bindir@ |
c71beb75 | 69 | |
eb4252f7 RS |
70 | # Where to install and expect executable files to be run by Emacs |
71 | # rather than directly by users, and other architecture-dependent | |
72 | # data. ${archlibdir} is usually below this. This is set with the | |
424b6d2b RS |
73 | # --libexecdir option to `../configure'. |
74 | libexecdir=@libexecdir@ | |
c71beb75 | 75 | |
712eaee0 AS |
76 | # Directory for local state files for all programs. |
77 | localstatedir=@localstatedir@ | |
78 | ||
eb4252f7 RS |
79 | # Where to find the source code. This is set by the configure |
80 | # script's `--srcdir' option. However, the value of ${srcdir} in | |
81 | # this makefile is not identical to what was specified with --srcdir, | |
82 | # since the variable here has `/lib-src' added at the end. | |
5126d3b7 RS |
83 | |
84 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | |
b93f2493 BF |
85 | srcdir=@srcdir@ |
86 | VPATH=@srcdir@ | |
c71beb75 | 87 | |
2d521ee6 DM |
88 | # The top-level source directory, also set by configure. |
89 | top_srcdir=@top_srcdir@ | |
11e5e2eb GM |
90 | # MinGW CPPFLAGS may use this. |
91 | abs_top_srcdir=@abs_top_srcdir@ | |
2d521ee6 | 92 | |
eb4252f7 | 93 | # ==================== Emacs-specific directories ==================== |
c71beb75 | 94 | |
eb4252f7 RS |
95 | # These variables hold the values Emacs will actually use. They are |
96 | # based on the values of the standard Make variables above. | |
c71beb75 | 97 | |
eb4252f7 RS |
98 | # Where to put executables to be run by Emacs rather than the user. |
99 | # This path usually includes the Emacs version and configuration name, | |
100 | # so that multiple configurations for multiple versions of Emacs may | |
101 | # be installed at once. This can be set with the --archlibdir option | |
102 | # to `../configure'. | |
b93f2493 | 103 | archlibdir=@archlibdir@ |
41f86d5a | 104 | |
1ba1fb11 CW |
105 | gamedir=@gamedir@ |
106 | gameuser=@gameuser@ | |
107 | ||
eb4252f7 | 108 | # ==================== Utility Programs for the Build ================= |
c71beb75 | 109 | |
eb4252f7 | 110 | # ../configure figures out the correct values for these. |
b93f2493 | 111 | INSTALL = @INSTALL@ |
b93f2493 | 112 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
01c7d383 | 113 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
ae6ed0ac RS |
114 | # By default, we uphold the dignity of our programs. |
115 | INSTALL_STRIP = | |
005ad204 | 116 | MKDIR_P = @MKDIR_P@ |
c71beb75 | 117 | |
eb4252f7 | 118 | # ========================== Lists of Files =========================== |
f7dbcf3c | 119 | |
f540ee86 EZ |
120 | # emacsclientw.exe for MinGW, empty otherwise |
121 | CLIENTW = @CLIENTW@ | |
122 | ||
2f8d5db9 | 123 | # Things that a user might actually run, which should be installed in bindir. |
f540ee86 | 124 | INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} $(CLIENTW) \ |
3fb78d1f | 125 | ebrowse${EXEEXT} |
2f8d5db9 | 126 | |
418cd726 | 127 | INSTALLABLE_SCRIPTS = grep-changelog |
f7dbcf3c | 128 | |
eb4252f7 RS |
129 | # Things that Emacs runs internally, or during the build process, |
130 | # which should not be installed in bindir. | |
c136e5cd GM |
131 | UTILITIES = profile${EXEEXT} movemail${EXEEXT} hexl${EXEEXT} \ |
132 | update-game-score${EXEEXT} | |
f7dbcf3c | 133 | |
7cd43111 | 134 | DONT_INSTALL= make-docfile${EXEEXT} |
5aae6601 | 135 | |
eb4252f7 RS |
136 | # Like UTILITIES, but they're not system-dependent, and should not be |
137 | # deleted by the distclean target. | |
d4166523 | 138 | SCRIPTS= rcs2log $(UPDATE_MANIFEST) |
b7cceaf1 | 139 | |
9a514d4a PE |
140 | # All files that are created by the linker, i.e., whose names end in ${EXEEXT}. |
141 | EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} | |
142 | ||
aded53ff GM |
143 | # Specify additional -D flags for movemail. Options: |
144 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). | |
145 | # See the comments about locking in movemail.c. Normally the values | |
d3b23034 GM |
146 | # set by configure should be correct and you should not need to do anything. |
147 | # If neither flag is set, you need to use blessmail. | |
81f94052 RS |
148 | MOVE_FLAGS= |
149 | ||
7490175b GM |
150 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. |
151 | BLESSMAIL_TARGET=@BLESSMAIL_TARGET@ | |
f6c0ee20 | 152 | |
57f8c490 | 153 | ## -lkrb or -lkrb4 if needed |
5e58e3a4 | 154 | KRB4LIB=@KRB4LIB@ |
57f8c490 | 155 | ## -ldes or -ldes425 if needed |
5e58e3a4 | 156 | DESLIB=@DESLIB@ |
57f8c490 | 157 | ## -lkrb5 if needed |
5e58e3a4 | 158 | KRB5LIB=@KRB5LIB@ |
57f8c490 | 159 | ## -lk5crypto or -lcrypto if needed |
5e58e3a4 | 160 | CRYPTOLIB=@CRYPTOLIB@ |
57f8c490 | 161 | ## -lcom_err if needed |
5e58e3a4 | 162 | COM_ERRLIB=@COM_ERRLIB@ |
57f8c490 | 163 | ## -lhesiod if needed |
5e58e3a4 GM |
164 | LIBHESIOD=@LIBHESIOD@ |
165 | ## -lresolv if HAVE_LIBRESOLV | |
166 | LIBRESOLV=@LIBRESOLV@ | |
167 | ## -llockfile if HAVE_LIBLOCKFILE or -lmail if HAVE_LIBMAIL | |
168 | LIBS_MAIL=@LIBS_MAIL@ | |
d35af63c PE |
169 | ## empty or -lrt or -lposix4 if HAVE_CLOCK_GETTIME |
170 | LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ | |
47d7532e PE |
171 | ## empty or -lrt or -lposix4 if HAVE_FDATASYNC |
172 | LIB_FDATASYNC = @LIB_FDATASYNC@ | |
d6db9fd6 EZ |
173 | ## empty or -lwsock2 for MinGW |
174 | LIB_WSOCK32=@LIB_WSOCK32@ | |
5e58e3a4 GM |
175 | |
176 | ## Extra libraries to use when linking movemail. | |
2f8d5db9 | 177 | LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \ |
d6db9fd6 | 178 | $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV) $(LIB_WSOCK32) |
5e58e3a4 | 179 | |
d6db9fd6 EZ |
180 | ## Extra libraries when linking emacsclient |
181 | ## (empty or -lcomctl32 for MinGW) | |
182 | LIBS_ECLIENT = @LIBS_ECLIENT@ | |
183 | ||
184 | ## Extra object files for linking for MinGW | |
a74b0e1b | 185 | NTLIB = @NTLIB@ |
095bf253 EZ |
186 | CLIENTRES = @CLIENTRES@ |
187 | WINDRES = @WINDRES@ | |
7c4026b6 | 188 | |
97efb629 GM |
189 | ## Some systems define this to request special libraries. |
190 | LIBS_SYSTEM = @LIBS_SYSTEM@ | |
191 | ||
b8df54ff PE |
192 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ |
193 | $(WARN_CFLAGS) $(WERROR_CFLAGS) \ | |
cf38a720 | 194 | -I. -I../src -I../lib \ |
9a514d4a | 195 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib |
c88b05a9 | 196 | |
e6cfa7c3 | 197 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
8c39c668 | 198 | ## Unused. |
a4daeecf | 199 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} |
e6cfa7c3 | 200 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} |
5e58e3a4 | 201 | |
de7de872 GM |
202 | # Configuration files for .o files to depend on. |
203 | config_h = ../src/config.h $(srcdir)/../src/conf_post.h | |
204 | ||
67163749 | 205 | all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
5ef215d8 | 206 | |
0aee6912 PE |
207 | .PHONY: all need-blessmail maybe-blessmail |
208 | ||
9a514d4a PE |
209 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) |
210 | $(EXE_FILES): ../lib/libgnu.a | |
eb4252f7 | 211 | |
d3b23034 GM |
212 | ## Only used if we need blessmail, but no harm in always defining. |
213 | ## This makes the actual blessmail executable. | |
a210e783 GM |
214 | blessmail: $(srcdir)/../lisp/mail/blessmail.el |
215 | $(EMACS) $(EMACSOPT) -l $< | |
216 | chmod +x $@ | |
c6207d0d | 217 | |
d3b23034 GM |
218 | ## This checks if we need to run blessmail. |
219 | ## Do not charge ahead and do it! Let the installer decide. | |
f6c0ee20 | 220 | need-blessmail: blessmail |
d19f95fe RS |
221 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
222 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | |
48f73cfb GM |
223 | echo "Assuming $$dir is really the mail spool directory, you should"; \ |
224 | echo "run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}"; \ | |
225 | echo "as root, to give movemail${EXEEXT} appropriate permissions."; \ | |
226 | echo "Do that after running make install."; \ | |
d19f95fe | 227 | fi |
f6c0ee20 | 228 | |
d3b23034 | 229 | ## This is the target invoked by the top-level Makefile. |
f6c0ee20 | 230 | maybe-blessmail: $(BLESSMAIL_TARGET) |
d19f95fe | 231 | |
d3b23034 GM |
232 | ## Install the internal utilities. Until they are installed, we can |
233 | ## just run them directly from lib-src. | |
234 | ## If the chown/chmod commands fail, that is not a big deal. | |
235 | ## update-game-score will detect at runtime that it is not setuid, | |
236 | ## and handle things accordingly. | |
81af9060 | 237 | $(DESTDIR)${archlibdir}: all |
c71beb75 JB |
238 | @echo |
239 | @echo "Installing utilities run internally by Emacs." | |
48f73cfb | 240 | umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}" |
357a5081 GM |
241 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \ |
242 | if [ "$$exp_archlibdir" != "`/bin/pwd`" ]; then \ | |
544d556f | 243 | for file in ${UTILITIES}; do \ |
48f73cfb | 244 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \ |
544d556f | 245 | done ; \ |
ad600343 | 246 | fi |
48f73cfb GM |
247 | umask 022; ${MKDIR_P} "$(DESTDIR)${gamedir}"; \ |
248 | touch "$(DESTDIR)${gamedir}/snake-scores"; \ | |
249 | touch "$(DESTDIR)${gamedir}/tetris-scores" | |
250 | -if chown ${gameuser} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && chmod u+s "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; then \ | |
251 | chown ${gameuser} "$(DESTDIR)${gamedir}"; \ | |
252 | chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}"; \ | |
7451222f | 253 | fi |
7ac903ab GM |
254 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \ |
255 | if [ "$$exp_archlibdir" != "`cd ${srcdir} && /bin/pwd`" ]; then \ | |
544d556f | 256 | for file in ${SCRIPTS}; do \ |
48f73cfb | 257 | $(INSTALL_SCRIPT) ${srcdir}/$$file "$(DESTDIR)${archlibdir}/$$file"; \ |
c71beb75 | 258 | done ; \ |
0268f19b | 259 | fi |
f7dbcf3c | 260 | |
0aee6912 | 261 | .PHONY: install uninstall mostlyclean clean distclean maintainer-clean |
0e6929ec | 262 | .PHONY: bootstrap-clean extraclean check tags |
0aee6912 | 263 | |
81af9060 | 264 | install: $(DESTDIR)${archlibdir} |
c71beb75 JB |
265 | @echo |
266 | @echo "Installing utilities for users to run." | |
48f73cfb | 267 | umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}" |
b70cff71 | 268 | for file in ${INSTALLABLES} ; do \ |
48f73cfb | 269 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ |
0268f19b | 270 | done |
b70cff71 | 271 | for file in ${INSTALLABLE_SCRIPTS} ; do \ |
48f73cfb | 272 | $(INSTALL_SCRIPT) ${srcdir}/$${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
0268f19b | 273 | done |
f7dbcf3c | 274 | |
39b649dd | 275 | uninstall: |
eeced60b | 276 | for file in ${INSTALLABLES}; do \ |
48f73cfb | 277 | rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ |
eeced60b GM |
278 | done |
279 | for file in ${INSTALLABLE_SCRIPTS}; do \ | |
48f73cfb | 280 | rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
eeced60b | 281 | done |
48f73cfb GM |
282 | if [ -d "$(DESTDIR)${archlibdir}" ]; then \ |
283 | (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES} ${SCRIPTS}) \ | |
f8388570 | 284 | fi |
39b649dd | 285 | |
a17d2c25 | 286 | mostlyclean: |
38b787fa | 287 | -rm -f core *.o *.res |
a17d2c25 RS |
288 | |
289 | clean: mostlyclean | |
497c74cd | 290 | -rm -f ${EXE_FILES} |
f7dbcf3c | 291 | |
39b649dd | 292 | distclean: clean |
5c579a75 | 293 | -rm -f TAGS |
81ac4f35 | 294 | -rm -f Makefile blessmail |
f7dbcf3c | 295 | |
0e6929ec | 296 | bootstrap-clean maintainer-clean: distclean |
39b649dd | 297 | true |
c71beb75 | 298 | |
a01c76d7 | 299 | extraclean: maintainer-clean |
c71beb75 | 300 | -rm -f *~ \#* |
f7dbcf3c | 301 | |
d3b23034 | 302 | ## Test the contents of the directory. |
f7dbcf3c | 303 | check: |
c88b05a9 | 304 | @echo "We don't have any tests for the lib-src/ directory yet." |
f7dbcf3c | 305 | |
93548af1 | 306 | tags: TAGS |
108c7c97 | 307 | TAGS: etags${EXEEXT} |
f7dbcf3c JB |
308 | etags *.[ch] |
309 | ||
de7de872 | 310 | ../lib/libgnu.a: $(config_h) |
0d9f8137 | 311 | $(MAKE) -C ../lib libgnu.a |
9a514d4a | 312 | |
de7de872 | 313 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h) |
a210e783 | 314 | ${CC} -c ${CPP_CFLAGS} $< |
66ab94d9 | 315 | |
10211d43 GM |
316 | |
317 | etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h) | |
5eda3a75 PE |
318 | etags_cflags = -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" -o $@ |
319 | etags_libs = regex.o $(LOADLIBES) $(NTLIB) | |
10211d43 GM |
320 | |
321 | etags${EXEEXT}: ${etags_deps} | |
a210e783 | 322 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs) |
10211d43 | 323 | |
5eda3a75 PE |
324 | ## ctags.c is distinct from etags.c so that parallel makes do not write two |
325 | ## etags.o files on top of each other. | |
10211d43 | 326 | ## FIXME? |
5eda3a75 | 327 | ## Can't we use a wrapper that calls 'etags --ctags'? |
a210e783 GM |
328 | ctags${EXEEXT}: ${srcdir}/ctags.c ${etags_deps} |
329 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs) | |
f7dbcf3c | 330 | |
d6db9fd6 EZ |
331 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \ |
332 | $(config_h) | |
2f8d5db9 | 333 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ |
a210e783 | 334 | $< $(LOADLIBES) $(NTLIB) -o $@ |
adb0a8d3 | 335 | |
d6db9fd6 | 336 | profile${EXEEXT}: ${srcdir}/profile.c $(NTLIB) $(config_h) |
a210e783 | 337 | $(CC) ${ALL_CFLAGS} $< \ |
df199e56 | 338 | $(LOADLIBES) $(NTLIB) $(LIB_CLOCK_GETTIME) -o $@ |
379fb9c8 | 339 | |
d6db9fd6 | 340 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(NTLIB) $(config_h) |
a210e783 | 341 | $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) $(NTLIB) -o $@ |
f7dbcf3c | 342 | |
a74b0e1b | 343 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h) |
a210e783 | 344 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} $< pop.o \ |
df199e56 | 345 | $(LOADLIBES) $(NTLIB) $(LIBS_MOVE) -o $@ |
81f94052 | 346 | |
d6db9fd6 | 347 | pop.o: ${srcdir}/pop.c ${srcdir}/pop.h ${srcdir}/../lib/min-max.h $(config_h) |
a210e783 | 348 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} $< |
f7dbcf3c | 349 | |
f540ee86 | 350 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h) |
a210e783 | 351 | $(CC) ${ALL_CFLAGS} $< \ |
d6db9fd6 | 352 | -DVERSION="\"${version}\"" $(NTLIB) $(LOADLIBES) $(LIB_FDATASYNC) \ |
df199e56 | 353 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ |
7c4026b6 | 354 | |
f540ee86 | 355 | emacsclientw${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(CLIENTRES) $(config_h) |
a210e783 | 356 | $(CC) ${ALL_CFLAGS} $(CLIENTRES) -mwindows $< \ |
d6db9fd6 | 357 | -DVERSION="\"${version}\"" $(LOADLIBES) $(LIB_FDATASYNC) \ |
df199e56 | 358 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ |
d6db9fd6 | 359 | |
2b57bbc0 | 360 | NTINC = ${srcdir}/../nt/inc |
d6db9fd6 EZ |
361 | NTDEPS = $(NTINC)/ms-w32.h $(NTINC)/sys/stat.h $(NTINC)/inttypes.h \ |
362 | $(NTINC)/stdint.h $(NTINC)/pwd.h $(NTINC)/sys/time.h $(NTINC)/stdbool.h \ | |
363 | $(NTINC)/sys/wait.h $(NTINC)/unistd.h $(NTINC)/sys/file.h $(NTINC)/netdb.h | |
f540ee86 | 364 | |
d6db9fd6 EZ |
365 | # The dependency on $(NTDEPS) is a trick intended to cause recompile of |
366 | # programs on MinGW whenever some private header in nt/inc is modified. | |
367 | ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h $(NTDEPS) | |
a210e783 | 368 | $(CC) -c ${CPP_CFLAGS} $< |
f7dbcf3c | 369 | |
d6db9fd6 | 370 | hexl${EXEEXT}: ${srcdir}/hexl.c $(NTLIB) $(config_h) |
a210e783 | 371 | $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) -o $@ |
f7dbcf3c | 372 | |
a74b0e1b | 373 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h) |
1c728a9d | 374 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ |
a210e783 | 375 | $< $(LOADLIBES) $(NTLIB) -o $@ |
d3b23034 | 376 | |
2b57bbc0 | 377 | emacsclient.res: $(NTINC)/../emacsclient.rc |
a210e783 | 378 | $(WINDRES) -O coff --include-dir=$(NTINC)/.. -o $@ $< |
095bf253 | 379 | |
d3b23034 | 380 | ## Makefile ends here. |