From 56e89c9e4fb00b5c2af4536d4c50294608d0c46c Mon Sep 17 00:00:00 2001 From: Radosław Kujawa Date: Sun, 2 Aug 2026 22:04:06 +0200 Subject: Performance improvements, support userspace simulators --- configs/darwin-glide-sim | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 configs/darwin-glide-sim (limited to 'configs/darwin-glide-sim') diff --git a/configs/darwin-glide-sim b/configs/darwin-glide-sim new file mode 100644 index 0000000..7cf5559 --- /dev/null +++ b/configs/darwin-glide-sim @@ -0,0 +1,38 @@ +# 3dfx/Glide driver (fxMesa) over the userspace Voodoo simulator +# on macOS +# +# ws3dgl-sim repo built and linked exactly like real Glide, +# with the Glide3 SDK headers coming from its include/. +# +# The whole fxMesa driver stack builds and runs unmodified. +# +# Build the simulator first: gmake -C $(WS3DGL_SIM) +# Then here: gmake darwin-glide-sim + +include $(TOP)/configs/default + +CONFIG_NAME = darwin-glide-sim + +CC = cc +CXX = c++ + +WS3DGL_SIM ?= $(abspath $(TOP)/../ws3dgl-sim) + +CFLAGS = -O2 -fsigned-char -fno-strict-aliasing -ffast-math -g -MMD -MP \ + -I$(WS3DGL_SIM)/include -DFX +CXXFLAGS = $(CFLAGS) + +# no makedepend on macOS +MKDEP = true + +MKLIB_OPTIONS = -static +GL_LIB_NAME = libGL.a +OSMESA_LIB_NAME = libOSMesa.a + +SRC_DIRS = mesa +DRIVER_DIRS = glide-sim +PROGRAM_DIRS = + +GL_LIB_DEPS = +APP_LIB_DEPS = -L$(LIB_DIR) -lGL -lm \ + -L$(WS3DGL_SIM)/lib -lglide3x -Wl,-rpath,$(WS3DGL_SIM)/lib -- cgit