Commit | Line | Data |
---|---|---|
eb4252f7 | 1 | # Makefile for lib-src subdirectory in GNU Emacs. |
b3d90e46 | 2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, |
f6c0ee20 | 3 | # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
29ed0542 | 4 | |
eb4252f7 | 5 | # This file is part of GNU Emacs. |
29ed0542 | 6 | |
294981c7 | 7 | # GNU Emacs is free software: you can redistribute it and/or modify |
eb4252f7 | 8 | # it under the terms of the GNU General Public License as published by |
294981c7 GM |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. | |
29ed0542 | 11 | |
eb4252f7 RS |
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. | |
29ed0542 | 16 | |
eb4252f7 | 17 | # You should have received a copy of the GNU General Public License |
294981c7 GM |
18 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
19 | ||
29ed0542 | 20 | |
eb4252f7 RS |
21 | # Avoid trouble on systems where the `SHELL' variable might be |
22 | # inherited from the environment. | |
f7dbcf3c JB |
23 | SHELL = /bin/sh |
24 | ||
70e48c86 GM |
25 | # Following ../lisp/Makefile.in. |
26 | EMACS = ../src/emacs | |
27 | EMACSOPT = -batch --no-site-file --multibyte | |
28 | ||
eb4252f7 | 29 | # ==================== Things `configure' will edit ==================== |
c71beb75 | 30 | |
b93f2493 BF |
31 | CC=@CC@ |
32 | CFLAGS=@CFLAGS@ | |
b93f2493 | 33 | version=@version@ |
d3b23034 | 34 | ## Used in $archlibdir. |
cf770692 | 35 | configuration=@configuration@ |
108c7c97 | 36 | EXEEXT=@EXEEXT@ |
49628785 GM |
37 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
38 | C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ | |
c71beb75 | 39 | |
a4663fed PJ |
40 | # Program name transformation. |
41 | TRANSFORM = @program_transform_name@ | |
42 | ||
eb4252f7 | 43 | # ==================== Where To Install Things ==================== |
c71beb75 | 44 | |
eb4252f7 RS |
45 | # The default location for installation. Everything is placed in |
46 | # subdirectories of this directory. The default values for many of | |
47 | # the variables below are expressed in terms of this one, so you may | |
48 | # not need to change them. This is set with the --prefix option to | |
49 | # `../configure'. | |
b93f2493 | 50 | prefix=@prefix@ |
c71beb75 | 51 | |
eb4252f7 RS |
52 | # Like `prefix', but used for architecture-specific files. This is |
53 | # set with the --exec-prefix option to `../configure'. | |
b93f2493 | 54 | exec_prefix=@exec_prefix@ |
c71beb75 | 55 | |
eb4252f7 RS |
56 | # Where to install Emacs and other binaries that people will want to |
57 | # run directly (like etags). This is set with the --bindir option | |
58 | # to `../configure'. | |
b93f2493 | 59 | bindir=@bindir@ |
c71beb75 | 60 | |
eb4252f7 RS |
61 | # Where to install and expect executable files to be run by Emacs |
62 | # rather than directly by users, and other architecture-dependent | |
63 | # data. ${archlibdir} is usually below this. This is set with the | |
424b6d2b RS |
64 | # --libexecdir option to `../configure'. |
65 | libexecdir=@libexecdir@ | |
c71beb75 | 66 | |
712eaee0 AS |
67 | # Directory for local state files for all programs. |
68 | localstatedir=@localstatedir@ | |
69 | ||
eb4252f7 RS |
70 | # Where to find the source code. This is set by the configure |
71 | # script's `--srcdir' option. However, the value of ${srcdir} in | |
72 | # this makefile is not identical to what was specified with --srcdir, | |
73 | # since the variable here has `/lib-src' added at the end. | |
5126d3b7 RS |
74 | |
75 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | |
b93f2493 BF |
76 | srcdir=@srcdir@ |
77 | VPATH=@srcdir@ | |
c71beb75 | 78 | |
2d521ee6 DM |
79 | # The top-level source directory, also set by configure. |
80 | top_srcdir=@top_srcdir@ | |
81 | ||
eb4252f7 | 82 | # ==================== Emacs-specific directories ==================== |
c71beb75 | 83 | |
eb4252f7 RS |
84 | # These variables hold the values Emacs will actually use. They are |
85 | # based on the values of the standard Make variables above. | |
c71beb75 | 86 | |
eb4252f7 RS |
87 | # Where to put executables to be run by Emacs rather than the user. |
88 | # This path usually includes the Emacs version and configuration name, | |
89 | # so that multiple configurations for multiple versions of Emacs may | |
90 | # be installed at once. This can be set with the --archlibdir option | |
91 | # to `../configure'. | |
b93f2493 | 92 | archlibdir=@archlibdir@ |
41f86d5a | 93 | |
1ba1fb11 CW |
94 | gamedir=@gamedir@ |
95 | gameuser=@gameuser@ | |
96 | ||
eb4252f7 | 97 | # ==================== Utility Programs for the Build ================= |
c71beb75 | 98 | |
eb4252f7 | 99 | # ../configure figures out the correct values for these. |
b93f2493 | 100 | INSTALL = @INSTALL@ |
b93f2493 BF |
101 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
102 | INSTALL_DATA = @INSTALL_DATA@ | |
01c7d383 | 103 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
ae6ed0ac RS |
104 | # By default, we uphold the dignity of our programs. |
105 | INSTALL_STRIP = | |
c71beb75 | 106 | |
eb4252f7 | 107 | # ========================== Lists of Files =========================== |
f7dbcf3c | 108 | |
eb4252f7 RS |
109 | # Things that a user might actually run, |
110 | # which should be installed in bindir. | |
48fad8e8 | 111 | INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} @LIB_SRC_EXTRA_INSTALLABLES@ |
e511d7f4 | 112 | INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog |
f7dbcf3c | 113 | |
eb4252f7 RS |
114 | # Things that Emacs runs internally, or during the build process, |
115 | # which should not be installed in bindir. | |
a8a8ec61 GM |
116 | UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} \ |
117 | movemail${EXEEXT} fakemail${EXEEXT} \ | |
8c09ed82 | 118 | hexl${EXEEXT} update-game-score${EXEEXT} |
f7dbcf3c | 119 | |
108c7c97 | 120 | DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} |
5aae6601 | 121 | |
eb4252f7 RS |
122 | # Like UTILITIES, but they're not system-dependent, and should not be |
123 | # deleted by the distclean target. | |
b7cceaf1 JB |
124 | SCRIPTS= rcs2log vcdiff |
125 | ||
0d73e8e3 | 126 | EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
f7dbcf3c | 127 | |
aded53ff GM |
128 | # Specify additional -D flags for movemail. Options: |
129 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). | |
130 | # See the comments about locking in movemail.c. Normally the values | |
d3b23034 GM |
131 | # set by configure should be correct and you should not need to do anything. |
132 | # If neither flag is set, you need to use blessmail. | |
81f94052 RS |
133 | MOVE_FLAGS= |
134 | ||
7490175b GM |
135 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. |
136 | BLESSMAIL_TARGET=@BLESSMAIL_TARGET@ | |
f6c0ee20 | 137 | |
5e58e3a4 GM |
138 | ## -lkrb if HAVE_LIBKRB or -lkrb4 if HAVE_LIBKRB4 |
139 | KRB4LIB=@KRB4LIB@ | |
140 | ## -ldes if HAVE_LIBDES or -ldes425 if HAVE_LIBDES425 | |
141 | DESLIB=@DESLIB@ | |
142 | ## -lkrb5 if HAVE_LIBKRB5 | |
143 | KRB5LIB=@KRB5LIB@ | |
144 | ## -lk5crypto if HAVE_LIBK5CRYPTO or -lcrypto if HAVE_LIBCRYPTO | |
145 | CRYPTOLIB=@CRYPTOLIB@ | |
146 | ## -lcom_err if HAVE_LIBCOM_ERR | |
147 | COM_ERRLIB=@COM_ERRLIB@ | |
148 | ## -lhesiod if HAVE_LIBHESIOD | |
149 | LIBHESIOD=@LIBHESIOD@ | |
150 | ## -lresolv if HAVE_LIBRESOLV | |
151 | LIBRESOLV=@LIBRESOLV@ | |
152 | ## -llockfile if HAVE_LIBLOCKFILE or -lmail if HAVE_LIBMAIL | |
153 | LIBS_MAIL=@LIBS_MAIL@ | |
154 | ||
155 | ## Extra libraries to use when linking movemail. | |
156 | LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV) | |
157 | ||
97efb629 GM |
158 | ## Some systems define this to request special libraries. |
159 | LIBS_SYSTEM = @LIBS_SYSTEM@ | |
160 | ||
4794a582 DN |
161 | # Those files shared with other GNU utilities need HAVE_CONFIG_H |
162 | # defined before they know they can take advantage of the information | |
163 | # in ../src/config.h. | |
164 | ALL_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | |
165 | LINK_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | |
166 | CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | |
5e58e3a4 | 167 | |
97efb629 | 168 | LOADLIBES=$(LIBS_SYSTEM) |
eb4252f7 | 169 | |
29ed0542 | 170 | \f |
edfda783 AR |
171 | .SUFFIXES: .m |
172 | ||
d3b23034 GM |
173 | ## This is the default compilation command. |
174 | ## But we should never rely on it, because some make version failed to | |
175 | ## find it for getopt.o. | |
176 | ## Using an explicit command made it work. | |
c38a040d | 177 | .c.o: |
5293b432 | 178 | ${CC} -c ${CPP_CFLAGS} $< |
122e9f8f | 179 | |
edfda783 | 180 | .m.o: |
edfda783 | 181 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
c71beb75 | 182 | |
ee978ec9 RS |
183 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
184 | ||
d3b23034 GM |
185 | ## These targets copy the scripts into the build directory so that |
186 | ## they can be run from there in an uninstalled Emacs. | |
187 | ## The "-" is prepended because some versions of cp barf when srcdir | |
188 | ## is the current directory, and thus the file will be copied into itself. | |
ee978ec9 | 189 | rcs2log: $(srcdir)/rcs2log |
ca4ea90f | 190 | -cp -p $(srcdir)/rcs2log rcs2log |
ee978ec9 RS |
191 | |
192 | rcs-checkin: $(srcdir)/rcs-checkin | |
ca4ea90f | 193 | -cp -p $(srcdir)/rcs-checkin rcs-checkin |
ee978ec9 RS |
194 | |
195 | grep-changelog: $(srcdir)/grep-changelog | |
ca4ea90f | 196 | -cp -p $(srcdir)/grep-changelog grep-changelog |
ee978ec9 RS |
197 | |
198 | vcdiff: $(srcdir)/vcdiff | |
ca4ea90f | 199 | -cp -p $(srcdir)/vcdiff vcdiff |
c71beb75 | 200 | |
d3b23034 GM |
201 | ## Only used if we need blessmail, but no harm in always defining. |
202 | ## This makes the actual blessmail executable. | |
f675ecb5 | 203 | blessmail: |
70e48c86 | 204 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el |
c6207d0d | 205 | chmod +x blessmail |
c6207d0d | 206 | |
d3b23034 GM |
207 | ## This checks if we need to run blessmail. |
208 | ## Do not charge ahead and do it! Let the installer decide. | |
f6c0ee20 | 209 | need-blessmail: blessmail |
d19f95fe RS |
210 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
211 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | |
212 | echo Assuming $$dir is really the mail spool directory, you should; \ | |
81af9060 | 213 | echo run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}; \ |
108c7c97 | 214 | echo as root, to give movemail${EXEEXT} appropriate permissions.; \ |
eb4252f7 | 215 | echo Do that after running make install.; \ |
d19f95fe | 216 | fi |
f6c0ee20 | 217 | |
d3b23034 | 218 | ## This is the target invoked by the top-level Makefile. |
f6c0ee20 | 219 | maybe-blessmail: $(BLESSMAIL_TARGET) |
d19f95fe | 220 | |
d3b23034 GM |
221 | ## Install the internal utilities. Until they are installed, we can |
222 | ## just run them directly from lib-src. | |
223 | ## If the chown/chmod commands fail, that is not a big deal. | |
224 | ## update-game-score will detect at runtime that it is not setuid, | |
225 | ## and handle things accordingly. | |
81af9060 | 226 | $(DESTDIR)${archlibdir}: all |
c71beb75 JB |
227 | @echo |
228 | @echo "Installing utilities run internally by Emacs." | |
c5a139ca | 229 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${archlibdir} |
81af9060 | 230 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ |
544d556f | 231 | for file in ${UTILITIES}; do \ |
81af9060 | 232 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ |
544d556f | 233 | done ; \ |
ad600343 | 234 | fi |
c5a139ca GM |
235 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ |
236 | touch $(DESTDIR)${gamedir}/snake-scores; \ | |
81af9060 | 237 | touch $(DESTDIR)${gamedir}/tetris-scores |
81af9060 EZ |
238 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ |
239 | chown ${gameuser} $(DESTDIR)${gamedir}; \ | |
240 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ | |
7451222f | 241 | fi |
81af9060 | 242 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \ |
ad600343 | 243 | != `(cd ${srcdir} && /bin/pwd)` ]; then \ |
544d556f | 244 | for file in ${SCRIPTS}; do \ |
01c7d383 | 245 | $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ |
c71beb75 | 246 | done ; \ |
0268f19b | 247 | fi |
f7dbcf3c | 248 | |
81af9060 | 249 | install: $(DESTDIR)${archlibdir} |
c71beb75 JB |
250 | @echo |
251 | @echo "Installing utilities for users to run." | |
b70cff71 | 252 | for file in ${INSTALLABLES} ; do \ |
81af9060 EZ |
253 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
254 | chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ | |
0268f19b | 255 | done |
b70cff71 | 256 | for file in ${INSTALLABLE_SCRIPTS} ; do \ |
01c7d383 | 257 | $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
81af9060 | 258 | chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ |
0268f19b | 259 | done |
f7dbcf3c | 260 | |
39b649dd | 261 | uninstall: |
81af9060 | 262 | (cd $(DESTDIR)${bindir}; \ |
a4663fed | 263 | for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ |
81af9060 | 264 | rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
a4663fed | 265 | done) |
f8388570 TO |
266 | if [ -d $(DESTDIR)${archlibdir} ]; then \ |
267 | (cd $(DESTDIR)${archlibdir} && \ | |
268 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \ | |
269 | fi | |
39b649dd | 270 | |
a17d2c25 | 271 | mostlyclean: |
9eff9fe3 | 272 | -rm -f core *.o getopt.h getopt.h-t |
a17d2c25 RS |
273 | |
274 | clean: mostlyclean | |
5aae6601 | 275 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
1405e9d0 | 276 | -rm -f fns*.el *.tab.c *.tab.h |
f7dbcf3c | 277 | |
39b649dd | 278 | distclean: clean |
5c579a75 | 279 | -rm -f TAGS |
b2959c9d | 280 | -rm -f Makefile Makefile.c blessmail |
f7dbcf3c | 281 | |
26873b72 | 282 | maintainer-clean: distclean |
39b649dd | 283 | true |
c71beb75 | 284 | |
a01c76d7 | 285 | extraclean: maintainer-clean |
c71beb75 | 286 | -rm -f *~ \#* |
f7dbcf3c | 287 | |
d3b23034 | 288 | ## Test the contents of the directory. |
f7dbcf3c JB |
289 | check: |
290 | @echo "We don't have any tests for GNU Emacs yet." | |
291 | ||
93548af1 | 292 | tags: TAGS |
108c7c97 | 293 | TAGS: etags${EXEEXT} |
f7dbcf3c JB |
294 | etags *.[ch] |
295 | ||
d3b23034 GM |
296 | ## This verifies that the non-ASCII characters in the file \`testfile\' |
297 | ## have not been clobbered by whatever means were used to copy and | |
298 | ## distribute Emacs. If they were clobbered, all the .elc files were | |
299 | ## clobbered too. | |
108c7c97 | 300 | test-distrib${EXEEXT}: ${srcdir}/test-distrib.c |
c88a7f88 | 301 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
0d73e8e3 | 302 | ./test-distrib ${srcdir}/testfile |
f7dbcf3c | 303 | |
d3b23034 GM |
304 | ## We need the following in order to create a <getopt.h> when the system |
305 | ## does not have one that works with the given compiler. | |
9eff9fe3 PE |
306 | GETOPT_H = @GETOPT_H@ |
307 | getopt.h: getopt_.h | |
308 | cp $(srcdir)/getopt_.h $@-t | |
309 | mv $@-t $@ | |
310 | ||
311 | GETOPTOBJS = @GETOPTOBJS@ | |
312 | GETOPTDEPS = $(GETOPTOBJS) $(GETOPT_H) | |
313 | getopt.o: ${srcdir}/getopt.c $(GETOPT_H) ${srcdir}/gettext.h | |
0268f19b | 314 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c |
9eff9fe3 | 315 | getopt1.o: ${srcdir}/getopt1.c $(GETOPT_H) |
0268f19b | 316 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c |
f7dbcf3c | 317 | |
66ab94d9 | 318 | REGEXPOBJ = regex.o |
5126d3b7 | 319 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h |
e63ceebf | 320 | |
5126d3b7 | 321 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h |
aded53ff | 322 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
66ab94d9 | 323 | |
108c7c97 | 324 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h |
63b9b605 | 325 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags |
f7dbcf3c | 326 | |
108c7c97 | 327 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
adb0a8d3 GM |
328 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse |
329 | ||
d3b23034 GM |
330 | ## We depend on etags to assure that parallel makes do not write two |
331 | ## etags.o files on top of each other. | |
108c7c97 | 332 | ctags${EXEEXT}: etags${EXEEXT} |
63b9b605 | 333 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
f7dbcf3c | 334 | |
108c7c97 | 335 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h |
379fb9c8 RS |
336 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile |
337 | ||
108c7c97 | 338 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h |
3e883207 | 339 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile |
f7dbcf3c | 340 | |
108c7c97 | 341 | digest-doc${EXEEXT}: ${srcdir}/digest-doc.c |
c60ee5e7 | 342 | $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc |
f7dbcf3c | 343 | |
ac06b30b DL |
344 | sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c |
345 | $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c $(LOADLIBES) -o sorted-doc | |
f7dbcf3c | 346 | |
108c7c97 | 347 | b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) |
1817145f | 348 | $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \ |
c60ee5e7 | 349 | $(GETOPTOBJS) $(LOADLIBES) -o b2m |
f7dbcf3c | 350 | |
108c7c97 | 351 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
5e58e3a4 | 352 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail |
81f94052 | 353 | |
d3b23034 | 354 | ## We need to define emacs to get the right version of something (what?). |
9eff9fe3 | 355 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) |
f5f20f6c | 356 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c |
81f94052 | 357 | |
93c8d183 | 358 | pop.o: ${srcdir}/pop.c ../src/config.h |
81f94052 | 359 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
f7dbcf3c | 360 | |
108c7c97 | 361 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h |
3e883207 | 362 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail |
f7dbcf3c | 363 | |
108c7c97 | 364 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) |
deec6f99 | 365 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \ |
c2bcfb19 | 366 | -DVERSION="\"${version}\"" \ |
deec6f99 | 367 | $(LOADLIBES) -o emacsclient |
f7dbcf3c | 368 | |
108c7c97 | 369 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h |
3e883207 | 370 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
f7dbcf3c | 371 | |
f85d3f3f RS |
372 | update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) |
373 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} update-game-score.o $(GETOPTOBJS) $(LOADLIBES) -o update-game-score | |
374 | ||
375 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) | |
376 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ | |
30cfcf7f | 377 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" |
d3b23034 GM |
378 | |
379 | ## Makefile ends here. |