From eb70cd474e25203ffae045a807628a62c863e39a Mon Sep 17 00:00:00 2001 From: feos Date: Sun, 24 Mar 2024 19:41:24 +0300 Subject: [PATCH] build quicknes dll if in mingw --- quicknes/make/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/quicknes/make/Makefile b/quicknes/make/Makefile index 1a361b9ac0..95bb8ca7a0 100644 --- a/quicknes/make/Makefile +++ b/quicknes/make/Makefile @@ -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)