diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-01-18 15:31:53 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-01-18 15:31:53 -0800 |
commit | 0f0c321adf2850b3d7aafe281362bfe424cb0ca1 (patch) | |
tree | ec812ffc313bd08dbccaf1898ec973c387b63538 /hw/xfree86/xf1bpp | |
parent | a811e92104028ae60ba69f73e32ee1e0533b088c (diff) |
Make xf1bpp build correctly with compilers that don't support -include
Diffstat (limited to 'hw/xfree86/xf1bpp')
-rw-r--r-- | hw/xfree86/xf1bpp/Makefile.am | 90 |
1 files changed, 59 insertions, 31 deletions
diff --git a/hw/xfree86/xf1bpp/Makefile.am b/hw/xfree86/xf1bpp/Makefile.am index e7c873ae8..6d510d1bd 100644 --- a/hw/xfree86/xf1bpp/Makefile.am +++ b/hw/xfree86/xf1bpp/Makefile.am @@ -27,128 +27,156 @@ libxf1bppgen_a_SOURCES = \ mfbtileC.c \ mfbtileG.c -DISTCLEANFILES = $(libxf1bppgen_a_SOURCES) - libxf1bppmfb_a_SOURCES = \ - $(top_srcdir)/mfb/maskbits.c \ - $(top_srcdir)/mfb/mfbbitblt.c \ - $(top_srcdir)/mfb/mfbbres.c \ - $(top_srcdir)/mfb/mfbbresd.c \ - $(top_srcdir)/mfb/mfbbstore.c \ - $(top_srcdir)/mfb/mfbclip.c \ - $(top_srcdir)/mfb/mfbcmap.c \ - $(top_srcdir)/mfb/mfbfillarc.c \ - $(top_srcdir)/mfb/mfbfillrct.c \ - $(top_srcdir)/mfb/mfbfillsp.c \ - $(top_srcdir)/mfb/mfbfont.c \ - $(top_srcdir)/mfb/mfbgc.c \ - $(top_srcdir)/mfb/mfbgetsp.c \ - $(top_srcdir)/mfb/mfbhrzvert.c \ - $(top_srcdir)/mfb/mfbimage.c \ - $(top_srcdir)/mfb/mfbline.c \ - $(top_srcdir)/mfb/mfbmisc.c \ - $(top_srcdir)/mfb/mfbpixmap.c \ - $(top_srcdir)/mfb/mfbpntwin.c \ - $(top_srcdir)/mfb/mfbpolypnt.c \ - $(top_srcdir)/mfb/mfbpushpxl.c \ - $(top_srcdir)/mfb/mfbscrclse.c \ - $(top_srcdir)/mfb/mfbscrinit.c \ - $(top_srcdir)/mfb/mfbsetsp.c \ - $(top_srcdir)/mfb/mfbwindow.c \ - $(top_srcdir)/mfb/mfbzerarc.c \ - mfbmodule.c + maskbits.c \ + mfbbitblt.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 \ + mfbline.c \ + mfbmisc.c \ + mfbpixmap.c \ + mfbpntwin.c \ + mfbpolypnt.c \ + mfbpushpxl.c \ + mfbscrclse.c \ + mfbscrinit.c \ + mfbsetsp.c \ + mfbwindow.c \ + mfbzerarc.c + +BUILT_SOURCES = $(libxf1bppgen_a_SOURCES) $(libxf1bppgen_a_SOURCES) -libxf1bpp_la_SOURCES = $(libxf1bppmfb_a_SOURCES) $(libxf1bppgen_a_SOURCES) +libxf1bpp_la_SOURCES = $(libxf1bppmfb_a_SOURCES) $(libxf1bppgen_a_SOURCES) \ + mfbmodule.c -AM_CFLAGS = -DXF86MONO -include mfbmap.h $(DIX_CFLAGS) $(XORG_CFLAGS) +AM_CFLAGS = -DXF86MONO $(DIX_CFLAGS) $(XORG_CFLAGS) INCLUDES = $(XORG_INCS) -I$(top_srcdir)/mfb mfbseg.c: echo "#define POLYSEGMENT" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbline.c\"" >> $@ mfbpgbwht.c: echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltWhite" > $@ echo "#define OPEQ |=" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@ mfbpgbblak.c: echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltBlack" > $@ echo "#define OPEQ &=~" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@ mfbpgbinv.c: echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltInvert" > $@ echo "#define OPEQ ^=" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@ mfbigbwht.c: echo "#define MFBIMAGEGLYPHBLT xf1bppImageGlyphBltWhite" > $@ echo "#define OPEQ |=" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbimggblt.c\"" >> $@ mfbigbblak.c: echo "#define MFBIMAGEGLYPHBLT xf1bppImageGlyphBltBlack" > $@ echo "#define OPEQ &=~" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbimggblt.c\"" >> $@ mfbpawhite.c: echo "#define MFBSOLIDFILLAREA xf1bppSolidWhiteArea" > $@ echo "#define MFBSTIPPLEFILLAREA xf1bppStippleWhiteArea" >> $@ echo "#define OPEQ |=" >> $@ echo "#define EQWHOLEWORD =~0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@ mfbpablack.c: echo "#define MFBSOLIDFILLAREA xf1bppSolidBlackArea" > $@ echo "#define MFBSTIPPLEFILLAREA xf1bppStippleBlackArea" >> $@ echo "#define OPEQ &=~" >> $@ echo "#define EQWHOLEWORD =0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@ mfbpainv.c: echo "#define MFBSOLIDFILLAREA xf1bppSolidInvertArea" > $@ echo "#define MFBSTIPPLEFILLAREA xf1bppStippleInvertArea" >> $@ echo "#define OPEQ ^=" >> $@ echo "#define EQWHOLEWORD ^=~0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@ mfbtewhite.c: echo "#define OP" > $@ echo "#define CLIPTETEXT xf1bppImageGlyphBltWhite" >> $@ echo "#define MFBTEGLYPHBLT xf1bppTEGlyphBltWhite" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbtegblt.c\"" >> $@ mfbteblack.c: echo "#define OP ~" > $@ echo "#define CLIPTETEXT xf1bppImageGlyphBltBlack" >> $@ echo "#define MFBTEGLYPHBLT xf1bppTEGlyphBltBlack" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbtegblt.c\"" >> $@ mfbplywhite.c: echo "#define MFBFILLPOLY1RECT xf1bppFillPolyWhite" > $@ echo "#define OPEQ |=" >> $@ echo "#define EQWHOLEWORD =~0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@ mfbplyblack.c: echo "#define MFBFILLPOLY1RECT xf1bppFillPolyBlack" > $@ echo "#define OPEQ &=~" >> $@ echo "#define EQWHOLEWORD =0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@ mfbplyinv.c: echo "#define MFBFILLPOLY1RECT xf1bppFillPolyInvert" > $@ echo "#define OPEQ ^=" >> $@ echo "#define EQWHOLEWORD ^=~0" >> $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@ mfbbltC.c: echo "#define MROP Mcopy" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@ mfbbltX.c: echo "#define MROP Mxor" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@ mfbbltCI.c: echo "#define MROP McopyInverted" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@ mfbbltO.c: echo "#define MROP Mor" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@ mfbbltG.c: echo "#define MROP M0" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@ mfbtileC.c: echo "#define MROP Mcopy" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbtile.c\"" >> $@ mfbtileG.c: echo "#define MRop M0" > $@ + echo "#include \"mfbmap.h\"" >> $@ echo "#include \"$(top_srcdir)/mfb/mfbtile.c\"" >> $@ +$(libxf1bppmfb_a_SOURCES): + for i in $(libxf1bppmfb_a_SOURCES) ; do \ + echo "#include \"mfbmap.h\"" > $$i ; \ + echo "#include \"$(top_srcdir)/mfb/$$i\"" >> $$i ; \ + done + + EXTRA_DIST = mfbmap.sh mfbunmap.sh |