diff options
| author | Joakim Verona | 2011-02-05 11:23:09 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-02-05 11:23:09 +0100 |
| commit | 4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch) | |
| tree | 894801e7308ce4ecc34933f959e28f4b9cff9533 /lib-src/Makefile.in | |
| parent | 13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff) | |
| parent | 9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff) | |
| download | emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip | |
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'lib-src/Makefile.in')
| -rw-r--r-- | lib-src/Makefile.in | 66 |
1 files changed, 25 insertions, 41 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index b90b19b69b6..96975613104 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -1,6 +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, 2002, 2003, 2004, | 2 | # Copyright (C) 1985, 1987-1988, 1993-1994, 2001-2011 |
| 3 | # 2005, 2006, 2007, 2008, 2009, 2010 | ||
| 4 | # Free Software Foundation, Inc. | 3 | # Free Software Foundation, Inc. |
| 5 | 4 | ||
| 6 | # This file is part of GNU Emacs. | 5 | # This file is part of GNU Emacs. |
| @@ -25,7 +24,7 @@ SHELL = /bin/sh | |||
| 25 | 24 | ||
| 26 | # Following ../lisp/Makefile.in. | 25 | # Following ../lisp/Makefile.in. |
| 27 | EMACS = ../src/emacs | 26 | EMACS = ../src/emacs |
| 28 | EMACSOPT = -batch --no-site-file --multibyte | 27 | EMACSOPT = -batch --no-site-file --no-site-lisp |
| 29 | 28 | ||
| 30 | # ==================== Things `configure' will edit ==================== | 29 | # ==================== Things `configure' will edit ==================== |
| 31 | 30 | ||
| @@ -118,8 +117,7 @@ STAMP_INST_SCRIPTS = stamp-rcs-checkin stamp-grep-changelog | |||
| 118 | 117 | ||
| 119 | # Things that Emacs runs internally, or during the build process, | 118 | # Things that Emacs runs internally, or during the build process, |
| 120 | # which should not be installed in bindir. | 119 | # which should not be installed in bindir. |
| 121 | UTILITIES = profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} \ | 120 | UTILITIES = profile${EXEEXT} movemail${EXEEXT} fakemail${EXEEXT} \ |
| 122 | movemail${EXEEXT} fakemail${EXEEXT} \ | ||
| 123 | hexl${EXEEXT} update-game-score${EXEEXT} | 121 | hexl${EXEEXT} update-game-score${EXEEXT} |
| 124 | 122 | ||
| 125 | DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} | 123 | DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} |
| @@ -129,7 +127,8 @@ DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} | |||
| 129 | SCRIPTS= rcs2log vcdiff | 127 | SCRIPTS= rcs2log vcdiff |
| 130 | STAMP_SCRIPTS= stamp-rcs2log stamp-vcdiff | 128 | STAMP_SCRIPTS= stamp-rcs2log stamp-vcdiff |
| 131 | 129 | ||
| 132 | EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 130 | # All files that are created by the linker, i.e., whose names end in ${EXEEXT}. |
| 131 | EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} | ||
| 133 | 132 | ||
| 134 | # Specify additional -D flags for movemail. Options: | 133 | # Specify additional -D flags for movemail. Options: |
| 135 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). | 134 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). |
| @@ -169,13 +168,15 @@ LIBS_SYSTEM = @LIBS_SYSTEM@ | |||
| 169 | # defined before they know they can take advantage of the information | 168 | # defined before they know they can take advantage of the information |
| 170 | # in ../src/config.h. | 169 | # in ../src/config.h. |
| 171 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) ${C_WARNINGS_SWITCH} \ | 170 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) ${C_WARNINGS_SWITCH} \ |
| 172 | -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src | 171 | -DHAVE_CONFIG_H -I. -I../src -I../lib \ |
| 172 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib | ||
| 173 | 173 | ||
| 174 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | 174 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 175 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} | 175 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} |
| 176 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} | 176 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 177 | 177 | ||
| 178 | LOADLIBES=$(LIBS_SYSTEM) | 178 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) |
| 179 | $(EXE_FILES): ../lib/libgnu.a | ||
| 179 | 180 | ||
| 180 | ## This is the default compilation command. | 181 | ## This is the default compilation command. |
| 181 | ## But we should never rely on it, because some make version failed to | 182 | ## But we should never rely on it, because some make version failed to |
| @@ -277,7 +278,7 @@ uninstall: | |||
| 277 | fi | 278 | fi |
| 278 | 279 | ||
| 279 | mostlyclean: | 280 | mostlyclean: |
| 280 | -rm -f core *.o getopt.h getopt.h-t | 281 | -rm -f core *.o |
| 281 | 282 | ||
| 282 | clean: mostlyclean | 283 | clean: mostlyclean |
| 283 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} | 284 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
| @@ -309,19 +310,8 @@ test-distrib${EXEEXT}: ${srcdir}/test-distrib.c | |||
| 309 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c | 310 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
| 310 | ./test-distrib ${srcdir}/testfile | 311 | ./test-distrib ${srcdir}/testfile |
| 311 | 312 | ||
| 312 | ## We need the following in order to create a <getopt.h> when the system | 313 | ../lib/libgnu.a: ../src/config.h |
| 313 | ## does not have one that works with the given compiler. | 314 | cd ../lib && $(MAKE) libgnu.a |
| 314 | GETOPT_H = @GETOPT_H@ | ||
| 315 | getopt.h: getopt_.h | ||
| 316 | cp $(srcdir)/getopt_.h $@-t | ||
| 317 | mv $@-t $@ | ||
| 318 | |||
| 319 | GETOPTOBJS = @GETOPTOBJS@ | ||
| 320 | GETOPTDEPS = $(GETOPTOBJS) $(GETOPT_H) | ||
| 321 | getopt.o: ${srcdir}/getopt.c $(GETOPT_H) ${srcdir}/gettext.h | ||
| 322 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c | ||
| 323 | getopt1.o: ${srcdir}/getopt1.c $(GETOPT_H) | ||
| 324 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c | ||
| 325 | 315 | ||
| 326 | REGEXPOBJ = regex.o | 316 | REGEXPOBJ = regex.o |
| 327 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h | 317 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h |
| @@ -330,20 +320,20 @@ regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h | |||
| 330 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ | 320 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ |
| 331 | ${srcdir}/../src/regex.c | 321 | ${srcdir}/../src/regex.c |
| 332 | 322 | ||
| 333 | etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | 323 | etags${EXEEXT}: ${srcdir}/etags.c $(REGEXPDEPS) ../src/config.h |
| 334 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ | 324 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ |
| 335 | -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) \ | 325 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 336 | $(REGEXPOBJ) $(LOADLIBES) -o etags | 326 | $(REGEXPOBJ) $(LOADLIBES) -o etags |
| 337 | 327 | ||
| 338 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | 328 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ../src/config.h |
| 339 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ | 329 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ |
| 340 | ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | 330 | ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse |
| 341 | 331 | ||
| 342 | ## We depend on etags to assure that parallel makes do not write two | 332 | ## We depend on etags to assure that parallel makes do not write two |
| 343 | ## etags.o files on top of each other. | 333 | ## etags.o files on top of each other. |
| 344 | ctags${EXEEXT}: etags${EXEEXT} | 334 | ctags${EXEEXT}: etags${EXEEXT} |
| 345 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" \ | 335 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" \ |
| 346 | -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) \ | 336 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 347 | $(REGEXPOBJ) $(LOADLIBES) -o ctags | 337 | $(REGEXPOBJ) $(LOADLIBES) -o ctags |
| 348 | 338 | ||
| 349 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h | 339 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h |
| @@ -353,17 +343,11 @@ make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h | |||
| 353 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ | 343 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ |
| 354 | -o make-docfile | 344 | -o make-docfile |
| 355 | 345 | ||
| 356 | digest-doc${EXEEXT}: ${srcdir}/digest-doc.c | 346 | movemail${EXEEXT}: movemail.o pop.o |
| 357 | $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc | ||
| 358 | |||
| 359 | sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c | ||
| 360 | $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c $(LOADLIBES) -o sorted-doc | ||
| 361 | |||
| 362 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) | ||
| 363 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o \ | 347 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o \ |
| 364 | $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail | 348 | $(LOADLIBES) $(LIBS_MOVE) -o movemail |
| 365 | 349 | ||
| 366 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) | 350 | movemail.o: ${srcdir}/movemail.c ../src/config.h |
| 367 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c | 351 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c |
| 368 | 352 | ||
| 369 | pop.o: ${srcdir}/pop.c ../src/config.h | 353 | pop.o: ${srcdir}/pop.c ../src/config.h |
| @@ -372,19 +356,19 @@ pop.o: ${srcdir}/pop.c ../src/config.h | |||
| 372 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h | 356 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h |
| 373 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail | 357 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail |
| 374 | 358 | ||
| 375 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) | 359 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h |
| 376 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \ | 360 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ |
| 377 | -DVERSION="\"${version}\"" \ | 361 | -DVERSION="\"${version}\"" \ |
| 378 | $(LOADLIBES) -o emacsclient | 362 | $(LOADLIBES) -o emacsclient |
| 379 | 363 | ||
| 380 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h | 364 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h |
| 381 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 365 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
| 382 | 366 | ||
| 383 | update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) | 367 | update-game-score${EXEEXT}: update-game-score.o |
| 384 | $(CC) ${LINK_CFLAGS} update-game-score.o $(GETOPTOBJS) \ | 368 | $(CC) ${LINK_CFLAGS} update-game-score.o \ |
| 385 | $(LOADLIBES) -o update-game-score | 369 | $(LOADLIBES) -o update-game-score |
| 386 | 370 | ||
| 387 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) | 371 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h |
| 388 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ | 372 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ |
| 389 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" | 373 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" |
| 390 | 374 | ||