aboutsummaryrefslogtreecommitdiff
path: root/sim/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'sim/Makefile.am')
-rw-r--r--sim/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/Makefile.am b/sim/Makefile.am
index 3c46925..fa646ab 100644
--- a/sim/Makefile.am
+++ b/sim/Makefile.am
@@ -93,6 +93,14 @@ pkginclude_HEADERS += \
$(srcroot)/include/sim/sim.h
endif
+## Used for our custom rules to calculate the dependency output base name.
+## This form aligns with Automake's default rules.
+SIM_DEPBASE = $(@D)/$(DEPDIR)/$(@F:.o=)
+## Actual full compile command like Automake's default rules.
+SIM_COMPILE = \
+ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(SIM_DEPBASE).Tpo -c -o $@ $< && \
+ $(am__mv) $(SIM_DEPBASE).Tpo $(SIM_DEPBASE).Po
+
include common/local.mk
if SIM_ENABLE_IGEN
include igen/local.mk