blob: d4863a0a402701a20106c69abf96618a9c9237c6 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Configuration for NetBSD, Rendition Verite driver over librlgl,
# no X, static libGL.
#
# Native build: gcc on the NetBSD host (needs GNU make).
# Cross build from a Linux host with NetBSD src cross tools:
# VERITE_CROSS=/path/to/tooldir/bin/powerpc--netbsd- \
# VERITE_SYSROOT=/path/to/netbsd/sysroot \
# gmake netbsd-verite
include $(TOP)/configs/default
CONFIG_NAME = netbsd-verite
ifdef VERITE_CROSS
CC = $(VERITE_CROSS)gcc --sysroot=$(VERITE_SYSROOT)
CXX = $(VERITE_CROSS)g++ --sysroot=$(VERITE_SYSROOT)
else
CC = gcc
CXX = g++
endif
# librlgl/libv3d/rlgl and the vendored verite3dio.h kernel ABI now live in
# the driver tree (src/mesa/drivers/verite); the rlvec.h CPU-kernel header
# lives in src/mesa/ppc. The tree is self-contained -- no dependency on
# ../tools or the NetBSD ../src checkout.
# -MMD -MP: emit a per-object .d of header prerequisites at compile time,
# consumed via "-include" in src/mesa/Makefile. This replaces the missing
# makedepend (MKDEP=true below) so editing a header rebuilds its dependents
# instead of silently leaving stale objects.
CFLAGS = -O2 -mcpu=603e -fsigned-char -fno-strict-aliasing -ffast-math \
-DUSE_PPC_ASM -DRLVEC_PPC -MMD -MP \
-I$(TOP)/src/mesa/ppc
CXXFLAGS = $(CFLAGS)
# Driver-layer perf instrumentation (vrperf.h): OFF by default so ship
# and upstream builds carry byte-identical objects. Build with
# gmake netbsd-verite VERITE_INSTRUMENT=1
# to compile it in, then run any app with VRMESA_PROF=1..3 to enable it
# at runtime (silent otherwise). (Header dependencies are tracked via the
# compiler's -MMD .d files, so editing a header now rebuilds its dependents
# automatically.)
ifdef VERITE_INSTRUMENT
CFLAGS += -DVERITE_INSTRUMENT
endif
# no makedepend in the NetBSD base system
MKDEP = true
MKLIB_OPTIONS = -static
GL_LIB_NAME = libGL.a
OSMESA_LIB_NAME = libOSMesa.a
SRC_DIRS = mesa
DRIVER_DIRS = verite
PROGRAM_DIRS =
GL_LIB_DEPS =
APP_LIB_DEPS = -L$(LIB_DIR) -lGL -lm
|