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