From 86f32059ac86eaf4123b3fe39c72a687a3f1fddd Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 29 May 2022 04:00:09 -0700 Subject: [PATCH] Fix icon for coop-compiler --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 0d7b1b75..12970c4a 100644 --- a/Makefile +++ b/Makefile @@ -903,17 +903,15 @@ endif # icon ifeq ($(WINDOWS_BUILD),1) - ifeq ($(ICON),1) - Command := mkdir -p "$(BUILD_DIR)/res" + ifeq ($(ICON),1) + Command := mkdir -p "$(BUILD_DIR)/res" Resp := $(shell $(call Command)) - - Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc" + Command := windres -o "$(BUILD_DIR)/res/icon.o" -i "res/icon.rc" --preprocessor $(CC) --preprocessor-arg -E --preprocessor-arg -xc-header --preprocessor-arg -DRC_INVOKED Resp := $(shell $(call Command)) - ifeq ($(.SHELLSTATUS),0) LDFLAGS += $(BUILD_DIR)/res/icon.o - endif - endif + endif + endif endif # Coop specific libraries