comparison Makefile @ 26432:7f5696224182

per-file dependencies (for the non-recursive parts)
author diego
date Fri, 18 Apr 2008 22:49:17 +0000
parents a6a95779d80b
children ce655dcca44b
comparison
equal deleted inserted replaced
26431:4213401c16a9 26432:7f5696224182
232 libmenu \ 232 libmenu \
233 osdep \ 233 osdep \
234 234
235 all: $(ALL_PRG) 235 all: $(ALL_PRG)
236 236
237 .depend: help_mp.h version.h codecs.conf.h 237 DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d)
238 dep depend: 238 $(DEPS): help_mp.h version.h codecs.conf.h
239 for part in $(PARTS); do $(MAKE) -C $$part depend; done 239 dep depend: $(DEPS)
240 for part in $(PARTS); do $(MAKE) -C $$part .depend; done
240 241
241 include mpcommon.mak 242 include mpcommon.mak
242 243
243 CFLAGS := $(subst -I..,-I.,$(CFLAGS)) 244 CFLAGS := $(subst -I..,-I.,$(CFLAGS))
244 245
393 394
394 distclean:: doxygen_clean 395 distclean:: doxygen_clean
395 for part in $(PARTS); do $(MAKE) -C $$part distclean; done 396 for part in $(PARTS); do $(MAKE) -C $$part distclean; done
396 $(MAKE) -C TOOLS distclean 397 $(MAKE) -C TOOLS distclean
397 -rm -f configure.log config.mak config.h 398 -rm -f configure.log config.mak config.h
399 rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
398 400
399 strip: 401 strip:
400 strip -s $(ALL_PRG) 402 strip -s $(ALL_PRG)
401 403
402 TAGS: 404 TAGS: