Browse Source

Fix order of OBJECTS prerequisites

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

+ 3
- 3
compile.mk View File

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


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



Loading…
Cancel
Save