comparison src/Makefile.in @ 25027:f36ec150350e

(ctagsfiles): Split so that files starting with an `x' are found before files starting with `w32'. (ctagsfiles1): New. (ctagsfiles2): New. (TAGS): Use ctagsfiles[12] instead of ctagsfiles. Add PNG library. (obj): Add sound.o. (LIBW): Use Xaw3d if present. (LIBTIFF): Added. (LIBJPEG): Added. (LIBXPM): If not already defined, define to -lXpm. (LIBX)[HAVE_X11]: Add LIBXPM. (term.o): Add dependency on dispextern.h. (alloc.o): Add dependency to dispextern.h. (window.o): Depends on dispextern.h. (alloc.o): Add dependency dispextern.h. (window.o): Add dependency window.c -> dispextern.h (term.o): term.c depends on dispextern.h
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Jul 1999 21:43:52 +0000
parents 32d9203a3172
children 8e7cbb952142
comparison
equal deleted inserted replaced
25026:488e6b8dc9ae 25027:f36ec150350e
327 #endif /* not HAVE_MENUS */ 327 #endif /* not HAVE_MENUS */
328 328
329 #ifdef USE_X_TOOLKIT 329 #ifdef USE_X_TOOLKIT
330 #define @X_TOOLKIT_TYPE@ 330 #define @X_TOOLKIT_TYPE@
331 #if defined (LUCID) || defined (ATHENA) 331 #if defined (LUCID) || defined (ATHENA)
332 #if HAVE_XAW3D
333 LIBW= -lXaw3d
334 #else
332 LIBW= -lXaw 335 LIBW= -lXaw
336 #endif
333 #endif 337 #endif
334 #ifdef MOTIF 338 #ifdef MOTIF
335 #if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP) 339 #if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
336 #define LIB_MOTIF_EXTRA -lXp 340 #define LIB_MOTIF_EXTRA -lXp
337 #else 341 #else
370 374
371 #else /* not USE_X_TOOLKIT */ 375 #else /* not USE_X_TOOLKIT */
372 LIBXT= 376 LIBXT=
373 #endif /* not USE_X_TOOLKIT */ 377 #endif /* not USE_X_TOOLKIT */
374 378
379 #if HAVE_XPM
380 #ifndef LIBXPM
381 #define LIBXPM -lXpm
382 #endif /* not defined LIBXPM */
383 #else /* not HAVE_XPM */
384 #define LIBXPM
385 #endif /* not HAVE_XPM */
386
387 #if HAVE_JPEG
388 #ifndef LIBJPEG
389 #define LIBJPEG -ljpeg
390 #endif /* not defined LIBJPEG */
391 #else /* not HAVE_JPEG */
392 #define LIBJPEG
393 #endif /* not HAVE_JPEG */
394
395 #if HAVE_PNG
396 #ifndef LIBPNG
397 #define LIBPNG -lpng -lz -lm
398 #endif /* not defined LIBPNG */
399 #else /* not HAVE_PNG */
400 #define LIBPNG
401 #endif /* not HAVE_PNG */
402
403 #if HAVE_TIFF
404 #ifndef LIBTIFF
405 #define LIBTIFF -ltiff34
406 #endif /* not defined LIBTIFF */
407 #else /* not HAVE_TIFF */
408 #define LIBTIFF
409 #endif /* not HAVE_TIFF */
410
411 #if HAVE_GIF
412 #ifndef LIBGIF
413 #define LIBGIF -lungif
414 #endif /* not defined LIBGIF */
415 #else /* not HAVE_GIF */
416 #define LIBGIF
417 #endif /* not HAVE_GIF */
418
375 #ifdef HAVE_X11 419 #ifdef HAVE_X11
376 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies 420 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies
377 options for where to find X libraries, but before those libraries. */ 421 options for where to find X libraries, but before those libraries. */
378 X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT 422 X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
379 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM 423 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM LIBXPM LIBJPEG LIBPNG LIBTIFF LIBGIF
380 #else /* not HAVE_X11 */ 424 #else /* not HAVE_X11 */
381 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM 425 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM
382 #endif /* not HAVE_X11 */ 426 #endif /* not HAVE_X11 */
383 #endif /* not HAVE_X_WINDOWS */ 427 #endif /* not HAVE_X_WINDOWS */
384 428
518 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ 562 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
519 alloc.o data.o doc.o editfns.o callint.o \ 563 alloc.o data.o doc.o editfns.o callint.o \
520 eval.o floatfns.o fns.o print.o lread.o \ 564 eval.o floatfns.o fns.o print.o lread.o \
521 abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \ 565 abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \
522 process.o callproc.o \ 566 process.o callproc.o \
523 region-cache.o \ 567 region-cache.o sound.o \
524 doprnt.o strftime.o MKTIME_OBJ GETLOADAVG_OBJ MSDOS_OBJ 568 doprnt.o strftime.o MKTIME_OBJ GETLOADAVG_OBJ MSDOS_OBJ
525 569
526 /* Object files used on some machine or other. 570 /* Object files used on some machine or other.
527 These go in the DOC file on all machines 571 These go in the DOC file on all machines
528 in case they are needed there. */ 572 in case they are needed there. */
1099 keyboard.h gnu.h sink.h sinkmask.h charset.h ccl.h fontset.h $(config_h) 1143 keyboard.h gnu.h sink.h sinkmask.h charset.h ccl.h fontset.h $(config_h)
1100 xselect.o: xselect.c dispextern.h frame.h xterm.h blockinput.h charset.h \ 1144 xselect.o: xselect.c dispextern.h frame.h xterm.h blockinput.h charset.h \
1101 coding.h ccl.h buffer.h $(config_h) 1145 coding.h ccl.h buffer.h $(config_h)
1102 xrdb.o: xrdb.c $(config_h) epaths.h 1146 xrdb.o: xrdb.c $(config_h) epaths.h
1103 hftctl.o: hftctl.c $(config_h) 1147 hftctl.o: hftctl.c $(config_h)
1148 sound.o: sound.c dispextern.h lisp.h $(config_h)
1104 1149
1105 /* The files of Lisp proper */ 1150 /* The files of Lisp proper */
1106 1151
1107 alloc.o: alloc.c frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \ 1152 alloc.o: alloc.c frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \
1108 blockinput.h charset.h $(config_h) INTERVAL_SRC 1153 blockinput.h charset.h $(config_h) INTERVAL_SRC
1158 chmod -w $(SOURCES) 1203 chmod -w $(SOURCES)
1159 chmod +w epaths.h 1204 chmod +w epaths.h
1160 1205
1161 /* Arrange to make a tags table TAGS-LISP for ../lisp, 1206 /* Arrange to make a tags table TAGS-LISP for ../lisp,
1162 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */ 1207 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
1163 ctagsfiles = [a-zA-Z]*.[hc] 1208 ctagsfiles1 = [xyzXYZ]*.[hc]
1209 ctagsfiles2 = [a-wA-W]*.[hc]
1164 TAGS: $(srcdir)/$(ctagsfiles) 1210 TAGS: $(srcdir)/$(ctagsfiles)
1165 ../lib-src/etags --include=TAGS-LISP \ 1211 ../lib-src/etags --include=TAGS-LISP \
1166 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 1212 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1167 $(srcdir)/$(ctagsfiles) 1213 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1168 frc: 1214 frc:
1169 TAGS-LISP: frc 1215 TAGS-LISP: frc
1170 $(MAKE) -f ${lispsource}Makefile TAGS-LISP ETAGS=../lib-src/etags \ 1216 $(MAKE) -f ${lispsource}Makefile TAGS-LISP ETAGS=../lib-src/etags \
1171 lispsource=${lispsource} 1217 lispsource=${lispsource}
1172 tags: TAGS TAGS-LISP 1218 tags: TAGS TAGS-LISP