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.in110
1 files changed, 50 insertions, 60 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index c5e117f66f9..d271bb3a4fa 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -1,5 +1,5 @@
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-2011 2# Copyright (C) 1985, 1987-1988, 1993-1994, 2001-2012
3# Free Software Foundation, Inc. 3# Free Software Foundation, Inc.
4 4
5# This file is part of GNU Emacs. 5# This file is part of GNU Emacs.
@@ -36,14 +36,19 @@ configuration=@configuration@
36EXEEXT=@EXEEXT@ 36EXEEXT=@EXEEXT@
37C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ 37C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
38C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ 38C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
39C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
40PROFILING_CFLAGS = @PROFILING_CFLAGS@ 39PROFILING_CFLAGS = @PROFILING_CFLAGS@
40WARN_CFLAGS = @WARN_CFLAGS@
41WERROR_CFLAGS = @WERROR_CFLAGS@
41 42
42# Program name transformation. 43# Program name transformation.
43TRANSFORM = @program_transform_name@ 44TRANSFORM = @program_transform_name@
44 45
45# ==================== Where To Install Things ==================== 46# ==================== Where To Install Things ====================
46 47
48# Location to install Emacs.app under GNUstep / Mac OS X.
49# Later values may use this.
50ns_appbindir=@ns_appbindir@
51
47# The default location for installation. Everything is placed in 52# The default location for installation. Everything is placed in
48# subdirectories of this directory. The default values for many of 53# subdirectories of this directory. The default values for many of
49# the variables below are expressed in terms of this one, so you may 54# the variables below are expressed in terms of this one, so you may
@@ -101,10 +106,10 @@ gameuser=@gameuser@
101# ../configure figures out the correct values for these. 106# ../configure figures out the correct values for these.
102INSTALL = @INSTALL@ 107INSTALL = @INSTALL@
103INSTALL_PROGRAM = @INSTALL_PROGRAM@ 108INSTALL_PROGRAM = @INSTALL_PROGRAM@
104INSTALL_DATA = @INSTALL_DATA@
105INSTALL_SCRIPT = @INSTALL_SCRIPT@ 109INSTALL_SCRIPT = @INSTALL_SCRIPT@
106# By default, we uphold the dignity of our programs. 110# By default, we uphold the dignity of our programs.
107INSTALL_STRIP = 111INSTALL_STRIP =
112MKDIR_P = @MKDIR_P@
108 113
109# ========================== Lists of Files =========================== 114# ========================== Lists of Files ===========================
110 115
@@ -112,8 +117,7 @@ INSTALL_STRIP =
112INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} \ 117INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} \
113 ebrowse${EXEEXT} 118 ebrowse${EXEEXT}
114 119
115INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog 120INSTALLABLE_SCRIPTS = grep-changelog
116STAMP_INST_SCRIPTS = stamp-rcs-checkin stamp-grep-changelog
117 121
118# Things that Emacs runs internally, or during the build process, 122# Things that Emacs runs internally, or during the build process,
119# which should not be installed in bindir. 123# which should not be installed in bindir.
@@ -124,8 +128,7 @@ DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
124 128
125# Like UTILITIES, but they're not system-dependent, and should not be 129# Like UTILITIES, but they're not system-dependent, and should not be
126# deleted by the distclean target. 130# deleted by the distclean target.
127SCRIPTS= rcs2log vcdiff 131SCRIPTS= rcs2log
128STAMP_SCRIPTS= stamp-rcs2log stamp-vcdiff
129 132
130# All files that are created by the linker, i.e., whose names end in ${EXEEXT}. 133# All files that are created by the linker, i.e., whose names end in ${EXEEXT}.
131EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} 134EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
@@ -156,6 +159,8 @@ LIBHESIOD=@LIBHESIOD@
156LIBRESOLV=@LIBRESOLV@ 159LIBRESOLV=@LIBRESOLV@
157## -llockfile if HAVE_LIBLOCKFILE or -lmail if HAVE_LIBMAIL 160## -llockfile if HAVE_LIBLOCKFILE or -lmail if HAVE_LIBMAIL
158LIBS_MAIL=@LIBS_MAIL@ 161LIBS_MAIL=@LIBS_MAIL@
162## empty or -lrt or -lposix4 if HAVE_CLOCK_GETTIME
163LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
159 164
160## Extra libraries to use when linking movemail. 165## Extra libraries to use when linking movemail.
161LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \ 166LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \
@@ -164,42 +169,24 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \
164## Some systems define this to request special libraries. 169## Some systems define this to request special libraries.
165LIBS_SYSTEM = @LIBS_SYSTEM@ 170LIBS_SYSTEM = @LIBS_SYSTEM@
166 171
167# Those files shared with other GNU utilities need HAVE_CONFIG_H 172BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
168# defined before they know they can take advantage of the information 173 $(WARN_CFLAGS) $(WERROR_CFLAGS) \
169# in ../src/config.h. 174 -I. -I../src -I../lib \
170BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) ${C_WARNINGS_SWITCH} \
171 -DHAVE_CONFIG_H -I. -I../src -I../lib \
172 -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib 175 -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
173 176
174ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} 177ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
175LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} 178LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS}
176CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} 179CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS}
177 180
178all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} 181# Configuration files for .o files to depend on.
179 182config_h = ../src/config.h $(srcdir)/../src/conf_post.h
180LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM)
181$(EXE_FILES): ../lib/libgnu.a
182
183## These targets copy the scripts into the build directory so that
184## they can be run from there in an uninstalled Emacs.
185## Nothing to do if pwd = srcdir.
186insrcdir=[ "`/bin/pwd`" = "`(cd $(srcdir) && /bin/pwd)`" ]
187
188stamp-rcs2log: $(srcdir)/rcs2log
189 $(insrcdir) || cp -p $(srcdir)/rcs2log rcs2log
190 touch $@
191 183
192stamp-rcs-checkin: $(srcdir)/rcs-checkin 184all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
193 $(insrcdir) || cp -p $(srcdir)/rcs-checkin rcs-checkin
194 touch $@
195 185
196stamp-grep-changelog: $(srcdir)/grep-changelog 186.PHONY: all need-blessmail maybe-blessmail
197 $(insrcdir) || cp -p $(srcdir)/grep-changelog grep-changelog
198 touch $@
199 187
200stamp-vcdiff: $(srcdir)/vcdiff 188LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM)
201 $(insrcdir) || cp -p $(srcdir)/vcdiff vcdiff 189$(EXE_FILES): ../lib/libgnu.a
202 touch $@
203 190
204## Only used if we need blessmail, but no harm in always defining. 191## Only used if we need blessmail, but no harm in always defining.
205## This makes the actual blessmail executable. 192## This makes the actual blessmail executable.
@@ -229,46 +216,49 @@ maybe-blessmail: $(BLESSMAIL_TARGET)
229$(DESTDIR)${archlibdir}: all 216$(DESTDIR)${archlibdir}: all
230 @echo 217 @echo
231 @echo "Installing utilities run internally by Emacs." 218 @echo "Installing utilities run internally by Emacs."
232 umask 022; $(top_srcdir)/build-aux/install-sh -d $(DESTDIR)${archlibdir} 219 umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir}
233 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ 220 if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` != `/bin/pwd` ]; then \
234 for file in ${UTILITIES}; do \ 221 for file in ${UTILITIES}; do \
235 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ 222 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \
236 done ; \ 223 done ; \
237 fi 224 fi
238 umask 022; $(top_srcdir)/build-aux/install-sh -d $(DESTDIR)${gamedir}; \ 225 umask 022; ${MKDIR_P} $(DESTDIR)${gamedir}; \
239 touch $(DESTDIR)${gamedir}/snake-scores; \ 226 touch $(DESTDIR)${gamedir}/snake-scores; \
240 touch $(DESTDIR)${gamedir}/tetris-scores 227 touch $(DESTDIR)${gamedir}/tetris-scores
241 -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ 228 -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \
242 chown ${gameuser} $(DESTDIR)${gamedir}; \ 229 chown ${gameuser} $(DESTDIR)${gamedir}; \
243 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ 230 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \
244 fi 231 fi
245 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \ 232 if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` \
246 != `(cd ${srcdir} && /bin/pwd)` ]; then \ 233 != `cd ${srcdir} && /bin/pwd` ]; then \
247 for file in ${SCRIPTS}; do \ 234 for file in ${SCRIPTS}; do \
248 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ 235 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \
249 done ; \ 236 done ; \
250 fi 237 fi
251 238
239.PHONY: install uninstall mostlyclean clean distclean maintainer-clean
240.PHONY: extraclean check tags
241
252install: $(DESTDIR)${archlibdir} 242install: $(DESTDIR)${archlibdir}
253 @echo 243 @echo
254 @echo "Installing utilities for users to run." 244 @echo "Installing utilities for users to run."
245 umask 022; ${MKDIR_P} $(DESTDIR)${bindir}
255 for file in ${INSTALLABLES} ; do \ 246 for file in ${INSTALLABLES} ; do \
256 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 247 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
257 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
258 done 248 done
259 for file in ${INSTALLABLE_SCRIPTS} ; do \ 249 for file in ${INSTALLABLE_SCRIPTS} ; do \
260 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 250 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
261 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
262 done 251 done
263 252
264uninstall: 253uninstall:
265 (cd $(DESTDIR)${bindir}; \ 254 for file in ${INSTALLABLES}; do \
266 for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ 255 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
256 done
257 for file in ${INSTALLABLE_SCRIPTS}; do \
267 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 258 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
268 done) 259 done
269 if [ -d $(DESTDIR)${archlibdir} ]; then \ 260 if [ -d $(DESTDIR)${archlibdir} ]; then \
270 (cd $(DESTDIR)${archlibdir} && \ 261 (cd $(DESTDIR)${archlibdir} && rm -f ${UTILITIES} ${SCRIPTS}) \
271 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \
272 fi 262 fi
273 263
274mostlyclean: 264mostlyclean:
@@ -276,7 +266,6 @@ mostlyclean:
276 266
277clean: mostlyclean 267clean: mostlyclean
278 -rm -f ${EXE_FILES} 268 -rm -f ${EXE_FILES}
279 -rm -f ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS}
280 269
281distclean: clean 270distclean: clean
282 -rm -f TAGS 271 -rm -f TAGS
@@ -304,19 +293,19 @@ test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
304 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c 293 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
305 ./test-distrib ${srcdir}/testfile 294 ./test-distrib ${srcdir}/testfile
306 295
307../lib/libgnu.a: ../src/config.h 296../lib/libgnu.a: $(config_h)
308 cd ../lib && $(MAKE) libgnu.a 297 cd ../lib && $(MAKE) libgnu.a
309 298
310regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h 299regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h)
311 ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ 300 ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
312 ${srcdir}/../src/regex.c 301 ${srcdir}/../src/regex.c
313 302
314etags${EXEEXT}: ${srcdir}/etags.c regex.o ../src/config.h 303etags${EXEEXT}: ${srcdir}/etags.c regex.o $(config_h)
315 $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ 304 $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \
316 -DVERSION="\"${version}\"" ${srcdir}/etags.c \ 305 -DVERSION="\"${version}\"" ${srcdir}/etags.c \
317 regex.o $(LOADLIBES) -o etags 306 regex.o $(LOADLIBES) -o etags
318 307
319ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h ../src/config.h 308ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(config_h)
320 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ 309 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \
321 ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse 310 ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse
322 311
@@ -327,29 +316,30 @@ ctags${EXEEXT}: etags${EXEEXT}
327 -DVERSION="\"${version}\"" ${srcdir}/etags.c \ 316 -DVERSION="\"${version}\"" ${srcdir}/etags.c \
328 regex.o $(LOADLIBES) -o ctags 317 regex.o $(LOADLIBES) -o ctags
329 318
330profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h 319profile${EXEEXT}: ${srcdir}/profile.c $(config_h)
331 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile 320 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c \
321 $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o profile
332 322
333make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h 323make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(config_h)
334 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ 324 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \
335 -o make-docfile 325 -o make-docfile
336 326
337movemail${EXEEXT}: ${srcdir}/movemail.c pop.o ../src/config.h 327movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(config_h)
338 $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ 328 $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \
339 $(LOADLIBES) $(LIBS_MOVE) -o movemail 329 $(LOADLIBES) $(LIBS_MOVE) -o movemail
340 330
341pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h ../src/config.h 331pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h)
342 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c 332 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
343 333
344emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h 334emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(config_h)
345 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ 335 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \
346 -DVERSION="\"${version}\"" \ 336 -DVERSION="\"${version}\"" \
347 $(LOADLIBES) -o emacsclient 337 $(LOADLIBES) -o emacsclient
348 338
349hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h 339hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h)
350 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl 340 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
351 341
352update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h 342update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(config_h)
353 $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ 343 $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
354 ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score 344 ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score
355 345