X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/5126d3b7fe2461f735eaa200132288a16583286c..1b43e14409256dd66b2c29da03604309c8cd51bc:/lib-src/Makefile.in diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 896641b85b..1d8c5e6c9b 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in @@ -1,5 +1,6 @@ # Makefile for lib-src subdirectory in GNU Emacs. -# Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. +# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003, 2004 +# Free Software Foundation, Inc. # This file is part of GNU Emacs. @@ -26,10 +27,12 @@ SHELL = /bin/sh CC=@CC@ CFLAGS=@CFLAGS@ -ALLOCA=@ALLOCA@ -YACC=@YACC@ version=@version@ configuration=@configuration@ +EXEEXT=@EXEEXT@ + +# Program name transformation. +TRANSFORM = @program_transform_name@ # ==================== Where To Install Things ==================== @@ -55,6 +58,9 @@ bindir=@bindir@ # --libexecdir option to `../configure'. libexecdir=@libexecdir@ +# Directory for local state files for all programs. +localstatedir=@localstatedir@ + # Where to find the source code. This is set by the configure # script's `--srcdir' option. However, the value of ${srcdir} in # this makefile is not identical to what was specified with --srcdir, @@ -79,6 +85,9 @@ top_srcdir=@top_srcdir@ # to `../configure'. archlibdir=@archlibdir@ +gamedir=@gamedir@ +gameuser=@gameuser@ + # ==================== Utility Programs for the Build ================= # ../configure figures out the correct values for these. @@ -92,15 +101,15 @@ INSTALL_STRIP = # Things that a user might actually run, # which should be installed in bindir. -INSTALLABLES = etags ctags emacsclient b2m -INSTALLABLE_SCRIPTS = rcs-checkin +INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} +INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog # Things that Emacs runs internally, or during the build process, # which should not be installed in bindir. -UTILITIES= profile digest-doc \ - sorted-doc movemail cvtmail fakemail yow emacsserver hexl +UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} movemail${EXEEXT} cvtmail${EXEEXT} fakemail${EXEEXT} \ + yow${EXEEXT} hexl${EXEEXT} update-game-score${EXEEXT} -DONT_INSTALL= test-distrib make-docfile +DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} # Like UTILITIES, but they're not system-dependent, and should not be # deleted by the distclean target. @@ -135,13 +144,7 @@ MOVE_FLAGS= #define NOT_C_CODE #include "../src/config.h" -/* We won't really call alloca; - don't let the file name alloca.c get messed up. */ -#ifdef alloca -#undef alloca -#endif - -/* Some machines don't find the standard C libraries in the usual place. */ +/* Some machines don\'t find the standard C libraries in the usual place. */ #ifndef ORDINARY_LINK #ifndef LIB_STANDARD_LIBSRC #define LIB_STANDARD_LIBSRC -lc @@ -185,37 +188,51 @@ MOVE_FLAGS= #ifdef KERBEROS # ifdef HAVE_LIBKRB - KRB4LIB = -lkrb + KRB4LIB = -lkrb # else # ifdef HAVE_LIBKRB4 - KRB4LIB = -lkrb4 + KRB4LIB = -lkrb4 # endif # endif # ifdef HAVE_LIBDES - DESLIB = -ldes + DESLIB = -ldes # else # ifdef HAVE_LIBDES425 - DESLIB = -ldes425 + DESLIB = -ldes425 # endif # endif # ifdef HAVE_LIBKRB5 - KRB5LIB = -lkrb5 + KRB5LIB = -lkrb5 # endif -# ifdef HAVE_LIBCRYPTO - CRYPTOLIB = -lcrypto +# ifdef HAVE_LIBK5CRYPTO + CRYPTOLIB = -lk5crypto +# else +# ifdef HAVE_LIBCRYPTO + CRYPTOLIB = -lcrypto +# endif # endif # ifdef HAVE_LIBCOM_ERR - COM_ERRLIB = -lcom_err + COM_ERRLIB = -lcom_err # endif #endif /* KERBEROS */ /* If HESIOD is defined, set this to "-lhesiod". */ -HESIODLIB= +#ifdef HAVE_LIBHESIOD +# ifdef HAVE_LIBRESOLV + HESIODLIB= -lhesiod -lresolv +# else + HESIODLIB= -lhesiod +# endif +#endif -MOVE_LIBS=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) +LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) +#ifdef HAVE_LIBLOCKFILE +LIBS_MAIL=-llockfile +#else #ifdef HAVE_LIBMAIL -LIBMAIL=-lmail +LIBS_MAIL=-lmail +#endif #endif LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC @@ -232,7 +249,7 @@ CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} /* This was all of CPP_CFLAGS except -Demacs. Now that -Demacs has been deleted from CPP_CFLAGS, - this is actually the same as CPP_CFLAGS, but let's not delete it yet. */ + this is actually the same as CPP_CFLAGS, but let\'s not delete it yet. */ BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} @@ -243,7 +260,21 @@ BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ .c.o: ${CC} -c ${CPP_CFLAGS} $< -all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} +all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} + +/* These targets copy the scripts into the build directory +so that they can be run from there in an uninstalled Emacs. */ +rcs2log: $(srcdir)/rcs2log + cp -p $(srcdir)/rcs2log rcs2log + +rcs-checkin: $(srcdir)/rcs-checkin + cp -p $(srcdir)/rcs-checkin rcs-checkin + +grep-changelog: $(srcdir)/grep-changelog + cp -p $(srcdir)/grep-changelog grep-changelog + +vcdiff: $(srcdir)/vcdiff + cp -p $(srcdir)/vcdiff vcdiff #ifdef MOVEMAIL_NEEDS_BLESSING blessmail: @@ -253,13 +284,13 @@ blessmail: maybe-blessmail: BLESSMAIL #ifdef MOVEMAIL_NEEDS_BLESSING -/* Don't charge ahead and do it! Let the installer decide. - ./blessmail ${archlibdir}/movemail */ +/* Don\'t charge ahead and do it! Let the installer decide. + ./blessmail ${archlibdir}/movemail${EXEEXT} */ @if [ `wc -l