diff --git a/Makefile b/Makefile index 6c01a824f0..344cfbc42d 100644 --- a/Makefile +++ b/Makefile @@ -208,7 +208,7 @@ ifeq ($(CONFIG_VHOOK),yes) endif .depend: $(SRCS) version.h - $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $^ 1>.depend + $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $(filter-out %.h,$^) 1>.depend .libs: lib @test -f .libs || touch .libs