diff options
| author | Kenichi Handa | 2010-05-14 13:15:58 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-05-14 13:15:58 +0900 |
| commit | ccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c (patch) | |
| tree | 0f53c077154c7cd5f05b339d91905dfd2391679d /lib-src | |
| parent | 82ebc97b11a369303345927c98e7bc69928c9117 (diff) | |
| parent | 508197067c434b0111bcb6ded742d424bb738ece (diff) | |
| download | emacs-ccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c.tar.gz emacs-ccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c.zip | |
merge trunk
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 17 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 90 |
2 files changed, 57 insertions, 50 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 608d5c618b3..36e2f29e58f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2010-05-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (INSTALLABLES): Remove @LIB_SRC_EXTRA_INSTALLABLES@. | ||
| 4 | |||
| 5 | 2010-05-11 Glenn Morris <rgm@gnu.org> | ||
| 6 | |||
| 7 | * Makefile.in (.m.o): Remove, there are no .m files. | ||
| 8 | (BASE_CFLAGS): New variable. | ||
| 9 | (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use $BASE_CFLAGS. | ||
| 10 | (check): Update the message. | ||
| 11 | (update-game-score${EXEEXT}): Do not use $MOVE_FLAGS. | ||
| 12 | |||
| 13 | * Makefile.in: Convert comments to makefile format. | ||
| 14 | |||
| 15 | * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset. | ||
| 16 | (config.h) [MSDOS]: Do not include. | ||
| 17 | |||
| 1 | 2010-05-10 Glenn Morris <rgm@gnu.org> | 18 | 2010-05-10 Glenn Morris <rgm@gnu.org> |
| 2 | 19 | ||
| 3 | * Makefile.in (LIBS_SYSTEM): Set with configure, not cpp. | 20 | * Makefile.in (LIBS_SYSTEM): Set with configure, not cpp. |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 5f0fb6e671f..4799a9fefc4 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -31,6 +31,7 @@ EMACSOPT = -batch --no-site-file --multibyte | |||
| 31 | CC=@CC@ | 31 | CC=@CC@ |
| 32 | CFLAGS=@CFLAGS@ | 32 | CFLAGS=@CFLAGS@ |
| 33 | version=@version@ | 33 | version=@version@ |
| 34 | ## Used in $archlibdir. | ||
| 34 | configuration=@configuration@ | 35 | configuration=@configuration@ |
| 35 | EXEEXT=@EXEEXT@ | 36 | EXEEXT=@EXEEXT@ |
| 36 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ | 37 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
| @@ -107,7 +108,7 @@ INSTALL_STRIP = | |||
| 107 | 108 | ||
| 108 | # Things that a user might actually run, | 109 | # Things that a user might actually run, |
| 109 | # which should be installed in bindir. | 110 | # which should be installed in bindir. |
| 110 | INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} @LIB_SRC_EXTRA_INSTALLABLES@ | 111 | INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} |
| 111 | INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog | 112 | INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog |
| 112 | 113 | ||
| 113 | # Things that Emacs runs internally, or during the build process, | 114 | # Things that Emacs runs internally, or during the build process, |
| @@ -127,8 +128,8 @@ EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | |||
| 127 | # Specify additional -D flags for movemail. Options: | 128 | # Specify additional -D flags for movemail. Options: |
| 128 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). | 129 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). |
| 129 | # See the comments about locking in movemail.c. Normally the values | 130 | # See the comments about locking in movemail.c. Normally the values |
| 130 | # in ../src/[ms]/*.h should be correct and you should not need to do anything. | 131 | # set by configure should be correct and you should not need to do anything. |
| 131 | # If neither flag is set, blessmail is used. | 132 | # If neither flag is set, you need to use blessmail. |
| 132 | MOVE_FLAGS= | 133 | MOVE_FLAGS= |
| 133 | 134 | ||
| 134 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. | 135 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. |
| @@ -160,40 +161,28 @@ LIBS_SYSTEM = @LIBS_SYSTEM@ | |||
| 160 | # Those files shared with other GNU utilities need HAVE_CONFIG_H | 161 | # Those files shared with other GNU utilities need HAVE_CONFIG_H |
| 161 | # defined before they know they can take advantage of the information | 162 | # defined before they know they can take advantage of the information |
| 162 | # in ../src/config.h. | 163 | # in ../src/config.h. |
| 163 | ALL_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | 164 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src |
| 164 | LINK_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | ||
| 165 | CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | ||
| 166 | 165 | ||
| 167 | # ========================== start of cpp stuff ======================= | 166 | ALL_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 168 | /* From here on, comments must be done in C syntax. */ | 167 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} |
| 169 | 168 | CPP_CFLAGS = ${BASE_CFLAGS} ${CPPFLAGS} ${CFLAGS} | |
| 170 | #ifdef MSDOS | ||
| 171 | #include "../src/config.h" | ||
| 172 | LIBS_SYSTEM = MSDOS_LIBS_SYSTEM | ||
| 173 | #endif | ||
| 174 | 169 | ||
| 175 | LOADLIBES=$(LIBS_SYSTEM) | 170 | LOADLIBES=$(LIBS_SYSTEM) |
| 176 | 171 | ||
| 177 | 172 | ||
| 178 | .SUFFIXES: .m | 173 | ## This is the default compilation command. |
| 179 | 174 | ## But we should never rely on it, because some make version failed to | |
| 180 | /* This is the default compilation command. | 175 | ## find it for getopt.o. |
| 181 | But we should never rely on it, because some make version | 176 | ## Using an explicit command made it work. |
| 182 | failed to find it for getopt.o. | ||
| 183 | Using an explicit command made it work. */ | ||
| 184 | .c.o: | 177 | .c.o: |
| 185 | ${CC} -c ${CPP_CFLAGS} $< | 178 | ${CC} -c ${CPP_CFLAGS} $< |
| 186 | 179 | ||
| 187 | .m.o: | ||
| 188 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | ||
| 189 | |||
| 190 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 180 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
| 191 | 181 | ||
| 192 | /* These targets copy the scripts into the build directory | 182 | ## These targets copy the scripts into the build directory so that |
| 193 | so that they can be run from there in an uninstalled Emacs. | 183 | ## they can be run from there in an uninstalled Emacs. |
| 194 | The "-" is prepended because some versions of cp barf when | 184 | ## The "-" is prepended because some versions of cp barf when srcdir |
| 195 | srcdir is the current directory, and thus the file will be | 185 | ## is the current directory, and thus the file will be copied into itself. |
| 196 | copied into itself. */ | ||
| 197 | rcs2log: $(srcdir)/rcs2log | 186 | rcs2log: $(srcdir)/rcs2log |
| 198 | -cp -p $(srcdir)/rcs2log rcs2log | 187 | -cp -p $(srcdir)/rcs2log rcs2log |
| 199 | 188 | ||
| @@ -206,16 +195,15 @@ grep-changelog: $(srcdir)/grep-changelog | |||
| 206 | vcdiff: $(srcdir)/vcdiff | 195 | vcdiff: $(srcdir)/vcdiff |
| 207 | -cp -p $(srcdir)/vcdiff vcdiff | 196 | -cp -p $(srcdir)/vcdiff vcdiff |
| 208 | 197 | ||
| 209 | /* Only used if we need blessmail, but no harm in always defining. | 198 | ## Only used if we need blessmail, but no harm in always defining. |
| 210 | This makes the actual blessmail executable. */ | 199 | ## This makes the actual blessmail executable. |
| 211 | blessmail: | 200 | blessmail: |
| 212 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el | 201 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el |
| 213 | chmod +x blessmail | 202 | chmod +x blessmail |
| 214 | 203 | ||
| 215 | /* This checks if we need to run blessmail. */ | 204 | ## This checks if we need to run blessmail. |
| 205 | ## Do not charge ahead and do it! Let the installer decide. | ||
| 216 | need-blessmail: blessmail | 206 | need-blessmail: blessmail |
| 217 | /* Don\'t charge ahead and do it! Let the installer decide. | ||
| 218 | ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */ | ||
| 219 | @if [ `wc -l <blessmail` != 2 ] ; then \ | 207 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
| 220 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | 208 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ |
| 221 | echo Assuming $$dir is really the mail spool directory, you should; \ | 209 | echo Assuming $$dir is really the mail spool directory, you should; \ |
| @@ -224,11 +212,14 @@ need-blessmail: blessmail | |||
| 224 | echo Do that after running make install.; \ | 212 | echo Do that after running make install.; \ |
| 225 | fi | 213 | fi |
| 226 | 214 | ||
| 227 | /* This is the target invoked by the top-level Makefile. */ | 215 | ## This is the target invoked by the top-level Makefile. |
| 228 | maybe-blessmail: $(BLESSMAIL_TARGET) | 216 | maybe-blessmail: $(BLESSMAIL_TARGET) |
| 229 | 217 | ||
| 230 | /* Install the internal utilities. Until they are installed, we can | 218 | ## Install the internal utilities. Until they are installed, we can |
| 231 | just run them directly from lib-src. */ | 219 | ## just run them directly from lib-src. |
| 220 | ## If the chown/chmod commands fail, that is not a big deal. | ||
| 221 | ## update-game-score will detect at runtime that it is not setuid, | ||
| 222 | ## and handle things accordingly. | ||
| 232 | $(DESTDIR)${archlibdir}: all | 223 | $(DESTDIR)${archlibdir}: all |
| 233 | @echo | 224 | @echo |
| 234 | @echo "Installing utilities run internally by Emacs." | 225 | @echo "Installing utilities run internally by Emacs." |
| @@ -241,9 +232,6 @@ $(DESTDIR)${archlibdir}: all | |||
| 241 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ | 232 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ |
| 242 | touch $(DESTDIR)${gamedir}/snake-scores; \ | 233 | touch $(DESTDIR)${gamedir}/snake-scores; \ |
| 243 | touch $(DESTDIR)${gamedir}/tetris-scores | 234 | touch $(DESTDIR)${gamedir}/tetris-scores |
| 244 | /* If the following commands fail, that is not a big deal. | ||
| 245 | update-game-score will detect at runtime that it is not setuid, | ||
| 246 | and handle things accordingly. */ | ||
| 247 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ | 235 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ |
| 248 | chown ${gameuser} $(DESTDIR)${gamedir}; \ | 236 | chown ${gameuser} $(DESTDIR)${gamedir}; \ |
| 249 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ | 237 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ |
| @@ -294,24 +282,24 @@ maintainer-clean: distclean | |||
| 294 | extraclean: maintainer-clean | 282 | extraclean: maintainer-clean |
| 295 | -rm -f *~ \#* | 283 | -rm -f *~ \#* |
| 296 | 284 | ||
| 297 | /* Test the contents of the directory. */ | 285 | ## Test the contents of the directory. |
| 298 | check: | 286 | check: |
| 299 | @echo "We don't have any tests for GNU Emacs yet." | 287 | @echo "We don't have any tests for the lib-src/ directory yet." |
| 300 | 288 | ||
| 301 | tags: TAGS | 289 | tags: TAGS |
| 302 | TAGS: etags${EXEEXT} | 290 | TAGS: etags${EXEEXT} |
| 303 | etags *.[ch] | 291 | etags *.[ch] |
| 304 | 292 | ||
| 305 | /* This verifies that the non-ASCII characters in the file \`testfile\' | 293 | ## This verifies that the non-ASCII characters in the file \`testfile\' |
| 306 | have not been clobbered by whatever means were used to copy and | 294 | ## have not been clobbered by whatever means were used to copy and |
| 307 | distribute Emacs. If they were clobbered, all the .elc files were | 295 | ## distribute Emacs. If they were clobbered, all the .elc files were |
| 308 | clobbered too. */ | 296 | ## clobbered too. |
| 309 | test-distrib${EXEEXT}: ${srcdir}/test-distrib.c | 297 | test-distrib${EXEEXT}: ${srcdir}/test-distrib.c |
| 310 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c | 298 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
| 311 | ./test-distrib ${srcdir}/testfile | 299 | ./test-distrib ${srcdir}/testfile |
| 312 | 300 | ||
| 313 | /* We need the following in order to create a <getopt.h> when the system | 301 | ## We need the following in order to create a <getopt.h> when the system |
| 314 | does not have one that works with the given compiler. */ | 302 | ## does not have one that works with the given compiler. |
| 315 | GETOPT_H = @GETOPT_H@ | 303 | GETOPT_H = @GETOPT_H@ |
| 316 | getopt.h: getopt_.h | 304 | getopt.h: getopt_.h |
| 317 | cp $(srcdir)/getopt_.h $@-t | 305 | cp $(srcdir)/getopt_.h $@-t |
| @@ -336,8 +324,8 @@ etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | |||
| 336 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | 324 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
| 337 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | 325 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse |
| 338 | 326 | ||
| 339 | /* We depend on etags to assure that parallel makes don\'t write two | 327 | ## We depend on etags to assure that parallel makes do not write two |
| 340 | etags.o files on top of each other. */ | 328 | ## etags.o files on top of each other. |
| 341 | ctags${EXEEXT}: etags${EXEEXT} | 329 | ctags${EXEEXT}: etags${EXEEXT} |
| 342 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags | 330 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
| 343 | 331 | ||
| @@ -360,7 +348,7 @@ b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) | |||
| 360 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) | 348 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
| 361 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail | 349 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail |
| 362 | 350 | ||
| 363 | /* We need to define emacs to get the right version of something (what?). */ | 351 | ## We need to define emacs to get the right version of something (what?). |
| 364 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) | 352 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) |
| 365 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c | 353 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c |
| 366 | 354 | ||
| @@ -379,8 +367,10 @@ hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h | |||
| 379 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 367 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
| 380 | 368 | ||
| 381 | update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) | 369 | update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) |
| 382 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} update-game-score.o $(GETOPTOBJS) $(LOADLIBES) -o update-game-score | 370 | $(CC) ${LINK_CFLAGS} update-game-score.o $(GETOPTOBJS) $(LOADLIBES) -o update-game-score |
| 383 | 371 | ||
| 384 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) | 372 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) |
| 385 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ | 373 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ |
| 386 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" | 374 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" |
| 375 | |||
| 376 | ## Makefile ends here. | ||