vbanext 64 bit build

This commit is contained in:
nattthebear 2017-06-10 20:16:24 -04:00
parent 5f2c5b0934
commit c9d462ccaf
2 changed files with 20 additions and 3 deletions

View File

@ -1,7 +1,22 @@
CXX = g++
CXXFLAGS = -Wall -O3 -fpermissive -Wno-unused-but-set-variable -Wno-strict-aliasing -Wzero-as-null-pointer-constant -Wno-unused-variable -Wno-parentheses -Wno-sign-compare -std=gnu++11 -fomit-frame-pointer -fno-exceptions
CXXFLAGS = -Wall -O3 -fpermissive -Wno-unused-but-set-variable \
-Wno-strict-aliasing -Wzero-as-null-pointer-constant -Wno-unused-variable \
-Wno-parentheses -Wno-sign-compare -std=gnu++11 -fomit-frame-pointer -fno-exceptions
MACHINE = $(shell $(CXX) -dumpmachine)
ifneq (,$(findstring i686,$(MACHINE)))
ARCH = 32
else ifneq (,$(findstring x86_64,$(MACHINE)))
ARCH = 64
else
$(error Unknown arch)
endif
LDFLAGS_32 = -static-libgcc -static-libstdc++
LDFLAGS_64 =
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
TARGET = libvbanext.dll
LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS)
RM = rm
CP = cp
@ -10,6 +25,8 @@ SRCS = \
../newstate.cpp
OBJS = $(SRCS:.cpp=.o)
DEST_32 = ../../output/dll
DEST_64 = ../../output64/dll
all: $(TARGET)
@ -24,4 +41,4 @@ clean:
$(RM) $(TARGET)
install:
$(CP) $(TARGET) ../../output/dll
$(CP) $(TARGET) $(DEST_$(ARCH))

Binary file not shown.