lynx 64 bit build. not gonna lie - this system is pretty disappointing
This commit is contained in:
parent
76ccefb3c6
commit
72adbbf898
|
@ -0,0 +1,53 @@
|
|||
CXX = g++
|
||||
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 -Wno-parentheses -I.. -O3 -std=gnu++11 -fomit-frame-pointer -fno-exceptions -flto
|
||||
TARGET = bizlynx.dll
|
||||
|
||||
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
|
||||
LDFLAGS_64 =
|
||||
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)
|
||||
|
||||
DEST_32 = ../../output/dll
|
||||
DEST_64 = ../../output64/dll
|
||||
|
||||
SRCS = \
|
||||
../c65c02.cpp \
|
||||
../cart.cpp \
|
||||
../cinterface.cpp \
|
||||
../memmap.cpp \
|
||||
../mikie.cpp \
|
||||
../newstate.cpp \
|
||||
../ram.cpp \
|
||||
../rom.cpp \
|
||||
../sound/Blip_Buffer.cpp \
|
||||
../sound/Stereo_Buffer.cpp \
|
||||
../susie.cpp \
|
||||
../system.cpp
|
||||
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) -c -o $@ $< $(CXXFLAGS)
|
||||
|
||||
$(TARGET) : $(OBJS)
|
||||
$(CXX) -o $@ $(LDFLAGS) $(OBJS)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS)
|
||||
$(RM) $(TARGET)
|
||||
|
||||
install:
|
||||
$(CP) $(TARGET) $(DEST_$(ARCH))
|
Binary file not shown.
Loading…
Reference in New Issue