Fix macOS build

This commit is contained in:
falkTX 2021-10-19 01:30:52 +01:00
parent 36c6aadcd0
commit 289d8a80f2
2 changed files with 19 additions and 10 deletions

View file

@ -290,10 +290,15 @@ $(TARGET): $(PLUGIN_OBJS)
$(SILENT)rm -f $@
$(SILENT)$(AR) crs $@ $^
$(BUILD_DIR)/%.bin.o: % res2c.py
$(BUILD_DIR)/%.bin.c: % res2c.py
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Generating and Compiling $<"
$(shell python3 ./res2c.py $< | $(CC) -x c - $(BUILD_C_FLAGS) -c -o $@)
@echo "Generating $*.bin.c"
$(SILENT)python3 ./res2c.py $< > $@
$(BUILD_DIR)/%.bin.o: $(BUILD_DIR)/%.bin.c
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $*.bin"
$(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
$(BUILD_DIR)/plugins.cpp.o: plugins.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"