aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/Makefile.in')
-rw-r--r--lib-src/Makefile.in92
1 files changed, 18 insertions, 74 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index b1344c8b010..fa928745996 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -1,6 +1,7 @@
1# Makefile for lib-src subdirectory in GNU Emacs. 1# Makefile for lib-src subdirectory in GNU Emacs.
2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, 2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004,
3# 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3# 2005, 2006, 2007, 2008, 2009, 2010
4# Free Software Foundation, Inc.
4 5
5# This file is part of GNU Emacs. 6# This file is part of GNU Emacs.
6 7
@@ -122,20 +123,11 @@ SCRIPTS= rcs2log vcdiff
122 123
123EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} 124EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
124 125
125# Additional -D flags for movemail (add to MOVE_FLAGS if desired): 126# Specify additional -D flags for movemail. Options:
126# MAIL_USE_POP Support mail retrieval from a POP mailbox. 127# -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking).
127# MAIL_USE_MMDF Support MMDF mailboxes. 128# See the comments about locking in movemail.c. Normally the values
128# MAIL_USE_FLOCK Use flock for file locking (see the comments 129# in ../src/[ms]/*.h should be correct and you should not need to do anything.
129# about locking in movemail.c) 130# If neither flag is set, blessmail is used.
130# MAIL_UNLINK_SPOOL Unlink the user's spool mailbox after reading
131# it (instead of just emptying it).
132# KERBEROS Support Kerberized POP.
133# KRB5 Support Kerberos Version 5 pop instead of
134# Version 4 (define this in addition to
135# KERBEROS).
136# HESIOD Support Hesiod lookups of user mailboxes.
137# MAILHOST A string, the host name of the default POP
138# mail host for the site.
139MOVE_FLAGS= 131MOVE_FLAGS=
140 132
141# ========================== start of cpp stuff ======================= 133# ========================== start of cpp stuff =======================
@@ -176,72 +168,21 @@ MOVE_FLAGS=
176#define BLESSMAIL 168#define BLESSMAIL
177#endif 169#endif
178 170
179#ifdef KERBEROS 171LIBS_MOVE=@KRB4LIB@ @DESLIB@ @KRB5LIB@ @CRYPTOLIB@ @COM_ERRLIB@ @LIBHESIOD@ @LIBRESOLV@
180# ifdef HAVE_LIBKRB
181 KRB4LIB = -lkrb
182# else
183# ifdef HAVE_LIBKRB4
184 KRB4LIB = -lkrb4
185# endif
186# endif
187# ifdef HAVE_LIBDES
188 DESLIB = -ldes
189# else
190# ifdef HAVE_LIBDES425
191 DESLIB = -ldes425
192# endif
193# endif
194# ifdef HAVE_LIBKRB5
195 KRB5LIB = -lkrb5
196# endif
197# ifdef HAVE_LIBK5CRYPTO
198 CRYPTOLIB = -lk5crypto
199# else
200# ifdef HAVE_LIBCRYPTO
201 CRYPTOLIB = -lcrypto
202# endif
203# endif
204# ifdef HAVE_LIBCOM_ERR
205 COM_ERRLIB = -lcom_err
206# endif
207#endif /* KERBEROS */
208
209/* If HESIOD is defined, set this to "-lhesiod". */
210#ifdef HAVE_LIBHESIOD
211# ifdef HAVE_LIBRESOLV
212 HESIODLIB= -lhesiod -lresolv
213# else
214 HESIODLIB= -lhesiod
215# endif
216#endif
217 172
218LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB) 173LIBS_MAIL=@LIBS_MAIL@
219
220#ifdef HAVE_LIBLOCKFILE
221LIBS_MAIL=-llockfile
222#else
223#ifdef HAVE_LIBMAIL
224LIBS_MAIL=-lmail
225#endif
226#endif
227 174
228LOADLIBES=LIBS_SYSTEM LIBS_MACHINE 175LOADLIBES=LIBS_SYSTEM LIBS_MACHINE
229 176
230/* We need to #define emacs to get the right versions of some files. 177/* Those files shared with other GNU utilities need HAVE_CONFIG_H
231 Some other files - those shared with other GNU utilities - need 178 defined before they know they can take advantage of the information
232 HAVE_CONFIG_H #defined before they know they can take advantage of 179 in ../src/config.h. */
233 the information in ../src/config.h. */
234ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ 180ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
235 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} 181 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
236LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ 182LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
237 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} 183 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
238CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ 184CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
239 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} 185 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
240/* This was all of CPP_CFLAGS except -Demacs.
241 Now that -Demacs has been deleted from CPP_CFLAGS,
242 this is actually the same as CPP_CFLAGS, but let\'s not delete it yet. */
243BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
244 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
245 186
246.SUFFIXES: .m 187.SUFFIXES: .m
247 188
@@ -338,8 +279,10 @@ uninstall:
338 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ 279 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \
339 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 280 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
340 done) 281 done)
341 (cd $(DESTDIR)${archlibdir}; \ 282 if [ -d $(DESTDIR)${archlibdir} ]; then \
342 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) 283 (cd $(DESTDIR)${archlibdir} && \
284 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \
285 fi
343 286
344mostlyclean: 287mostlyclean:
345 -rm -f core *.o getopt.h getopt.h-t 288 -rm -f core *.o getopt.h getopt.h-t
@@ -392,7 +335,7 @@ REGEXPOBJ = regex.o
392REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h 335REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
393 336
394regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h 337regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
395 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c 338 ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
396 339
397etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h 340etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
398 $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags 341 $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
@@ -424,6 +367,7 @@ b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
424movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) 367movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS)
425 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail 368 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail
426 369
370/* We need to define emacs to get the right version of something (what?). */
427movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) 371movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H)
428 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c 372 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c
429 373