diff options
Diffstat (limited to 'lib-src/Makefile.in')
| -rw-r--r-- | lib-src/Makefile.in | 67 |
1 files changed, 24 insertions, 43 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 96975613104..f619febbb2b 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -117,8 +117,8 @@ STAMP_INST_SCRIPTS = stamp-rcs-checkin stamp-grep-changelog | |||
| 117 | 117 | ||
| 118 | # Things that Emacs runs internally, or during the build process, | 118 | # Things that Emacs runs internally, or during the build process, |
| 119 | # which should not be installed in bindir. | 119 | # which should not be installed in bindir. |
| 120 | UTILITIES = profile${EXEEXT} movemail${EXEEXT} fakemail${EXEEXT} \ | 120 | UTILITIES = profile${EXEEXT} movemail${EXEEXT} hexl${EXEEXT} \ |
| 121 | hexl${EXEEXT} update-game-score${EXEEXT} | 121 | update-game-score${EXEEXT} |
| 122 | 122 | ||
| 123 | DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} | 123 | DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} |
| 124 | 124 | ||
| @@ -178,33 +178,27 @@ CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} | |||
| 178 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) | 178 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) |
| 179 | $(EXE_FILES): ../lib/libgnu.a | 179 | $(EXE_FILES): ../lib/libgnu.a |
| 180 | 180 | ||
| 181 | ## This is the default compilation command. | 181 | all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} |
| 182 | ## But we should never rely on it, because some make version failed to | ||
| 183 | ## find it for getopt.o. | ||
| 184 | ## Using an explicit command made it work. | ||
| 185 | .c.o: | ||
| 186 | ${CC} -c ${CPP_CFLAGS} $< | ||
| 187 | |||
| 188 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} | ||
| 189 | 182 | ||
| 190 | ## These targets copy the scripts into the build directory so that | 183 | ## These targets copy the scripts into the build directory so that |
| 191 | ## they can be run from there in an uninstalled Emacs. | 184 | ## they can be run from there in an uninstalled Emacs. |
| 192 | ## The "-" is prepended because some versions of cp barf when srcdir | 185 | ## Nothing to do if pwd = srcdir. |
| 193 | ## is the current directory, and thus the file will be copied into itself. | 186 | insrcdir=[ "`/bin/pwd`" = "`(cd $(srcdir) && /bin/pwd)`" ] |
| 187 | |||
| 194 | stamp-rcs2log: $(srcdir)/rcs2log | 188 | stamp-rcs2log: $(srcdir)/rcs2log |
| 195 | -cp -p $(srcdir)/rcs2log rcs2log | 189 | $(insrcdir) || cp -p $(srcdir)/rcs2log rcs2log |
| 196 | touch $@ | 190 | touch $@ |
| 197 | 191 | ||
| 198 | stamp-rcs-checkin: $(srcdir)/rcs-checkin | 192 | stamp-rcs-checkin: $(srcdir)/rcs-checkin |
| 199 | -cp -p $(srcdir)/rcs-checkin rcs-checkin | 193 | $(insrcdir) || cp -p $(srcdir)/rcs-checkin rcs-checkin |
| 200 | touch $@ | 194 | touch $@ |
| 201 | 195 | ||
| 202 | stamp-grep-changelog: $(srcdir)/grep-changelog | 196 | stamp-grep-changelog: $(srcdir)/grep-changelog |
| 203 | -cp -p $(srcdir)/grep-changelog grep-changelog | 197 | $(insrcdir) || cp -p $(srcdir)/grep-changelog grep-changelog |
| 204 | touch $@ | 198 | touch $@ |
| 205 | 199 | ||
| 206 | stamp-vcdiff: $(srcdir)/vcdiff | 200 | stamp-vcdiff: $(srcdir)/vcdiff |
| 207 | -cp -p $(srcdir)/vcdiff vcdiff | 201 | $(insrcdir) || cp -p $(srcdir)/vcdiff vcdiff |
| 208 | touch $@ | 202 | touch $@ |
| 209 | 203 | ||
| 210 | ## Only used if we need blessmail, but no harm in always defining. | 204 | ## Only used if we need blessmail, but no harm in always defining. |
| @@ -235,13 +229,13 @@ maybe-blessmail: $(BLESSMAIL_TARGET) | |||
| 235 | $(DESTDIR)${archlibdir}: all | 229 | $(DESTDIR)${archlibdir}: all |
| 236 | @echo | 230 | @echo |
| 237 | @echo "Installing utilities run internally by Emacs." | 231 | @echo "Installing utilities run internally by Emacs." |
| 238 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${archlibdir} | 232 | umask 022; $(top_srcdir)/install-sh -d $(DESTDIR)${archlibdir} |
| 239 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ | 233 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ |
| 240 | for file in ${UTILITIES}; do \ | 234 | for file in ${UTILITIES}; do \ |
| 241 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ | 235 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ |
| 242 | done ; \ | 236 | done ; \ |
| 243 | fi | 237 | fi |
| 244 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ | 238 | umask 022; $(top_srcdir)/install-sh -d $(DESTDIR)${gamedir}; \ |
| 245 | touch $(DESTDIR)${gamedir}/snake-scores; \ | 239 | touch $(DESTDIR)${gamedir}/snake-scores; \ |
| 246 | touch $(DESTDIR)${gamedir}/tetris-scores | 240 | touch $(DESTDIR)${gamedir}/tetris-scores |
| 247 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ | 241 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ |
| @@ -281,8 +275,8 @@ mostlyclean: | |||
| 281 | -rm -f core *.o | 275 | -rm -f core *.o |
| 282 | 276 | ||
| 283 | clean: mostlyclean | 277 | clean: mostlyclean |
| 284 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} | 278 | -rm -f ${EXE_FILES} |
| 285 | -rm -f fns*.el *.tab.c *.tab.h stamp-* | 279 | -rm -f ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} |
| 286 | 280 | ||
| 287 | distclean: clean | 281 | distclean: clean |
| 288 | -rm -f TAGS | 282 | -rm -f TAGS |
| @@ -313,19 +307,16 @@ test-distrib${EXEEXT}: ${srcdir}/test-distrib.c | |||
| 313 | ../lib/libgnu.a: ../src/config.h | 307 | ../lib/libgnu.a: ../src/config.h |
| 314 | cd ../lib && $(MAKE) libgnu.a | 308 | cd ../lib && $(MAKE) libgnu.a |
| 315 | 309 | ||
| 316 | REGEXPOBJ = regex.o | ||
| 317 | REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h | ||
| 318 | |||
| 319 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h | 310 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h |
| 320 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ | 311 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ |
| 321 | ${srcdir}/../src/regex.c | 312 | ${srcdir}/../src/regex.c |
| 322 | 313 | ||
| 323 | etags${EXEEXT}: ${srcdir}/etags.c $(REGEXPDEPS) ../src/config.h | 314 | etags${EXEEXT}: ${srcdir}/etags.c regex.o ../src/config.h |
| 324 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ | 315 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ |
| 325 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ | 316 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 326 | $(REGEXPOBJ) $(LOADLIBES) -o etags | 317 | regex.o $(LOADLIBES) -o etags |
| 327 | 318 | ||
| 328 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ../src/config.h | 319 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h ../src/config.h |
| 329 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ | 320 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ |
| 330 | ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse | 321 | ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse |
| 331 | 322 | ||
| @@ -334,7 +325,7 @@ ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ../src/config.h | |||
| 334 | ctags${EXEEXT}: etags${EXEEXT} | 325 | ctags${EXEEXT}: etags${EXEEXT} |
| 335 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" \ | 326 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" \ |
| 336 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ | 327 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 337 | $(REGEXPOBJ) $(LOADLIBES) -o ctags | 328 | regex.o $(LOADLIBES) -o ctags |
| 338 | 329 | ||
| 339 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h | 330 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h |
| 340 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile | 331 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile |
| @@ -343,19 +334,13 @@ make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h | |||
| 343 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ | 334 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ |
| 344 | -o make-docfile | 335 | -o make-docfile |
| 345 | 336 | ||
| 346 | movemail${EXEEXT}: movemail.o pop.o | 337 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o ../src/config.h |
| 347 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o \ | 338 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ |
| 348 | $(LOADLIBES) $(LIBS_MOVE) -o movemail | 339 | $(LOADLIBES) $(LIBS_MOVE) -o movemail |
| 349 | 340 | ||
| 350 | movemail.o: ${srcdir}/movemail.c ../src/config.h | 341 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h ../src/config.h |
| 351 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c | ||
| 352 | |||
| 353 | pop.o: ${srcdir}/pop.c ../src/config.h | ||
| 354 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c | 342 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
| 355 | 343 | ||
| 356 | fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h | ||
| 357 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail | ||
| 358 | |||
| 359 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h | 344 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h |
| 360 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ | 345 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ |
| 361 | -DVERSION="\"${version}\"" \ | 346 | -DVERSION="\"${version}\"" \ |
| @@ -364,12 +349,8 @@ emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h | |||
| 364 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h | 349 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h |
| 365 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 350 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
| 366 | 351 | ||
| 367 | update-game-score${EXEEXT}: update-game-score.o | 352 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h |
| 368 | $(CC) ${LINK_CFLAGS} update-game-score.o \ | 353 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ |
| 369 | $(LOADLIBES) -o update-game-score | 354 | ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score |
| 370 | |||
| 371 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h | ||
| 372 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ | ||
| 373 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" | ||
| 374 | 355 | ||
| 375 | ## Makefile ends here. | 356 | ## Makefile ends here. |