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

18
deps/Makefile vendored
View file

@ -16,20 +16,24 @@ include ../dpf/Makefile.base.mk
# --------------------------------------------------------------
# override VCV arch.mk stuff so we can build more architectures
ifeq ($(CPU_ARM),true)
ARCH_NAME = arm
MACHINE = i686-bring-forth-the-rack
ifeq ($(CPU_AARCH64),true)
ARCH_NAME = aarch64
MACHINE = x86_64-bring-forth-the-rack
else ifeq ($(CPU_ARM64),true)
ARCH_NAME = arm64
MACHINE = x86_64-bring-forth-the-rack
else ifeq ($(CPU_AARCH64),true)
ARCH_NAME = aarch64
MACHINE = x86_64-bring-forth-the-rack
else ifeq ($(CPU_ARM),true)
ARCH_NAME = arm
MACHINE = i686-bring-forth-the-rack
else
MACHINE = $(TARGET_MACHINE)
endif
ifneq ($(MACOS_OR_WINDOWS),true)
ifeq ($(MACOS),true)
MACHINE_SUFFIX = -darwin
else ifeq ($(WINDOWS),true)
MACHINE_SUFFIX = -mingw32
else
MACHINE_SUFFIX = -linux
endif

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)/$<)"