Skip to content

Commit

Permalink
default to 32-bit output
Browse files Browse the repository at this point in the history
  • Loading branch information
John Regan committed Jul 22, 2017
1 parent 0f101a2 commit 3eead5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
all:
TARGET=x86_64-w64-mingw32
TARGET=i686-w64-mingw32
IUP_VER=3.22

include iup/Makefile
Expand All @@ -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)/*

0 comments on commit 3eead5f

Please # to comment.