Browse Source

Refactor OBJECTS in compile.mk

tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
f9298e25ec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      compile.mk

+ 2
- 2
compile.mk View File

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


# Derive object files from sources and place them before user-defined objects
SOURCE_OBJECTS := $(patsubst %, build/%.o, $(SOURCES))
OBJECTS := $(patsubst %, build/%.o, $(SOURCES)) $(OBJECTS)
DEPENDENCIES := $(patsubst %, build/%.d, $(SOURCES))

# Final targets

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

-include $(DEPENDENCIES)


Loading…
Cancel
Save