aboutsummaryrefslogtreecommitdiff
path: root/configs/netbsd-glide-sim
diff options
context:
space:
mode:
Diffstat (limited to 'configs/netbsd-glide-sim')
-rw-r--r--configs/netbsd-glide-sim29
1 files changed, 29 insertions, 0 deletions
diff --git a/configs/netbsd-glide-sim b/configs/netbsd-glide-sim
new file mode 100644
index 0000000..dacb87a
--- /dev/null
+++ b/configs/netbsd-glide-sim
@@ -0,0 +1,29 @@
+# 3dfx/Glide driver (fxMesa) over the Voodoo simulator on NetBSD
+
+include $(TOP)/configs/default
+
+CONFIG_NAME = netbsd-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)
+
+MKDEP = true
+
+MKLIB_OPTIONS = -static
+GL_LIB_NAME = libGL.a
+OSMESA_LIB_NAME = libOSMesa.a
+
+SRC_DIRS = mesa
+DRIVER_DIRS = glide-sim
+PROGRAM_DIRS =
+
+# libglide3x.so carries its own vulkan dependency.
+GL_LIB_DEPS =
+APP_LIB_DEPS = -L$(LIB_DIR) -lGL -lm \
+ -L$(WS3DGL_SIM)/lib -lglide3x -Wl,-R$(WS3DGL_SIM)/lib