64 bit wonderswan

This commit is contained in:
nattthebear 2016-02-28 21:14:23 -05:00
parent 3719478850
commit 266de8a55e
2 changed files with 17 additions and 4 deletions

BIN
output64/dll/bizswan.dll Normal file

Binary file not shown.

View File

@ -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))