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.2 2020/08/04 14:35:24 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+=	-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}/Xext
SRCS+=	dpmsstubs.c

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

.PATH:	${X11SRCDIR.xorg-server}/fb
SRCS+=	fbcmap_mi.c

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

CPPFLAGS+=	-UHAVE_XORG_CONFIG_H

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.record} \
	${LDADD.render} \
	${LDADD.os} \
	${LDADD.xfixes} \
	${LDADD.damageext} \
	${LDADD.miext/damage} \
	${LDADD.miext/sync} \
	${LDADD.Xi} \
	-lXfont \
	-lpixman-1 \
	-lXext \
	-lX11 \
	-lz \
	-lm

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

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