From 77cecc9d81c89efab972cf9db7c4d10bfe72afe6 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 21 Mar 2018 01:00:15 -0400 Subject: [PATCH] Place automatic objects before user-defined objects in compile.mk --- compile.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compile.mk b/compile.mk index 5a2707ad..f2f8b812 100644 --- a/compile.mk +++ b/compile.mk @@ -37,9 +37,9 @@ CFLAGS += $(FLAGS) CXXFLAGS += $(FLAGS) -OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) -DEPS = $(patsubst %, build/%.d, $(SOURCES)) -RESOURCES += +# Derive object files from sources and place them before user-defined objects +OBJECTS := $(patsubst %, build/%.o, $(SOURCES)) $(OBJECTS) +DEPS := $(patsubst %, build/%.d, $(SOURCES)) # Final targets