comparison Makefile @ 26430:a6a95779d80b

Always generate dependency information. This also allows dropping the hackish list of incorrect pseudo-dependencies.
author diego
date Fri, 18 Apr 2008 21:46:52 +0000
parents 3357581cefa5
children 7f5696224182
comparison
equal deleted inserted replaced
26429:fac5790e3ff7 26430:a6a95779d80b
232 libmenu \ 232 libmenu \
233 osdep \ 233 osdep \
234 234
235 all: $(ALL_PRG) 235 all: $(ALL_PRG)
236 236
237 dep depend:: help_mp.h version.h codecs.conf.h 237 .depend: help_mp.h version.h codecs.conf.h
238 dep depend:
238 for part in $(PARTS); do $(MAKE) -C $$part depend; done 239 for part in $(PARTS); do $(MAKE) -C $$part depend; done
239 240
240 include mpcommon.mak 241 include mpcommon.mak
241 242
242 CFLAGS := $(subst -I..,-I.,$(CFLAGS)) 243 CFLAGS := $(subst -I..,-I.,$(CFLAGS))
436 @echo "Adding untranslated messages to help_mp.h" 437 @echo "Adding untranslated messages to help_mp.h"
437 @echo '// untranslated messages from the English master file:' >> help_mp.h 438 @echo '// untranslated messages from the English master file:' >> help_mp.h
438 @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h 439 @help/help_diff.sh $(HELP_FILE) < help/help_mp-en.h >> help_mp.h
439 endif 440 endif
440 441
441 # explicit dependencies to force version.h to be built even if .depend is missing
442 mplayer.o mencoder.o vobsub.o: version.h
443
444 # temporary measure to make sure help_mp.h is built. we desperately need correct deps!
445 $(MPLAYER_DEPS) $(MENCODER_DEPS): help_mp.h
446
447 #
448 # the following lines provide _partial_ dependency information
449 # for the 'library' directories under main dir, in order to cause
450 # the build process to recursively descend into them if something
451 # has changed. ideally this will be replaced with a single
452 # nonrecursive makefile for the whole project.
453 #
454 # Now all directories are recursed by default because these rules do not
455 # consider dependencies on files in other directories, while the recursively
456 # invoked Makefiles do. Conditional recursion only to the directories with
457 # changed files can be enabled by creating a file named ".norecurse" and
458 # optionally giving it a timestamp in the past. Directories whose .a files
459 # are newer than the timestamp and newer than other files in the directory
460 # will not be recursed.
461 .norecurse:
462
463 libvo/libvo.a: .norecurse $(wildcard libvo/*.[ch])
464 libvo/libosd.a: .norecurse $(wildcard libvo/*.[ch])
465 libao2/libao2.a: .norecurse $(wildcard libao2/*.[ch])
466
467 dvdread/libdvdread.a: .norecurse $(wildcard dvdread/*.[ch])
468 libdvdcss/libdvdcss.a: .norecurse $(wildcard libdvdcss/*.[ch])
469
470 libmpdemux/libmpdemux.a: .norecurse $(wildcard libmpdemux/*.[ch])
471 libmpdemux/libmpmux.a: .norecurse $(wildcard libmpdemux/*.[ch])
472 stream/stream.a: .norecurse $(wildcard stream/*.[ch] stream/*/*.[ch])
473 libmpcodecs/libmpcodecs.a: .norecurse $(wildcard libmpcodecs/*.[ch]) $(wildcard libmpcodecs/native/*.[ch])
474 libmpcodecs/libmpencoders.a: .norecurse $(wildcard libmpcodecs/*.[ch])
475
476 libavutil/libavutil.a: .norecurse $(wildcard libavutil/*.[ch])
477 libavcodec/libavcodec.a: .norecurse $(wildcard libavcodec/*.[ch] libavcodec/*/*.[chS])
478 libavformat/libavformat.a: .norecurse $(wildcard libavformat/*.[ch])
479 libpostproc/libpostproc.a: .norecurse $(wildcard libpostproc/*.[ch])
480 libswscale/libswscale.a: .norecurse $(wildcard libswscale/*.[ch])
481
482 libmpeg2/libmpeg2.a: .norecurse $(wildcard libmpeg2/*.[ch])
483 liba52/liba52.a: .norecurse $(wildcard liba52/*.[ch])
484 mp3lib/libmp3.a: .norecurse $(wildcard mp3lib/*.[ch])
485 libfaad2/libfaad2.a: .norecurse $(wildcard libfaad2/*.[ch] libfaad2/*/*.[ch])
486
487 loader/libloader.a: .norecurse $(wildcard loader/*.[chSs])
488 vidix/libvidix.a: .norecurse $(wildcard vidix/*.[ch])
489
490 .PHONY: all install* uninstall strip doxygen 442 .PHONY: all install* uninstall strip doxygen