]> rtime.felk.cvut.cz Git - l4.git/blobdiff - kernel/fiasco/src/Makerules.JDB
Update
[l4.git] / kernel / fiasco / src / Makerules.JDB
index 139c9a959f3ff2a26b0b6974f7952954edec5bf5..52fa17d416e137d49ed7d6c2e913f27a708240cc 100644 (file)
@@ -1,5 +1,10 @@
 
 
-$(JDB): $(OBJ_JDB)
+$(JDB): $(OBJ_JDB) .$(JDB).deps
        $(AR_MESSAGE)
-       $(VERBOSE)$(LD) -T/dev/null -m $(LD_EMULATION) -r -o $@ $^
+       $(VERBOSE)$(LD) -T/dev/null -m $(LD_EMULATION) --unique -Ur -r -o $@ $(OBJ_JDB)
+
+.$(JDB).deps: FORCE
+       $(VERBOSE)echo $(OBJ_JDB) > $@.new
+       $(VERBOSE)$(MOVE_IF_CHANGE) $@.new $@ || true
+