aboutsummaryrefslogtreecommitdiff
path: root/configs/darwin-verite-sim
blob: 505444bd1cd867607c23887d768d62e300bdeb7a (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
# Rendition Verite driver over the userspace simulator on macOS
#
# Build the simulator first: gmake -C $(WS3DGL_SIM)
# Then here:                 gmake darwin-verite-sim
# Run examples with:         VERITE_UCODE=sim ./examples/cube
#
# (the simulator ignores the microcode; the driver only requires the
# variable to be set)

include $(TOP)/configs/default

CONFIG_NAME = darwin-verite-sim

CC = cc
CXX = c++

WS3DGL_SIM ?= $(abspath $(TOP)/../ws3dgl-sim)

CFLAGS = -O2 -fsigned-char -fno-strict-aliasing -ffast-math -g -MMD -MP \
	-I$(TOP)/src/mesa/ppc
CXXFLAGS = $(CFLAGS)

MKDEP = true

MKLIB_OPTIONS = -static
GL_LIB_NAME = libGL.a
OSMESA_LIB_NAME = libOSMesa.a

SRC_DIRS = mesa
DRIVER_DIRS = verite-sim
PROGRAM_DIRS =

# libv3dsim carries its own Metal/Cocoa/MoltenVK dependencies
GL_LIB_DEPS =
APP_LIB_DEPS = -L$(LIB_DIR) -lGL -lm \
	-L$(WS3DGL_SIM)/lib -lv3dsim -Wl,-rpath,$(WS3DGL_SIM)/lib