Mercurial > mplayer.hg
comparison Makefile @ 27171:5b24c3520255
Declare FFmpeg dependencies in a more elegant way using the PARTS variable.
author | diego |
---|---|
date | Sat, 05 Jul 2008 08:02:06 +0000 |
parents | d9b61fc3c5b7 |
children | fa689f1b187b |
comparison
equal
deleted
inserted
replaced
27170:4c07765b1191 | 27171:5b24c3520255 |
---|---|
732 | 732 |
733 dep depend: $(DEPS) | 733 dep depend: $(DEPS) |
734 for part in $(PARTS); do $(MAKE) -C $$part depend; done | 734 for part in $(PARTS); do $(MAKE) -C $$part depend; done |
735 | 735 |
736 ALLPARTLIBS = $(foreach part, $(PARTS), $(part)/$(part).a) | 736 ALLPARTLIBS = $(foreach part, $(PARTS), $(part)/$(part).a) |
737 | 737 FFMPEGFILES = $(foreach part, $(PARTS), $(part)/*.[chS] libavcodec/*/*.[chS]) |
738 $(ALLPARTLIBS): libavutil/*.[ch] libavcodec/*.[ch] libavcodec/*/*.[chS] libavformat/*.[ch] libpostproc/*.[ch] libswscale/*.[chS] libvo/fastmemcpy.h config.h | 738 $(ALLPARTLIBS): $(FFMPEGFILES) libvo/fastmemcpy.h config.h |
739 $(MAKE) -C $(@D) | 739 $(MAKE) -C $(@D) |
740 touch $@ | 740 touch $@ |
741 | 741 |
742 mplayer$(EXESUF): $(MPLAYER_DEPS) | 742 mplayer$(EXESUF): $(MPLAYER_DEPS) |
743 $(CC) -o $@ $^ $(LDFLAGS_MPLAYER) | 743 $(CC) -o $@ $^ $(LDFLAGS_MPLAYER) |