summaryrefslogtreecommitdiff
path: root/mfb/Makefile.am
blob: 274a32d7d8cb9edc3f7a901cb130ecf7d5790444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
noinst_LTLIBRARIES = libmfb.la

AM_CFLAGS = $(DIX_CFLAGS)

INCLUDES = -I$(top_srcdir)/hw/xfree86/os-support

libmfb_gen_sources = mfbseg.c mfbpgbwht.c mfbpgbblak.c mfbpgbinv.c mfbigbwht.c \
	 mfbigbblak.c mfbpawhite.c mfbpablack.c mfbpainv.c mfbtewhite.c \
	 mfbteblack.c mfbbltC.c mfbbltX.c mfbbltCI.c mfbbltO.c mfbbltG.c \
	 mfbtileC.c mfbtileG.c mfbplywhite.c mfbplyblack.c mfbplyinv.c

DISTCLEANFILES = $(libmfb_gen_sources)

libmfb_la_SOURCES = mfbgc.c mfbwindow.c mfbfont.c \
	 mfbfillrct.c maskbits.c mfbpixmap.c \
	 mfbimage.c mfbline.c mfbbres.c mfbhrzvert.c mfbbresd.c \
	 mfbpushpxl.c mfbzerarc.c mfbfillarc.c \
         mfbfillsp.c mfbsetsp.c mfbscrinit.c mfbscrclse.c mfbclip.c \
         mfbbitblt.c mfbgetsp.c mfbpolypnt.c \
	 mfbcmap.c mfbmisc.c $(libmfb_gen_sources)

EXTRA_DIST = maskbits.h mergerop.h fastblt.h mfbline.c mfbblt.c mfbtile.c \
             mfbplygblt.c mfbimggblt.c mfbpntarea.c mfbtegblt.c mfbply1rct.c

sdk_HEADERS = mfb.h

mfbseg.c:
	echo "#define POLYSEGMENT" > $@
	echo "#include \"$(srcdir)/mfbline.c\"" >> $@

mfbbltC.c:
	echo "#define MROP Mcopy" > $@
	echo "#include \"$(srcdir)/mfbblt.c\"" >> $@

mfbbltX.c:
	echo "#define MROP Mxor" > $@
	echo "#include \"$(srcdir)/mfbblt.c\"" >> $@

mfbbltCI.c:
	echo "#define MROP McopyInverted" > $@
	echo "#include \"$(srcdir)/mfbblt.c\"" >> $@

mfbbltO.c:
	echo "#define MROP Mor" > $@
	echo "#include \"$(srcdir)/mfbblt.c\"" >> $@

mfbbltG.c:
	echo "#define MROP 0" > $@
	echo "#include \"$(srcdir)/mfbblt.c\"" >> $@

mfbtileC.c:
	echo "#define MROP Mcopy" > $@
	echo "#include \"$(srcdir)/mfbtile.c\"" >> $@

mfbtileG.c:
	echo "#define MROP 0" > $@
	echo "#include \"$(srcdir)/mfbtile.c\"" >> $@

mfbpgbwht.c:
	echo "#define OPEQ MFB_OPEQ_WHITE" > $@
	echo "#define MFBPOLYGLYPHBLT mfbPolyGlyphBltWhite" >> $@
	echo "#include \"$(srcdir)/mfbplygblt.c\"" >> $@

mfbpgbblak.c:
	echo "#define OPEQ MFB_OPEQ_BLACK" > $@
	echo "#define MFBPOLYGLYPHBLT mfbPolyGlyphBltBlack" >> $@
	echo "#include \"$(srcdir)/mfbplygblt.c\"" >> $@

mfbpgbinv.c:
	echo "#define OPEQ MFB_OPEQ_INVERT" > $@
	echo "#define MFBPOLYGLYPHBLT mfbPolyGlyphBltInvert" >> $@
	echo "#include \"$(srcdir)/mfbplygblt.c\"" >> $@

mfbigbwht.c:
	echo "#define OPEQ MFB_OPEQ_WHITE" > $@
	echo "#define MFBIMAGEGLYPHBLT mfbImageGlyphBltWhite" >> $@
	echo "#include \"$(srcdir)/mfbimggblt.c\"" >> $@

mfbigbblak.c:
	echo "#define OPEQ MFB_OPEQ_BLACK" > $@
	echo "#define MFBIMAGEGLYPHBLT mfbImageGlyphBltBlack" >> $@
	echo "#include \"$(srcdir)/mfbimggblt.c\"" >> $@

mfbpawhite.c:
	echo "#define OPEQ MFB_OPEQ_WHITE" > $@
	echo "#define MFBSOLIDFILLAREA mfbSolidWhiteArea" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_WHITE" >> $@
	echo "#define MFBSTIPPLEFILLAREA mfbStippleWhiteArea" >> $@
	echo "#include \"$(srcdir)/mfbpntarea.c\"" >> $@

mfbpablack.c:
	echo "#define OPEQ MFB_OPEQ_BLACK" > $@
	echo "#define MFBSOLIDFILLAREA mfbSolidBlackArea" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_BLACK" >> $@
	echo "#define MFBSTIPPLEFILLAREA mfbStippleBlackArea" >> $@
	echo "#include \"$(srcdir)/mfbpntarea.c\"" >> $@

mfbpainv.c:
	echo "#define OPEQ MFB_OPEQ_INVERT" > $@
	echo "#define MFBSOLIDFILLAREA mfbSolidInvertArea" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_INVERT" >> $@
	echo "#define MFBSTIPPLEFILLAREA mfbStippleInvertArea" >> $@
	echo "#include \"$(srcdir)/mfbpntarea.c\"" >> $@

mfbtewhite.c:
	echo "#define OP MFB_OP_WHITE" > $@
	echo "#define MFBTEGLYPHBLT mfbTEGlyphBltWhite" >> $@
	echo "#define CLIPTETEXT mfbImageGlyphBltWhite" >> $@
	echo "#include \"$(srcdir)/mfbtegblt.c\"" >> $@

mfbteblack.c:
	echo "#define OP MFB_OP_BLACK" > $@
	echo "#define MFBTEGLYPHBLT mfbTEGlyphBltBlack" >> $@
	echo "#define CLIPTETEXT mfbImageGlyphBltBlack" >> $@
	echo "#include \"$(srcdir)/mfbtegblt.c\"" >> $@

mfbplywhite.c:
	echo "#define OPEQ MFB_OPEQ_WHITE" > $@
	echo "#define MFBFILLPOLY1RECT mfbFillPolyWhite" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_WHITE" >> $@
	echo "#include \"$(srcdir)/mfbply1rct.c\"" >> $@

mfbplyblack.c:
	echo "#define OPEQ MFB_OPEQ_BLACK" > $@
	echo "#define MFBFILLPOLY1RECT mfbFillPolyBlack" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_BLACK" >> $@
	echo "#include \"$(srcdir)/mfbply1rct.c\"" >> $@

mfbplyinv.c:
	echo "#define OPEQ MFB_OPEQ_INVERT" > $@
	echo "#define MFBFILLPOLY1RECT mfbFillPolyInvert" >> $@
	echo "#define EQWHOLEWORD MFB_EQWHOLEWORD_INVERT" >> $@
	echo "#include \"$(srcdir)/mfbply1rct.c\"" >> $@