diff --git a/output64/dll/bizswan.dll b/output64/dll/bizswan.dll new file mode 100644 index 0000000000..b41897fd48 Binary files /dev/null and b/output64/dll/bizswan.dll differ diff --git a/wonderswan/mingw/Makefile b/wonderswan/mingw/Makefile index 77a1b59b6b..8995fa61ac 100644 --- a/wonderswan/mingw/Makefile +++ b/wonderswan/mingw/Makefile @@ -1,10 +1,23 @@ CXX = g++ -CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3 -Wzero-as-null-pointer-constant -std=gnu++11 -fomit-frame-pointer -fno-exceptions -TARGET = bizswan.dll -LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS) RM = rm CP = cp +MACHINE = $(shell $(CXX) -dumpmachine) +ifneq (,$(findstring i686,$(MACHINE))) + ARCH = 32 +else ifneq (,$(findstring x86_64,$(MACHINE))) + ARCH = 64 +else + $(error Unknown arch) +endif + +CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3 -Wzero-as-null-pointer-constant -std=gnu++11 -fomit-frame-pointer -fno-exceptions -flto +TARGET = bizswan.dll +LDFLAGS = -shared -static-libgcc -static-libstdc++ -static $(CXXFLAGS) + +DEST_32 = ../../output/dll +DEST_64 = ../../output64/dll + SRCS = \ ../eeprom.cpp \ ../gfx.cpp \ @@ -33,4 +46,4 @@ clean: $(RM) $(TARGET) install: - $(CP) $(TARGET) ../../output/dll + $(CP) $(TARGET) $(DEST_$(ARCH))