summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-09-05 13:20:59 -0400
committerGitHub <noreply@github.com>2016-09-05 13:20:59 -0400
commit751832192cb7664808a775f05fcd9da83d15a9ed (patch)
treef9f2be768c17be1bfd16e3bbee59246d0a869560
parent4769b8513059e1ca7ed253da81a23b50505591c9 (diff)
parent13f3c73386da9b15b255b014f5da81cd51613ca1 (diff)
Merge pull request #722 from fredizzimo/fix_always_linking
Fix the ldflags.txt and obj.txt checks
-rw-r--r--tmk_core/rules.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 79fc7119a6..e4c8aecb2c 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -332,11 +332,13 @@ $1/compiler.txt: $1/force
$$(CC) --version | cmp -s - $$@ || $$(CC) --version > $$@
endef
+.PRECIOUS: $(MASTER_OUTPUT)/obj.txt
$(MASTER_OUTPUT)/obj.txt: $(MASTER_OUTPUT)/force
- echo '$(OBJ)' | cmp -s - $$@ || echo '$(OBJ)' > $$@
+ echo '$(OBJ)' | cmp -s - $@ || echo '$(OBJ)' > $@
+.PRECIOUS: $(MASTER_OUTPUT)/ldflags.txt
$(MASTER_OUTPUT)/ldflags.txt: $(MASTER_OUTPUT)/force
- echo '$(LDFLAGS)' | cmp -s - $$@ || echo '$(LDFLAGS)' > $$@
+ echo '$(LDFLAGS)' | cmp -s - $@ || echo '$(LDFLAGS)' > $@
# We have to use static rules for the .d files for some reason