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