From 3eead5f631e2d84779b81786e56039e33743cfcd Mon Sep 17 00:00:00 2001 From: John Regan Date: Sat, 22 Jul 2017 14:06:11 -0500 Subject: [PATCH] default to 32-bit output --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 54a6ceb..1728a22 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: -TARGET=x86_64-w64-mingw32 +TARGET=i686-w64-mingw32 IUP_VER=3.22 include iup/Makefile @@ -14,15 +14,15 @@ WINDOWS_LIBS = -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 -build/$(TARGET)/asioconfig.exe: asioconfig.cpp $(LIBIUP) asioconfig.res +build/$(TARGET)/asioconfig.exe: asioconfig.cpp $(LIBIUP) build/$(TARGET)/asioconfig.coff mkdir -p build/$(TARGET) - $(TARGET_CXX) -mwindows -static -I$(IUP_INCDIR) $(ASIO_INCDIRS) -o $@ asioconfig.cpp $(ASIO_FILES) -L$(IUP_LIBDIR) -liup $(WINDOWS_LIBS) asioconfig.res + $(TARGET_CXX) -mwindows -static -I$(IUP_INCDIR) $(ASIO_INCDIRS) -o $@ asioconfig.cpp $(ASIO_FILES) -L$(IUP_LIBDIR) -liup $(WINDOWS_LIBS) build/$(TARGET)/asioconfig.coff $(TARGET_STRIP) $@ upx $@ -asioconfig.res: asioconfig.rc - $(TARGET_WINDRES) -c 1252 asioconfig.rc -O coff -o asioconfig.res +build/$(TARGET)/asioconfig.coff: asioconfig.rc + $(TARGET_WINDRES) -v -c 1252 asioconfig.rc -o $@ clean: - rm -f asioconfig.res asioconfig.exe + rm -f build/$(TARGET)/*