1999-08-08 14:42:54 +02: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:
|
|
|
|
@echo "This Makefile should not be called directly - see notes at end of"
|
|
|
|
@echo "main Makefile."
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# 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 12:52:48 +01:00
|
|
|
$(dependancies): .dep/%.d: %.c
|
|
|
|
@test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*)
|
2000-06-06 01:58:59 +02:00
|
|
|
#@echo "generating dependancies for $*.c"
|
2000-04-20 00:13:38 +02:00
|
|
|
@$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) $< \
|
1999-08-08 14:42:54 +02:00
|
|
|
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
|
2000-03-04 12:52:48 +01:00
|
|
|
.dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
|
1999-08-08 14:42:54 +02:00
|
|
|
[ -s $@ ] || rm -f $@'
|