# $NetBSD: Makefile.Xsun,v 1.5.2.2 2020/08/27 09:05:37 martin Exp $ .include 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}/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+= -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.Xi} \ -lXfont2 \ -lpixman-1 \ -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.Xi} \ ${LIBXFONT2} \ ${LIBPIXMAN-1} \ ${LIBX11} \ ${LIBZ} \ ${LIBM} .include .include