build quicknes dll if in mingw

This commit is contained in:
feos 2024-03-24 19:41:24 +03:00
parent a803407cdd
commit eb70cd474e
1 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,14 @@ CXXFLAGS = -Wall -I../core/source/quickerNES/core/ -I../core/extern -O3 -Wfatal-
# TODO: include these as options in the Makefile
# -fprofile-generate
# -fprofile-use
TARGET = libquicknes.so
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
TARGET = libquicknes.so
else
TARGET = libquicknes.dll
endif
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
LDFLAGS_64 =
LDFLAGS = -shared $(LDFLAGS_$(ARCH)) $(CXXFLAGS)