From ea0dd22e5d65eae8f7df3f14beabe175f97ddaeb Mon Sep 17 00:00:00 2001 From: lukem Date: Thu, 8 Jan 2004 04:20:27 +0000 Subject: [PATCH] Build xf1bpp. (from rtr@, with tweaks by me) --- x11/Xserver/hw/xfree86/Makefile | 10 ++- x11/Xserver/hw/xfree86/xf1bpp/Makefile | 109 +++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 x11/Xserver/hw/xfree86/xf1bpp/Makefile diff --git a/x11/Xserver/hw/xfree86/Makefile b/x11/Xserver/hw/xfree86/Makefile index 84e0684b8105..58e177919abe 100644 --- a/x11/Xserver/hw/xfree86/Makefile +++ b/x11/Xserver/hw/xfree86/Makefile @@ -1,10 +1,12 @@ -# $NetBSD: Makefile,v 1.7 2004/01/08 03:31:54 rtr Exp $ +# $NetBSD: Makefile,v 1.8 2004/01/08 04:20:27 lukem Exp $ XTODO= xf1bpp -SUBDIR= ddc doc drivers dummy etc fbdevhw i2c input int10 loader pcidata \ - rac ramdac scanpci shadowfb vbe vgahw xaa xf24_32bpp xf4bpp xf86 \ - xf86_os xf86config xf8_16bpp xf8_32bpp xloader \ +SUBDIR= ddc doc drivers dummy etc fbdevhw \ + i2c input int10 loader pcidata \ + rac ramdac scanpci shadowfb vbe vgahw \ + xaa xf1bpp xf24_32bpp xf4bpp xf86 xf86_os \ + xf86config xf8_16bpp xf8_32bpp xloader \ .WAIT \ bin diff --git a/x11/Xserver/hw/xfree86/xf1bpp/Makefile b/x11/Xserver/hw/xfree86/xf1bpp/Makefile new file mode 100644 index 000000000000..aedda8bb0092 --- /dev/null +++ b/x11/Xserver/hw/xfree86/xf1bpp/Makefile @@ -0,0 +1,109 @@ +# $NetBSD: Makefile,v 1.1 2004/01/08 04:20:27 lukem Exp $ + +XMODULEDIR= ${X11USRLIBDIR}/modules + +.include "../../../Makefile.serverlib" + +.include + +LIB= xf1bpp +.PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/${LIB} +SRCS= maskbits.c mfbbitblt.c mfbbltC.c mfbbltCI.c mfbbltG.c mfbbltO.c \ + mfbbltX.c mfbbres.c mfbbresd.c mfbbstore.c mfbclip.c mfbcmap.c \ + mfbfillarc.c mfbfillrct.c mfbfillsp.c mfbfont.c mfbgc.c mfbgetsp.c \ + mfbhrzvert.c mfbigbblak.c mfbigbwht.c mfbimage.c mfbline.c mfbmisc.c \ + mfbmodule.c mfbpablack.c mfbpainv.c mfbpawhite.c mfbpgbblak.c \ + mfbpgbinv.c mfbpgbwht.c mfbpixmap.c mfbplyblack.c mfbplyinv.c \ + mfbplywhite.c mfbpntwin.c mfbpolypnt.c mfbpushpxl.c mfbscrclse.c \ + mfbscrinit.c mfbseg.c mfbsetsp.c mfbteblack.c mfbtewhite.c mfbtileC.c \ + mfbtileG.c mfbwindow.c mfbzerarc.c + +XSERVERINCDIR!= cd ${NETBSDSRCDIR}/x11/Xserver/include && ${PRINTOBJDIR} + +CPPFLAGS+= -I${X11SRCDIR.xc} \ + -I${X11SRCDIR.xc}/include/fonts \ + -I${X11SRCDIR.xc}/programs/Xserver/mfb \ + -I${X11SRCDIR.xc}/programs/Xserver/mi \ + -I${X11SRCDIR.xc}/programs/Xserver/include \ + -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/${LIB} \ + -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/common \ + -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86 \ + -I${DESTDIR}${X11INCDIR}/X11 \ + -I${XSERVERINCDIR} + +CPPFLAGS.mfbbltC.c= -DMROP=Mcopy +CPPFLAGS.mfbbltCI.c= -DMROP=McopyInverted +CPPFLAGS.mfbbltG.c= -DMROP=0 +CPPFLAGS.mfbbltX.c= -DMROP=Mxor +CPPFLAGS.mfbigbblak.c= -DMFBIMAGEGLYPHBLT=mfbImageGlyphBltBlack -DOPEQ=\&=\~ +CPPFLAGS.mfbigbwht.c= -DMFBIMAGEGLYPHBLT=mfbImageGlyphBltWhite -DOPEQ=\|= +CPPFLAGS.mfbpablack.c= -DMFBSOLIDFILLAREA=mfbSolidBlackArea \ + -DMFBSTIPPLEFILLAREA=mfbStippleBlackArea \ + -DOPEQ=\&=\~ -DEQWHOLEWORD=\=0 +CPPFLAGS.mfbpainv.c= -DMFBSOLIDFILLAREA=mfbSolidInvertArea \ + -DMFBSTIPPLEFILLAREA=mfbStippleInvertArea \ + -DOPEQ=\^= -DEQWHOLEWORD=\^=\~0 +CPPFLAGS.mfbpawhite.c= -DMFBSOLIDFILLAREA=mfbSolidWhiteArea \ + -DMFBSTIPPLEFILLAREA=mfbStippleWhiteArea -DOPEQ=\|= \ + -DEQWHOLEWORD=\=\~0 +CPPFLAGS.mfbpgbblak.c= -DMFBPOLYGLYPHBLT=mfbPolyGlyphBltBlack -DOPEQ=\&=\~ +CPPFLAGS.mfbpgbinv.c= -DMFBPOLYGLYPHBLT=mfbPolyGlyphBltInvert -DOPEQ=\^= +CPPFLAGS.mfbpgbwht.c= -DMFBPOLYGLYPHBLT=mfbPolyGlyphBltWhite -DOPEQ=\|= +CPPFLAGS.mfbplyblack.c= -DMFBFILLPOLY1RECT=mfbFillPolyBlack -DOPEQ=\&=\~ \ + -DEQWHOLEWORD=\=0 +CPPFLAGS.mfbplyinv.c= -DMFBFILLPOLY1RECT=mfbFillPolyInvert -DOPEQ=\^= \ + -DEQWHOLEWORD=\^=\~0 +CPPFLAGS.mfbplywhite.c= -DMFBFILLPOLY1RECT=mfbFillPolyWhite -DOPEQ=\|= \ + -DEQWHOLEWORD=\=\~0 +CPPFLAGS.mfbseg.c= -DPOLYSEGMENT +CPPFLAGS.mfbteblack.c= -DMFBTEGLYPHBLT=mfbTEGlyphBltBlack -DOP=\~ \ + -DCLIPTETEXT=mfbImageGlyphBltBlack +CPPFLAGS.mfbtewhite.c= -DMFBTEGLYPHBLT=mfbTEGlyphBltWhite -DOP= \ + -DCLIPTETEXT=mfbImageGlyphBltWhite +CPPFLAGS.mfbtileC.c= -DMROP=Mcopy +CPPFLAGS.mfbtileG.c= -DMROP=0 + +BUILDSYMLINKS= mfbline.c mfbseg.c \ + mfbplygblt.c mfbpgbwht.c \ + mfbplygblt.c mfbpgbblak.c \ + mfbplygblt.c mfbpgbinv.c \ + mfbimggblt.c mfbigbwht.c \ + mfbimggblt.c mfbigbblak.c \ + mfbpntarea.c mfbpawhite.c \ + mfbpntarea.c mfbpablack.c \ + mfbpntarea.c mfbpainv.c \ + mfbtegblt.c mfbtewhite.c \ + mfbtegblt.c mfbteblack.c \ + mfbply1rct.c mfbplywhite.c \ + mfbply1rct.c mfbplyblack.c \ + mfbply1rct.c mfbplyinv.c \ + mfbblt.c mfbbltC.c \ + mfbblt.c mfbbltX.c \ + mfbblt.c mfbbltCI.c \ + mfbblt.c mfbbltO.c \ + mfbblt.c mfbbltG.c \ + mfbtile.c mfbtileC.c \ + mfbtile.c mfbtileG.c + +GENSRCS= maskbits.c mfbbitblt.c mfbblt.c mfbbres.c mfbbresd.c \ + mfbbstore.c mfbclip.c mfbcmap.c mfbfillarc.c mfbfillrct.c \ + mfbfillsp.c mfbfont.c mfbgc.c mfbgetsp.c mfbhrzvert.c \ + mfbimage.c mfbimggblt.c mfbline.c mfbmisc.c mfbpixmap.c \ + mfbply1rct.c mfbplygblt.c mfbpntarea.c mfbpntwin.c \ + mfbpolypnt.c mfbpushpxl.c mfbscrclse.c mfbscrinit.c \ + mfbsetsp.c mfbtegblt.c mfbtile.c mfbwindow.c mfbzerarc.c + +.for f in ${GENSRCS} +CLEANFILES+= ${f} +${f}: ../../../mfb/${f} + ${_MKTARGET_CREATE} + rm -f ${.TARGET} + @( \ + echo '#include "mfbmap.h"' ; \ + echo '#include "../../../mfb/${f}"' ; \ + ) > ${.TARGET} +.endfor + +.include +LIBDIR= ${XMODULEDIR} +.include