summaryrefslogtreecommitdiff
path: root/lib/mesa/mk/libOSMesa/Makefile
blob: c8580f75e0536e72b4c3cffe00514848979f2725 (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
#	$OpenBSD: Makefile,v 1.2 2020/08/28 16:07:19 jsg Exp $

LIB=	OSMesa

SRCS=	osmesa.c

LDADD+=	${.CURDIR}/../libmesa_classic/${__objdir}/libmesa_classic.a \
	-Wl,--whole-archive ${.CURDIR}/../libglapi_static/${__objdir}/libglapi_static.a \
	-Wl,--no-whole-archive
LDADD+= -L${.CURDIR}/../libglapi/${__objdir} -lglapi \
	-lm -lz

.include "../Makefile.inc"

CFLAGS+=	${C_VIS_ARGS}
CXXFLAGS+=	${CXX_VIS_ARGS}
CPPFLAGS+=	-I${MESA_SRC}/src/mesa \
		-I${MESA_SRC}/src/mapi \
		-I${MESA_SRC}/generated/src/mapi/glapi

obj: _xenocara_obj

beforeinstall:
	rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.la

.include <bsd.lib.mk>
.include <bsd.xorg.mk>

.PATH:	${MESA_SRC}/src/mesa/drivers/osmesa