From 3b415f9cd3dd4999e71360603ffe82ea0cf9baf0 Mon Sep 17 00:00:00 2001 From: shantanugadgil Date: Wed, 9 Sep 2015 19:35:17 +0530 Subject: [PATCH] Allow parameters to the resource compiler Using Cygwin64, build fails when trying to compile for Windows 32-bit. 'windres' needs to be supplied "-F pe-i386" when building for 32-bit. My compile commands are: ### for 32-bit # rm -rf out/; make CC=i686-w64-mingw32-gcc COPT="-static" WINDRES_FLAGS="-F pe-i386" ### for 64-bit # rm -rf out/; make CC=x86_64-w64-mingw32-gcc COPT="-static" WINDRES_FLAGS="-F pe-x86-64" Regards, Shantanu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d11626c5..b1edbc5c 100644 --- a/Makefile +++ b/Makefile @@ -282,7 +282,7 @@ $(BUILD_DIR)/%.o : %.c $(CC) -c $(CFLAGS) $< -o $@ $(BUILD_RESOURCES) : $(WINDOWS_RESOURCES) - windres $< $@ + windres $(WINDRES_FLAGS) $< $@ # This rules is used to keep the code formatted in a reasonable manor # For this to work astyle must be installed and in the path