You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. From 94aff4c3389111fc85054eb06b40bea26a216d0c Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
  3. Date: Sat, 16 Apr 2011 05:51:04 +0200
  4. Subject: [PATCH] Don't rebuild everything when the Makefile's timestamp changed
  5. ---
  6. Makefile.in | 2 +-
  7. modules/Makefile.in | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. --- a/Makefile.in
  10. +++ b/Makefile.in
  11. @@ -104,7 +104,7 @@ clean:
  12. distclean: clean
  13. rm -rf $(DISTCLEAN)
  14. -src/%.o: src/%.cpp Makefile
  15. +src/%.o: src/%.cpp
  16. @mkdir -p .depend src
  17. $(E) Building core object $*...
  18. $(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MD -MF .depend/$*.dep -MT $@
  19. --- a/modules/Makefile.in
  20. +++ b/modules/Makefile.in
  21. @@ -117,12 +117,12 @@ install_datadir:
  22. clean:
  23. rm -rf $(CLEAN)
  24. -%.o: %.cpp Makefile
  25. +%.o: %.cpp
  26. @mkdir -p .depend
  27. $(E) Building module $(notdir $(basename $@))...
  28. $(Q)$(CXX) $(MODFLAGS) -c -o $@ $< $($(notdir $(basename $@))CXXFLAGS) -MD -MF .depend/$(notdir $@).dep
  29. -%.so: %.o Makefile
  30. +%.so: %.o
  31. $(E) "Linking module" $(notdir $(basename $@))...
  32. $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $($(notdir $(basename $@))LDFLAGS) $(LIBS)