1 ################################################################################
2 # vlc (VideoLAN Client) dependancies makefile
4 ################################################################################
5 # This Makefile is dedicated to build of .d files. It should not be called
6 # directly by user, but only through main Makefile.
7 # See notes at the end of the main makefile for explanations.
8 ################################################################################
10 # All settings and options are passed through main Makefile
12 ################################################################################
14 ################################################################################
17 @echo "This Makefile should not be called directly,"
18 @echo "see notes at end of main Makefile."
20 ################################################################################
21 # Dependancies creation
22 ################################################################################
24 # A dependancies file needs to be rebuilt if the .c changed or if one of the
25 # dependancies files have been changed. In other words, it depends from the
28 -include $(MAKECMDGOALS)
30 $(cdependancies): .dep/%.d: %.c
31 @test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*)
32 #@echo "generating dependancies for $*.c"
33 @$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \
34 | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
35 .dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
36 [ -s $@ ] || rm -f $@'
38 $(cppdependancies): .dep/%.dpp: %.cpp
39 @test -d .dep/$(dir $*) || mkdir -p .dep/$(dir $*)
40 #@echo "generating dependancies for $*.c"
41 @$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \
42 | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
43 .dep\/$(subst /,\/,$*).dpp : /g'\'' > $@; \
44 [ -s $@ ] || rm -f $@'