Mercurial > hg > xemacs-beta
annotate lib-src/Makefile.in.in @ 5504:d3e0482c7899
Move #'split-path to subr.el, as was always the intention.
src/ChangeLog addition:
2011-05-07 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (Fsplit_path): Removed.
* fns.c (syms_of_fns):
Move #'split-path to subr.el, as was always the intention.
lisp/ChangeLog addition:
2011-05-07 Aidan Kehoe <kehoea@parhasard.net>
* subr.el:
* subr.el (split-path): New.
Moved here from fns.c. There's no need to have this in C, it's no
longer used that early at startup.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 07 May 2011 16:57:17 +0100 |
parents | 308d34e9f07d |
children | 4aa8ee813265 |
rev | line source |
---|---|
428 | 1 ## Makefile for lib-src subdirectory in XEmacs. |
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. | |
3 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc. | |
3062 | 4 ## Copyright (C) 2005 Ben Wing. |
428 | 5 |
6 ## This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4894
diff
changeset
|
8 ## XEmacs is free software: you can redistribute it and/or modify it |
428 | 9 ## under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4894
diff
changeset
|
10 ## Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4894
diff
changeset
|
11 ## option) any later version. |
428 | 12 |
13 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 ## for more details. | |
17 | |
18 ## You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4894
diff
changeset
|
19 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
428 | 20 |
21 ## Note: FSF Makefile.in.in does something weird so that the comments | |
22 ## above a certain point in this file are in shell format instead of | |
23 ## in C format. How the hell is this supposed to work? */ | |
24 | |
25 ## For performance and consistency, no built-in rules | |
26 .SUFFIXES: | |
27 .SUFFIXES: .c .h .o | |
28 ## ==================== Things "configure" will edit ==================== | |
29 | |
30 @SET_MAKE@ | |
31 SHELL = /bin/sh | |
32 RM = rm -f | |
33 pwd = /bin/pwd | |
34 | |
35 CC=@CC@ | |
36 CPP=@CPP@ | |
37 CFLAGS=@CFLAGS@ | |
38 CPPFLAGS=@CPPFLAGS@ | |
39 LDFLAGS=@LDFLAGS@ | |
40 ALLOCA=@ALLOCA@ | |
41 LN_S=@LN_S@ | |
42 version=@version@ | |
3972 | 43 etags_xemacs_version=@verbose_version@ |
428 | 44 |
45 ## This will be the name of the generated binary and is set automatically | |
46 ## by configure. | |
47 PROGNAME=@PROGNAME@ | |
48 | |
49 ## ==================== Where To Install Things ==================== | |
50 | |
51 prefix=@prefix@ | |
52 exec_prefix=@exec_prefix@ | |
53 bindir=@bindir@ | |
54 libdir=@libdir@ | |
55 srcdir=@srcdir@ | |
56 datadir=@datadir@ | |
4118 | 57 datarootdir=@datarootdir@ |
428 | 58 instvardir=@instvardir@ |
59 top_srcdir=@top_srcdir@ | |
60 archlibdir=@archlibdir@ | |
61 configuration=@configuration@ | |
62 moduledir=@moduledir@ | |
63 sitemoduledir=@sitemoduledir@ | |
64 | |
65 ## ==================== Utility Programs for the Build ================= | |
66 | |
67 INSTALL = @install_pp@ @INSTALL@ | |
68 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
69 INSTALL_DATA = @INSTALL_DATA@ | |
70 | |
71 ## ========================== Lists of Files =========================== | |
72 | |
73 #define NO_SHORTNAMES | |
74 #define NOT_C_CODE | |
75 #include "../src/config.h" | |
76 | |
460 | 77 #ifndef WIN32_NATIVE |
78 #define INSTALL_GNUSERV | |
428 | 79 #endif |
80 | |
460 | 81 ## ---------------------------------------------------------------- |
82 ## Things that a user might actually run directly, | |
83 ## which should be installed in ${bindir}. | |
428 | 84 |
460 | 85 PUBLIC_INSTALLABLE_EXES=\ |
86 #ifdef INSTALL_GNUSERV | |
87 gnuclient\ | |
88 #endif | |
89 #ifdef HAVE_SHLIB | |
90 ellcc\ | |
91 #endif | |
819 | 92 #ifdef HAVE_MS_WINDOWS |
93 winclient\ | |
94 #endif | |
460 | 95 etags ctags b2m ootags |
96 | |
97 #ifdef INSTALL_GNUSERV | |
4782
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
98 PUBLIC_INSTALLABLE_SCRIPTS=gnudoit gnuattach |
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
99 #else |
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
100 PUBLIC_INSTALLABLE_SCRIPTS= |
460 | 101 #endif |
102 | |
103 PUBLIC_INSTALLABLES = ${PUBLIC_INSTALLABLE_EXES} ${PUBLIC_INSTALLABLE_SCRIPTS} | |
104 | |
105 ## ---------------------------------------------------------------- | |
106 ## Things that XEmacs runs internally on the user's behalf, | |
107 ## which should be installed in ${archlibdir}. | |
108 | |
109 PRIVATE_INSTALLABLE_EXES=\ | |
110 #ifdef INSTALL_GNUSERV | |
111 gnuserv\ | |
112 #endif | |
442 | 113 #ifdef WIN32_NATIVE |
460 | 114 i minitar\ |
428 | 115 #else |
460 | 116 fakemail\ |
428 | 117 #endif |
4773
c858892e4f2b
Remove build rules that try to make wakeup out of the now nonexistent wakeup.c.
Jerry James <james@xemacs.org>
parents:
4118
diff
changeset
|
118 profile make-docfile digest-doc\ |
4785
d6cfba1cc388
Remove the lib-src/yow binary, which is currently unused anyway. See message
Jerry James <james@xemacs.org>
parents:
4782
diff
changeset
|
119 sorted-doc movemail cvtmail hexl mmencode |
428 | 120 |
121 GEN_SCRIPTS = rcs2log vcdiff gzip-el.sh | |
122 PKG_SCRIPTS = add-big-package.sh | |
460 | 123 PRIVATE_INSTALLABLE_SCRIPTS = $(GEN_SCRIPTS) $(PKG_SCRIPTS) |
124 | |
125 PRIVATE_INSTALLABLES = ${PRIVATE_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_SCRIPTS} | |
126 | |
127 ## ---------------------------------------------------------------- | |
128 ## Things that XEmacs uses during the build process itself. | |
129 ## Not installed. | |
428 | 130 |
2720 | 131 #ifdef DUMP_IN_EXEC |
2015 | 132 BUILD_UTILITIES = make-path make-dump-id insert-data-in-exec |
2720 | 133 #else |
134 BUILD_UTILITIES = make-path make-dump-id | |
135 #endif | |
460 | 136 |
137 EXES = ${PUBLIC_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_EXES} ${BUILD_UTILITIES} | |
138 SCRIPTS = ${PUBLIC_INSTALLABLE_SCRIPTS} ${PRIVATE_INSTALLABLE_SCRIPTS} | |
139 PROGS = ${EXES} ${SCRIPTS} | |
140 | |
428 | 141 ## Additional -D flags for movemail (add to MOVE_FLAGS if desired): |
142 ## MAIL_USE_POP Support mail retrieval from a POP mailbox. | |
143 ## MAIL_USE_MMDF Support MMDF mailboxes. | |
144 ## MAIL_USE_FLOCK Use flock for file locking (see the comments | |
145 ## about locking in movemail.c) | |
146 ## MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading | |
147 ## it (instead of just emptying it). | |
148 ## KERBEROS Support Kerberized POP. | |
149 ## KRB5 Support Kerberos Version 5 pop instead of | |
150 ## Version 4 (define this in addition to | |
151 ## KERBEROS). | |
152 ## HESIOD Support Hesiod lookups of user mailboxes. | |
153 ## MAILHOST A string, the host name of the default POP | |
154 ## mail host for the site. | |
155 | |
156 MOVE_FLAGS= | |
157 ## | |
158 ## Additional libraries for movemail: | |
159 ## For KERBEROS | |
160 ## MOVE_LIBS= -lkrb -ldes -lcom_err | |
161 ## For KERBEROS + KRB5 | |
162 ## MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err | |
163 ## Add "-lhesiod" if HESIOD is defined. | |
164 | |
165 MOVE_LIBS= | |
166 | |
167 ## ========================== start of cpp stuff ======================= | |
168 | |
169 #ifdef USE_GNU_MAKE | |
170 vpath %.c @srcdir@ | |
171 vpath %.h @srcdir@ | |
172 #else | |
173 VPATH=@srcdir@ | |
174 #endif | |
175 | |
176 c_switch_general=@c_switch_general@ | |
177 c_switch_all=@c_switch_all@ | |
178 ld_switch_general=@ld_switch_general@ | |
179 ld_switch_all=@ld_switch_all@ | |
180 ld_libs_general=@ld_libs_general@ | |
181 | |
182 ## We need to #define emacs to get the right versions of some files. | |
183 | |
438 | 184 ## To understand the order of -I flags, consider what happens if you run |
185 ## ./configure in the source tree, and then run | |
186 ## $(srcdir).2.26/configure in some other build tree. | |
187 ## Where will the generated files like config.h be included from? | |
188 ## This is also why you _must_ use <...> instead of "..." | |
189 ## when #include'ing generated files. | |
446 | 190 cppflags = -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS) |
428 | 191 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) |
192 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) | |
193 | |
194 ## This is the default compilation command. | |
195 ## But we should never rely on it, because some make version | |
196 ## failed to find it for getopt.o. | |
197 ## Using an explicit command made it work. | |
198 .c.o: | |
199 ${CC} -c $(cflags) $< | |
200 | |
460 | 201 .PHONY : all maybe-blessmail install uninstall check |
428 | 202 |
460 | 203 all: ${PROGS} |
428 | 204 |
205 ## Make symlinks for shell scripts if using --srcdir | |
460 | 206 ${SCRIPTS}: |
428 | 207 for f in ${SCRIPTS}; do \ |
208 if test ! -r $$f; then ${LN_S} ${srcdir}/$$f $$f; fi; \ | |
460 | 209 done |
428 | 210 |
211 #undef MOVEMAIL_NEEDS_BLESSING | |
212 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF) | |
213 #define MOVEMAIL_NEEDS_BLESSING | |
214 blessmail = blessmail | |
215 blessmail: | |
776 | 216 ../src/xemacs -batch -no-packages -l ../lisp/blessmail.el |
428 | 217 chmod +x $@ |
218 #endif /* movemail needs blessing */ | |
219 | |
220 maybe-blessmail: $(blessmail) | |
221 #ifdef MOVEMAIL_NEEDS_BLESSING | |
222 ## Do not charge ahead and do it! Let the installer decide. | |
223 ## ./blessmail ${archlibdir}/movemail | |
224 @if test `wc -l <blessmail` != 2; then \ | |
225 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | |
226 echo "*************************************************************";\ | |
227 echo "Assuming $$dir is really the mail spool directory, you should";\ | |
228 echo "run lib-src/blessmail ${archlibdir}/movemail"; \ | |
229 echo "as root, to give movemail appropriate permissions."; \ | |
230 echo "Do that after running make install."; \ | |
231 echo "You can also do make blessmail. "; \ | |
232 echo "*************************************************************";\ | |
233 fi | |
234 #endif | |
235 | |
236 do-blessmail: $(blessmail) | |
237 #ifdef MOVEMAIL_NEEDS_BLESSING | |
238 ./blessmail ${archlibdir}/movemail | |
239 #endif | |
240 | |
241 ## Install the internal utilities. Until they are installed, we can | |
242 ## just run them directly from lib-src. | |
243 ${archlibdir}: all | |
244 @echo; echo "Installing utilities run internally by XEmacs." | |
245 ./make-path ${archlibdir} | |
246 if test "`(cd ${archlibdir} && $(pwd))`" != "`$(pwd)`"; then \ | |
460 | 247 for f in ${PRIVATE_INSTALLABLE_EXES}; do \ |
428 | 248 (cd .. && $(INSTALL_PROGRAM) lib-src/$$f ${archlibdir}/$$f) ; \ |
249 done ; \ | |
250 fi | |
251 if test "`(cd ${archlibdir} && $(pwd))`" \ | |
252 != "`(cd ${srcdir} && $(pwd))`"; then \ | |
460 | 253 for f in ${PRIVATE_INSTALLABLE_SCRIPTS}; do \ |
428 | 254 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f ${archlibdir}/$$f); \ |
255 done ; \ | |
256 fi | |
257 | |
258 install: ${archlibdir} | |
259 @echo; echo "Installing utilities for users to run." | |
460 | 260 for file in ${PUBLIC_INSTALLABLE_EXES} ; do \ |
428 | 261 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \ |
262 done | |
460 | 263 for file in ${PUBLIC_INSTALLABLE_SCRIPTS} ; do \ |
428 | 264 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \ |
265 done | |
266 | |
267 uninstall: | |
460 | 268 cd ${bindir} && $(RM) ${PUBLIC_INSTALLABLES} |
269 cd ${archlibdir} && $(RM) ${PRIVATE_INSTALLABLES} | |
428 | 270 |
271 .PHONY: mostlyclean clean distclean realclean extraclean | |
3062 | 272 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig |
428 | 273 mostlyclean: |
3083 | 274 -$(RM) *.o *.i core |
428 | 275 clean: mostlyclean |
3083 | 276 -$(RM) ${EXES} *.exe |
3062 | 277 distclean-noconfig: clean |
3083 | 278 -$(RM) DOC *.tab.c *.tab.h TAGS ellcc.h blessmail config.values |
3062 | 279 ## This is used in making a distribution. |
280 ## Do not use it on development directories! | |
281 distclean: distclean-noconfig | |
3083 | 282 -$(RM) GNUmakefile Makefile Makefile.in |
3062 | 283 realclean-noconfig: distclean-noconfig |
428 | 284 realclean: distclean |
3062 | 285 extraclean-noconfig: realclean-noconfig |
3083 | 286 -$(RM) *~ \#* |
3062 | 287 extraclean: realclean |
3083 | 288 -$(RM) *~ \#* |
428 | 289 |
290 ## Test the contents of the directory. | |
291 check: | |
460 | 292 @echo "We don't have any tests for lib-src yet." |
428 | 293 |
294 TAGS: etags | |
295 etags *.[ch] | |
296 | |
297 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) | |
298 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h | |
299 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h | |
300 ${CC} -c $(cflags) ${srcdir}/getopt.c | |
301 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h | |
302 ${CC} -c $(cflags) ${srcdir}/getopt1.c | |
438 | 303 alloca.o: ${top_srcdir}/src/alloca.c |
428 | 304 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c |
305 | |
438 | 306 regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h |
446 | 307 $(CC) -c $(cflags) \ |
442 | 308 -DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c |
428 | 309 |
3972 | 310 etags_args = $(cflags) -DEMACS_NAME='"XEmacs"' -DVERSION='"${etags_xemacs_version}"' \ |
709 | 311 ${srcdir}/etags.c $(GETOPTOBJS) regex.o $(ldflags) |
438 | 312 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h |
428 | 313 |
314 etags: ${etags_deps} | |
315 $(CC) ${etags_args} -o $@ | |
316 | |
438 | 317 ellcc_args = $(cflags) ${srcdir}/ellcc.c $(ldflags) |
428 | 318 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h |
319 | |
320 ellcc: ${ellcc_deps} | |
321 $(CC) ${ellcc_args} -o $@ | |
322 | |
3972 | 323 ## #### we should probably do the same as for pot's etags |
438 | 324 ootags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/ootags.c \ |
428 | 325 $(GETOPTOBJS) regex.o $(ldflags) |
438 | 326 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h |
428 | 327 |
328 ootags: ${ootags_deps} | |
329 $(CC) ${ootags_args} -o $@ | |
330 | |
331 ## ctags depends on etags to assure that parallel makes do not write | |
332 ## two etags.o files on top of each other. | |
333 ctags: ${etags_deps} etags | |
334 $(CC) -DCTAGS ${etags_args} -o $@ | |
335 | |
336 profile: ${srcdir}/profile.c | |
337 $(CC) $(cflags) ${srcdir}/profile.c $(ldflags) -o $@ | |
338 | |
339 make-docfile: ${srcdir}/make-docfile.c | |
340 $(CC) $(cflags) ${srcdir}/make-docfile.c $(ldflags) -o $@ | |
341 | |
342 digest-doc: ${srcdir}/digest-doc.c | |
446 | 343 $(CC) -Demacs $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@ |
428 | 344 |
345 sorted-doc: ${srcdir}/sorted-doc.c | |
346 $(CC) $(cflags) ${srcdir}/sorted-doc.c $(ldflags) -o $@ | |
347 | |
348 b2m: ${srcdir}/b2m.c ../src/config.h | |
349 $(CC) $(cflags) ${srcdir}/b2m.c $(ldflags) -o $@ | |
350 | |
351 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h $(GETOPTDEPS) regex.o \ | |
352 ../src/config.h | |
353 $(CC) $(cflags) ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c \ | |
354 $(GETOPTOBJS) regex.o $(ldflags) ${MOVE_LIBS} -o $@ | |
355 | |
356 cvtmail: ${srcdir}/cvtmail.c | |
357 $(CC) $(cflags) ${srcdir}/cvtmail.c $(ldflags) -o $@ | |
358 | |
359 fakemail: ${srcdir}/fakemail.c ../src/config.h | |
360 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@ | |
361 | |
442 | 362 i: ${srcdir}/i.c |
363 $(CC) $(cflags) ${srcdir}/i.c $(ldflags) -o $@ | |
364 | |
365 minitar: ${srcdir}/../nt/minitar.c | |
366 $(CC) $(cflags) ${srcdir}/../nt/minitar.c $(ldflags) -lz -o $@ | |
367 | |
819 | 368 winclient: ${srcdir}/winclient.c |
369 $(CC) $(cflags) ${srcdir}/winclient.c $(ldflags) -o $@ | |
370 | |
428 | 371 hexl: ${srcdir}/hexl.c |
372 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@ | |
373 | |
442 | 374 make-dump-id: ${srcdir}/make-dump-id.c |
375 $(CC) $(cflags) ${srcdir}/make-dump-id.c $(ldflags) -o $@ | |
376 | |
2720 | 377 #ifndef DUMP_IN_EXEC |
2015 | 378 insert-data-in-exec: ${srcdir}/insert-data-in-exec.c |
379 $(CC) $(cflags) ${srcdir}/insert-data-in-exec.c $(ldflags) -o $@ | |
2720 | 380 #endif /* not DUMP_IN_EXEC */ |
2015 | 381 |
428 | 382 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all) |
383 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) | |
384 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h | |
385 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c | |
386 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h | |
387 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | |
388 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h | |
389 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | |
390 | |
391 ## mmencode binary is used by tm - but is really part of the metamail package | |
392 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail | |
393 mmencode : ${srcdir}/mmencode.c | |
1886 | 394 $(CC) $(cflags) ${srcdir}/mmencode.c $(ldflags) -o $@ |
428 | 395 |
396 | |
397 ## The timer utility (timer.c, getdate.y) is not used in XEmacs | |
398 ## because XEmacs provides built-in timer facilities. | |
399 | |
400 make-path: ${srcdir}/make-path.c ../src/config.h | |
1886 | 401 $(CC) -Demacs $(cflags) ${srcdir}/make-path.c $(ldflags) -o $@ |