64 bit quicknes. Change both quicknes and wswan to not static their deps, and include libstdc++/etc as needed. Other cores will get the same treatment, so overall we should save space
This commit is contained in:
parent
131f4bb84b
commit
bb81d5e78b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,12 +1,29 @@
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -march=pentium4 -mtune=core2 -flto
|
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_32 = -march=pentium4 -mtune=core2
|
||||||
|
CXXFLAGS_64 =
|
||||||
|
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -flto $(CXXFLAGS_$(ARCH))
|
||||||
# TODO: include these as options in the Makefile
|
# TODO: include these as options in the Makefile
|
||||||
# -fprofile-generate
|
# -fprofile-generate
|
||||||
# -fprofile-use
|
# -fprofile-use
|
||||||
TARGET = libquicknes.dll
|
TARGET = libquicknes.dll
|
||||||
LDFLAGS = -shared -static -static-libgcc -static-libstdc++ $(CXXFLAGS)
|
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
|
||||||
RM = rm
|
LDFLAGS_64 =
|
||||||
CP = cp
|
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
|
||||||
|
|
||||||
|
DEST_32 = ../../output/dll
|
||||||
|
DEST_64 = ../../output64/dll
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
../nes_emu/abstract_file.cpp \
|
../nes_emu/abstract_file.cpp \
|
||||||
|
@ -62,4 +79,4 @@ clean:
|
||||||
$(RM) $(TARGET)
|
$(RM) $(TARGET)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(CP) $(TARGET) ../../output/dll
|
$(CP) $(TARGET) $(DEST_$(ARCH))
|
||||||
|
|
|
@ -13,7 +13,10 @@ endif
|
||||||
|
|
||||||
CXXFLAGS = -Wall -DLSB_FIRST -I.. -Wno-multichar -O3 -Wzero-as-null-pointer-constant -std=gnu++11 -fomit-frame-pointer -fno-exceptions -flto
|
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
|
TARGET = bizswan.dll
|
||||||
LDFLAGS = -shared -static-libgcc -static-libstdc++ -static $(CXXFLAGS)
|
|
||||||
|
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
|
||||||
|
LDFLAGS_64 =
|
||||||
|
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
|
||||||
|
|
||||||
DEST_32 = ../../output/dll
|
DEST_32 = ../../output/dll
|
||||||
DEST_64 = ../../output64/dll
|
DEST_64 = ../../output64/dll
|
||||||
|
|
Loading…
Reference in New Issue