Browse Source

Reorder SOURCE_OBJECTS

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
1878e96232
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      compile.mk

+ 3
- 3
compile.mk View File

@@ -43,13 +43,13 @@ CXXFLAGS += $(FLAGS)




# Derive object files from sources and place them before user-defined objects # 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)) DEPENDENCIES := $(patsubst %, build/%.d, $(SOURCES))


# Final targets # Final targets


$(TARGET): $(OBJECTS)
$(CXX) -o $@ $(OBJECTS) $(LDFLAGS)
$(TARGET): $(SOURCE_OBJECTS) $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS)


-include $(DEPENDENCIES) -include $(DEPENDENCIES)




Loading…
Cancel
Save