aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index 36ad9d1..32bb8bc 100644
--- a/Makerules
+++ b/Makerules
@@ -36,8 +36,6 @@ ifneq "$(findstring env,$(origin sources))" ""
sources :=
endif
-headers := $(headers) $(sysdep_headers)
-
oPATH := $(PATH)
PATH := this definition should take precedence over $(oPATH)
ifeq ($(PATH),$(oPATH))
@@ -295,6 +293,8 @@ override sources := $(addsuffix .c,$(filter-out $(elided-routines),\
$(sysdep_routines)))
sysdep_routines := $(sysdep_routines)
+headers := $(headers) $(sysdep_headers)
+
# This is the list of all object files, gotten by
# replacing every ".c" in `sources' with a ".o".
override objects := $(addprefix $(objpfx),$(sources:.c=.o))