]> git.sesse.net Git - vlc/blobdiff - Makefile.dep
* ./include/modules_inner.h: fixed a crash when reopening a hidden
[vlc] / Makefile.dep
index 94226a58ab618b2910511d76f4dc2b690e1ec737..1853c564ba046770f69ad551b1d524710cc9454d 100644 (file)
@@ -49,17 +49,25 @@ CFLAGS += -DMAKE_DEP
 
 $(C_DEP): .dep/%.d: %.c
        @test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
-       @echo "regenerating dependencies for $*.c"
-       @$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \
+       #@echo "regenerating dependencies for $*.c"
+       @$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
        | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
        .dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
        [ -s $@ ] || rm -f $@'
 
 $(CPP_DEP): .dep/%.dpp: %.cpp
        @test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
-       @echo "regenerating dependencies for $*.c"
-       @$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \
+       #@echo "regenerating dependencies for $*.cpp"
+       @$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
        | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
        .dep\/$(subst /,\/,$*).dpp : /g'\'' > $@; \
        [ -s $@ ] || rm -f $@'
 
+$(M_DEP): .dep/%.dm: %.m
+       @test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
+       #@echo "regenerating dependencies for $*.m"
+       @$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
+       | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
+       .dep\/$(subst /,\/,$*).dm : /g'\'' > $@; \
+       [ -s $@ ] || rm -f $@'
+