Mercurial > mplayer.hg
comparison Makefile @ 26489:925b2b7a1f34
dependency generation infrastructure for C++ files
author | diego |
---|---|
date | Thu, 24 Apr 2008 21:46:50 +0000 |
parents | a347dc8f3dcd |
children | 17650f2caef1 |
comparison
equal
deleted
inserted
replaced
26488:a347dc8f3dcd | 26489:925b2b7a1f34 |
---|---|
492 # Hack to keep .depend from being generated at the top level unnecessarily. | 492 # Hack to keep .depend from being generated at the top level unnecessarily. |
493 DEPS = foo | 493 DEPS = foo |
494 | 494 |
495 include mpcommon.mak | 495 include mpcommon.mak |
496 | 496 |
497 DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d) | 497 DEPS = $(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER))) |
498 $(DEPS) recurse: help_mp.h version.h codecs.conf.h | 498 $(DEPS) recurse: help_mp.h version.h codecs.conf.h |
499 dep depend: $(DEPS) | 499 dep depend: $(DEPS) |
500 for part in $(PARTS); do $(MAKE) -C $$part .depend; done | 500 for part in $(PARTS); do $(MAKE) -C $$part .depend; done |
501 | 501 |
502 CFLAGS := $(subst -I..,-I.,$(CFLAGS)) | 502 CFLAGS := $(subst -I..,-I.,$(CFLAGS)) |