Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile.Xsun,v 1.9 2023/01/26 17:16:57 tsutsui Exp $

.include <bsd.own.mk>

PROG?=		Xsun
BINMODE=	4711

.include "../../../Makefile.serverlib"
.include "../../../Makefile.servermod"

WARNS?=	2

.PATH:	${X11SRCDIR.xorg-server}/hw/sun

BUILDSYMLINKS=
CPPFLAGS+=	-DDEFAULT_LOGDIR=\"/var/log\" -DDEFAULT_LOGPREFIX=\"${PROG}.\"
CPPFLAGS+=	-DINCLUDE_CG2_HEADER
CPPFLAGS+=	-D_XTYPEDEF_POINTER=1
#CPPFLAGS+=	-DLOWMEMFTPT

# for Xsun (8bpp)
.if ${PROG} == "Xsun"
SRCS=	sunInit.c
SRCS+=	sunCfb.c
# XXX not yet
#SRCS+=	sunGX.c sunCursor.c
SRCS+=	sunMfb.c

BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c
SRCS+=	sunInitExt.c
.endif

# for XsunMono (1bpp)
.if ${PROG} == "XsunMono"
BUILDSYMLINKS+= sunInit.c sunInitMono.c
SRCS=	sunInitMono.c
SRCS+=	sunMfb.c

BUILDSYMLINKS+= ../../mi/miinitext.c sunInExMono.c
SRCS+=	sunInExMono.c

CPPFLAGS.sunInitMono.c=		-DSUNMAXDEPTH=1
CPPFLAGS.sunInExMono.c=		-URENDER
.endif

# for Xsun24 (24bpp)
.if ${PROG} == "Xsun24"
BUILDSYMLINKS+= sunInit.c sunInitMulti.c
SRCS+=	sunInitMulti.c
SRCS+=	sunCfb.c
SRCS+=	sunCfb24.c
SRCS+=	sunMfb.c

BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c
SRCS+=	sunInitExt.c

CPPFLAGS.sunInitMulti.c=	-DSUNMAXDEPTH=32
.endif

# for XsunMulti (XXX: incomplete?)
.if 0
SRCS+=	sunMultiDepth.c

BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c
SRCS+=	sunInitExt.c
.endif

# common sources
SRCS+=	sunFbs.c sunIo.c sunKbd.c sunKeyMap.c sunMouse.c

.PATH:  ${X11SRCDIR.xorg-server}/Xi
SRCS+=  stubs.c

CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/hw/sun \
		${X11INCS.DIX}

CPPFLAGS+=	-UHAVE_XORG_CONFIG_H
CPPFLAGS+=	-UDBE -UXRECORD -UPRESENT
CPPFLAGS+=	-UXFree86LOADER -UXF86VIDMODE -UXFreeXDGA -UXF86MISC \
		-UXF86DRI -UXF86BIGFONT

.include "../../../Makefile.Xserver"

LDADD+= ${LDADD.dix} \
	${LDADD.fb} \
	${LDADD.mi} \
	${LDADD.xkb} \
	${LDADD.xkbstubs} \
	${LDADD.randr} \
	${LDADD.Xext} \
	${LDADD.composite} \
	${LDADD.render} \
	${LDADD.os} \
	${LDADD.xfixes} \
	${LDADD.damageext} \
	${LDADD.miext/damage} \
	${LDADD.miext/sync} \
	${LDADD.dri3} \
	${LDADD.Xi} \
	-lXfont2 \
	-lpixman-1 \
	-lXdmcp \
	-lXau \
	-lX11 \
	-lz \
	-lm

DPADD+= ${LDADD.dix} \
	${DPADD.fb} \
	${DPADD.mi} \
	${DPADD.xkb} \
	${DPADD.randr} \
	${DPADD.Xext} \
	${DPADD.composite} \
	${DPADD.render} \
	${DPADD.os} \
	${DPADD.xfixes} \
	${DPADD.damageext} \
	${DPADD.miext/damage} \
	${DPADD.miext/sync} \
	${DPADD.dri3} \
	${DPADD.Xi} \
	${LIBXFONT2} \
	${LIBPIXMAN-1} \
	${LIBXDMCP} \
	${LIBXAU} \
	${LIBX11} \
	${LIBZ} \
	${LIBM}

.include <bsd.x11.mk>
.include <bsd.prog.mk>