Browse Source

Fix compilation of files with directories in their path

pull/78/head
Patrick Desaulniers Filipe Coelho <falktx@falktx.com> 5 years ago
parent
commit
3014891910
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Makefile.plugins.mk

+ 2
- 2
Makefile.plugins.mk View File

@@ -77,12 +77,12 @@ all:
# Common

$(BUILD_DIR)/%.c.o: %.c
-@mkdir -p $(BUILD_DIR)
-@mkdir -p "$(BUILD_DIR)/$(shell dirname $<)"
@echo "Compiling $<"
@$(CC) $< $(BUILD_C_FLAGS) -c -o $@

$(BUILD_DIR)/%.cpp.o: %.cpp
-@mkdir -p $(BUILD_DIR)
-@mkdir -p "$(BUILD_DIR)/$(shell dirname $<)"
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@



Loading…
Cancel
Save