diff options
| author | Glenn Morris | 2012-08-01 13:54:06 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-01 13:54:06 -0400 |
| commit | de7de8723f4697c16aaf77d3eff54441b5a4151c (patch) | |
| tree | db55937604afd82d834aa8458410099a8d753ed8 /lib-src | |
| parent | 75e3caf91e69fe9b682267f4b9263573805f1041 (diff) | |
| download | emacs-de7de8723f4697c16aaf77d3eff54441b5a4151c.tar.gz emacs-de7de8723f4697c16aaf77d3eff54441b5a4151c.zip | |
Update lib-src config.h dependencies
* lib-src/Makefile.in (config_h): New variable.
Use throughout in place of ../src/config.h.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 25 |
2 files changed, 19 insertions, 11 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index c5d6ed6eaf0..4dc648b410b 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-01 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (config_h): New variable. | ||
| 4 | Use throughout in place of ../src/config.h. | ||
| 5 | |||
| 1 | 2012-08-01 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-08-01 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * makefile.w32-in (CONFIG_H): Update dependencies. | 8 | * makefile.w32-in (CONFIG_H): Update dependencies. |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index a578966b0f0..c5acca28856 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -178,6 +178,9 @@ ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | |||
| 178 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} | 178 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} |
| 179 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} | 179 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 180 | 180 | ||
| 181 | # Configuration files for .o files to depend on. | ||
| 182 | config_h = ../src/config.h $(srcdir)/../src/conf_post.h | ||
| 183 | |||
| 181 | all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 184 | all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
| 182 | 185 | ||
| 183 | .PHONY: all need-blessmail maybe-blessmail | 186 | .PHONY: all need-blessmail maybe-blessmail |
| @@ -289,19 +292,19 @@ test-distrib${EXEEXT}: ${srcdir}/test-distrib.c | |||
| 289 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c | 292 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
| 290 | ./test-distrib ${srcdir}/testfile | 293 | ./test-distrib ${srcdir}/testfile |
| 291 | 294 | ||
| 292 | ../lib/libgnu.a: ../src/config.h | 295 | ../lib/libgnu.a: $(config_h) |
| 293 | cd ../lib && $(MAKE) libgnu.a | 296 | cd ../lib && $(MAKE) libgnu.a |
| 294 | 297 | ||
| 295 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h | 298 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h) |
| 296 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ | 299 | ${CC} -c ${CPP_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ |
| 297 | ${srcdir}/../src/regex.c | 300 | ${srcdir}/../src/regex.c |
| 298 | 301 | ||
| 299 | etags${EXEEXT}: ${srcdir}/etags.c regex.o ../src/config.h | 302 | etags${EXEEXT}: ${srcdir}/etags.c regex.o $(config_h) |
| 300 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ | 303 | $(CC) ${ALL_CFLAGS} -DEMACS_NAME="\"GNU Emacs\"" \ |
| 301 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ | 304 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 302 | regex.o $(LOADLIBES) -o etags | 305 | regex.o $(LOADLIBES) -o etags |
| 303 | 306 | ||
| 304 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h ../src/config.h | 307 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(config_h) |
| 305 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ | 308 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ |
| 306 | ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse | 309 | ${srcdir}/ebrowse.c $(LOADLIBES) -o ebrowse |
| 307 | 310 | ||
| @@ -312,30 +315,30 @@ ctags${EXEEXT}: etags${EXEEXT} | |||
| 312 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ | 315 | -DVERSION="\"${version}\"" ${srcdir}/etags.c \ |
| 313 | regex.o $(LOADLIBES) -o ctags | 316 | regex.o $(LOADLIBES) -o ctags |
| 314 | 317 | ||
| 315 | profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h | 318 | profile${EXEEXT}: ${srcdir}/profile.c $(config_h) |
| 316 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c \ | 319 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c \ |
| 317 | $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o profile | 320 | $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o profile |
| 318 | 321 | ||
| 319 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h | 322 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(config_h) |
| 320 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ | 323 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ |
| 321 | -o make-docfile | 324 | -o make-docfile |
| 322 | 325 | ||
| 323 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o ../src/config.h | 326 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(config_h) |
| 324 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ | 327 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ |
| 325 | $(LOADLIBES) $(LIBS_MOVE) -o movemail | 328 | $(LOADLIBES) $(LIBS_MOVE) -o movemail |
| 326 | 329 | ||
| 327 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h ../src/config.h | 330 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h) |
| 328 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c | 331 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
| 329 | 332 | ||
| 330 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h | 333 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(config_h) |
| 331 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ | 334 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ |
| 332 | -DVERSION="\"${version}\"" \ | 335 | -DVERSION="\"${version}\"" \ |
| 333 | $(LOADLIBES) -o emacsclient | 336 | $(LOADLIBES) -o emacsclient |
| 334 | 337 | ||
| 335 | hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h | 338 | hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h) |
| 336 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 339 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
| 337 | 340 | ||
| 338 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h | 341 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(config_h) |
| 339 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ | 342 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ |
| 340 | ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score | 343 | ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score |
| 341 | 344 | ||