1999-08-08 20:42:54 +08:00
|
|
|
################################################################################
|
|
|
|
# vlc (VideoLAN Client) dependancies makefile
|
|
|
|
# (c)1998 VideoLAN
|
|
|
|
################################################################################
|
|
|
|
# This Makefile is dedicated to build of .d files. It should not be called
|
|
|
|
# directly by user, but only through main Makefile.
|
|
|
|
# See notes at the end of the main makefile for explanations.
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# All settings and options are passed through main Makefile
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Default target
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
default:
|
2000-07-04 10:37:21 +08:00
|
|
|
@echo "This Makefile should not be called directly,"
|
|
|
|
@echo "see notes at end of main Makefile."
|
1999-08-08 20:42:54 +08:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Dependancies creation
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# A dependancies file needs to be rebuilt if the .c changed or if one of the
|
|
|
|
# dependancies files have been changed. In other words, it depends from the
|
|
|
|
# .c and from itself.
|
|
|
|
|
|
|
|
-include $(MAKECMDGOALS)
|
2000-03-04 19:52:48 +08:00
|
|
|
$(dependancies): .dep/%.d: %.c
|
|
|
|
@test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*)
|
2000-06-06 07:58:59 +08:00
|
|
|
#@echo "generating dependancies for $*.c"
|
2000-04-20 06:13:38 +08:00
|
|
|
@$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) $< \
|
2000-07-04 10:37:21 +08:00
|
|
|
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
|
|
|
|
.dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
|
|
|
|
[ -s $@ ] || rm -f $@'
|
|
|
|
|