Merge pull request #422 from PaulGrandperrin/patch-1

Makefile.port: fix dependencies for parallel compilation
This commit is contained in:
fgsfds authored and GitHub committed 2024-04-25 17:33:29 +02:00
commit a0f8550034
1 file changed
+3 -3
+3 -3
View File
@@ -271,7 +271,7 @@ export ROMID
BIN := $(B_DIR)/$(BIN_NAME)
default: $(JSON_HEADERS) $(BIN)
default: $(BIN)
################################################################################
# Asset Manager header generation
@@ -309,11 +309,11 @@ ifneq ($(CV2PDB),)
$(CV2PDB) $(BIN)
endif
$(B_DIR)/%.o: %.c
$(B_DIR)/%.o: %.c $(JSON_HEADERS)
@mkdir -p $(dir $@)
$(CC) -c $(CFLAGS) $(OPT_LVL) -o $@ $<
$(B_DIR)/%.o: %.cpp
$(B_DIR)/%.o: %.cpp $(JSON_HEADERS)
@mkdir -p $(dir $@)
$(CXX) -c $(CXXFLAGS) $(OPT_LVL) -o $@ $<