Commit d9292f4d authored by Matthias Braun's avatar Matthias Braun
Browse files

use gcc -MP instead of match-all %.h rule

parent e1c7cd54
......@@ -156,7 +156,7 @@ QUICKCHECK_FLAGS ?= -Wno-shadow -Wno-shadow-local
$(builddir)/%.o: %.c $(IR_SPEC_GENERATED_INCLUDES)
@echo CC $@
$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(libfirm_CPPFLAGS) -MMD -c -o $@ $<
$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(libfirm_CPPFLAGS) -MP -MMD -c -o $@ $<
$(docdir)/libfirm.tag: Doxyfile $(IR_SPEC_GENERATED_INCLUDES) $(wildcard include/libfirm/*.h) $(wildcard include/libfirm/adt/*.h)
@echo Doxygen $@
......@@ -177,11 +177,6 @@ clean:
@echo CLEAN
$(Q)rm -fr $(builddir) $(gendir) $(docdir)
# This rule is necessary so that make does not abort if headers get deleted
# (the deleted header might still be referenced in a .d file)
# Ensure all output directories are created
UNUSED1 := $(shell mkdir -p $(libfirm_BUILDDIRS))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment