aboutsummaryrefslogtreecommitdiff
path: root/configs/darwin-glide-sim
blob: 7cf55590894af44e2b27f7afb993ccba440cbafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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