1 1.9 tsutsui # $NetBSD: Makefile.Xsun,v 1.9 2023/01/26 17:16:57 tsutsui Exp $ 2 1.1 tsutsui 3 1.1 tsutsui .include <bsd.own.mk> 4 1.1 tsutsui 5 1.1 tsutsui PROG?= Xsun 6 1.1 tsutsui BINMODE= 4711 7 1.1 tsutsui 8 1.1 tsutsui .include "../../../Makefile.serverlib" 9 1.1 tsutsui .include "../../../Makefile.servermod" 10 1.1 tsutsui 11 1.1 tsutsui WARNS?= 2 12 1.1 tsutsui 13 1.1 tsutsui .PATH: ${X11SRCDIR.xorg-server}/hw/sun 14 1.1 tsutsui 15 1.1 tsutsui BUILDSYMLINKS= 16 1.4 tsutsui CPPFLAGS+= -DDEFAULT_LOGDIR=\"/var/log\" -DDEFAULT_LOGPREFIX=\"${PROG}.\" 17 1.1 tsutsui CPPFLAGS+= -DINCLUDE_CG2_HEADER 18 1.8 wiz CPPFLAGS+= -D_XTYPEDEF_POINTER=1 19 1.1 tsutsui #CPPFLAGS+= -DLOWMEMFTPT 20 1.1 tsutsui 21 1.1 tsutsui # for Xsun (8bpp) 22 1.1 tsutsui .if ${PROG} == "Xsun" 23 1.1 tsutsui SRCS= sunInit.c 24 1.1 tsutsui SRCS+= sunCfb.c 25 1.1 tsutsui # XXX not yet 26 1.1 tsutsui #SRCS+= sunGX.c sunCursor.c 27 1.1 tsutsui SRCS+= sunMfb.c 28 1.1 tsutsui 29 1.1 tsutsui BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c 30 1.1 tsutsui SRCS+= sunInitExt.c 31 1.1 tsutsui .endif 32 1.1 tsutsui 33 1.1 tsutsui # for XsunMono (1bpp) 34 1.1 tsutsui .if ${PROG} == "XsunMono" 35 1.1 tsutsui BUILDSYMLINKS+= sunInit.c sunInitMono.c 36 1.1 tsutsui SRCS= sunInitMono.c 37 1.1 tsutsui SRCS+= sunMfb.c 38 1.1 tsutsui 39 1.1 tsutsui BUILDSYMLINKS+= ../../mi/miinitext.c sunInExMono.c 40 1.1 tsutsui SRCS+= sunInExMono.c 41 1.1 tsutsui 42 1.1 tsutsui CPPFLAGS.sunInitMono.c= -DSUNMAXDEPTH=1 43 1.1 tsutsui CPPFLAGS.sunInExMono.c= -URENDER 44 1.1 tsutsui .endif 45 1.1 tsutsui 46 1.1 tsutsui # for Xsun24 (24bpp) 47 1.1 tsutsui .if ${PROG} == "Xsun24" 48 1.1 tsutsui BUILDSYMLINKS+= sunInit.c sunInitMulti.c 49 1.1 tsutsui SRCS+= sunInitMulti.c 50 1.1 tsutsui SRCS+= sunCfb.c 51 1.1 tsutsui SRCS+= sunCfb24.c 52 1.1 tsutsui SRCS+= sunMfb.c 53 1.1 tsutsui 54 1.1 tsutsui BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c 55 1.1 tsutsui SRCS+= sunInitExt.c 56 1.1 tsutsui 57 1.1 tsutsui CPPFLAGS.sunInitMulti.c= -DSUNMAXDEPTH=32 58 1.1 tsutsui .endif 59 1.1 tsutsui 60 1.1 tsutsui # for XsunMulti (XXX: incomplete?) 61 1.1 tsutsui .if 0 62 1.1 tsutsui SRCS+= sunMultiDepth.c 63 1.1 tsutsui 64 1.1 tsutsui BUILDSYMLINKS+= ../../mi/miinitext.c sunInitExt.c 65 1.1 tsutsui SRCS+= sunInitExt.c 66 1.1 tsutsui .endif 67 1.1 tsutsui 68 1.1 tsutsui # common sources 69 1.1 tsutsui SRCS+= sunFbs.c sunIo.c sunKbd.c sunKeyMap.c sunMouse.c 70 1.1 tsutsui 71 1.1 tsutsui .PATH: ${X11SRCDIR.xorg-server}/Xi 72 1.1 tsutsui SRCS+= stubs.c 73 1.1 tsutsui 74 1.1 tsutsui CPPFLAGS+= -I${X11SRCDIR.xorg-server}/hw/sun \ 75 1.1 tsutsui ${X11INCS.DIX} 76 1.1 tsutsui 77 1.1 tsutsui CPPFLAGS+= -UHAVE_XORG_CONFIG_H 78 1.3 tsutsui CPPFLAGS+= -UDBE -UXRECORD -UPRESENT 79 1.1 tsutsui CPPFLAGS+= -UXFree86LOADER -UXF86VIDMODE -UXFreeXDGA -UXF86MISC \ 80 1.1 tsutsui -UXF86DRI -UXF86BIGFONT 81 1.1 tsutsui 82 1.1 tsutsui .include "../../../Makefile.Xserver" 83 1.1 tsutsui 84 1.1 tsutsui LDADD+= ${LDADD.dix} \ 85 1.1 tsutsui ${LDADD.fb} \ 86 1.1 tsutsui ${LDADD.mi} \ 87 1.1 tsutsui ${LDADD.xkb} \ 88 1.1 tsutsui ${LDADD.xkbstubs} \ 89 1.1 tsutsui ${LDADD.randr} \ 90 1.1 tsutsui ${LDADD.Xext} \ 91 1.1 tsutsui ${LDADD.composite} \ 92 1.1 tsutsui ${LDADD.render} \ 93 1.1 tsutsui ${LDADD.os} \ 94 1.1 tsutsui ${LDADD.xfixes} \ 95 1.1 tsutsui ${LDADD.damageext} \ 96 1.1 tsutsui ${LDADD.miext/damage} \ 97 1.1 tsutsui ${LDADD.miext/sync} \ 98 1.6 tsutsui ${LDADD.dri3} \ 99 1.1 tsutsui ${LDADD.Xi} \ 100 1.1 tsutsui -lXfont2 \ 101 1.1 tsutsui -lpixman-1 \ 102 1.9 tsutsui -lXdmcp \ 103 1.9 tsutsui -lXau \ 104 1.1 tsutsui -lX11 \ 105 1.1 tsutsui -lz \ 106 1.1 tsutsui -lm 107 1.1 tsutsui 108 1.1 tsutsui DPADD+= ${LDADD.dix} \ 109 1.1 tsutsui ${DPADD.fb} \ 110 1.1 tsutsui ${DPADD.mi} \ 111 1.1 tsutsui ${DPADD.xkb} \ 112 1.1 tsutsui ${DPADD.randr} \ 113 1.1 tsutsui ${DPADD.Xext} \ 114 1.1 tsutsui ${DPADD.composite} \ 115 1.1 tsutsui ${DPADD.render} \ 116 1.1 tsutsui ${DPADD.os} \ 117 1.1 tsutsui ${DPADD.xfixes} \ 118 1.1 tsutsui ${DPADD.damageext} \ 119 1.1 tsutsui ${DPADD.miext/damage} \ 120 1.1 tsutsui ${DPADD.miext/sync} \ 121 1.6 tsutsui ${DPADD.dri3} \ 122 1.1 tsutsui ${DPADD.Xi} \ 123 1.1 tsutsui ${LIBXFONT2} \ 124 1.1 tsutsui ${LIBPIXMAN-1} \ 125 1.9 tsutsui ${LIBXDMCP} \ 126 1.9 tsutsui ${LIBXAU} \ 127 1.1 tsutsui ${LIBX11} \ 128 1.1 tsutsui ${LIBZ} \ 129 1.1 tsutsui ${LIBM} 130 1.1 tsutsui 131 1.1 tsutsui .include <bsd.x11.mk> 132 1.1 tsutsui .include <bsd.prog.mk> 133