From 51c3a8e4075656d637f5fbd4dd8e3bb028c172c8 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 21 Mar 2018 08:07:41 -0400 Subject: [PATCH] Reorder OBJECTS again --- compile.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compile.mk b/compile.mk index 2891b7b1..0a0381a3 100644 --- a/compile.mk +++ b/compile.mk @@ -43,14 +43,14 @@ CXXFLAGS += $(FLAGS) # Derive object files from sources and place them before user-defined objects -OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) +SOURCE_OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) DEPENDENCIES := $(patsubst %, build/%.d, $(SOURCES)) # Final targets -$(TARGET): $(RESOURCES) $(OBJECTS) - $(CXX) -o $@ $(OBJECTS) $(LDFLAGS) +$(TARGET): $(RESOURCES) $(OBJECTS) $(SOURCE_OBJECTS) + $(CXX) -o $@ $(SOURCE_OBJECTS) $(OBJECTS) $(LDFLAGS) -include $(DEPENDENCIES)