Makefile.am 5.64 KB
Newer Older
Daniel Stone's avatar
Daniel Stone committed
1
2
3
4
module_LTLIBRARIES = libxf1bpp.la

sdk_HEADERS = xf1bpp.h mfbmap.h mfbunmap.h

5
6
libxf1bpp_la_LDFLAGS = -avoid-version

Daniel Stone's avatar
Daniel Stone committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
libxf1bppgen_a_SOURCES = \
        mfbseg.c \
        mfbpgbwht.c \
        mfbpgbblak.c \
        mfbpgbinv.c \
        mfbigbwht.c \
        mfbigbblak.c \
        mfbpawhite.c \
        mfbpablack.c \
        mfbpainv.c \
        mfbtewhite.c \
        mfbteblack.c \
        mfbplywhite.c \
        mfbplyblack.c \
        mfbplyinv.c \
        mfbbltC.c \
        mfbbltX.c \
        mfbbltCI.c \
        mfbbltO.c \
        mfbbltG.c \
        mfbtileC.c \
        mfbtileG.c

libxf1bppmfb_a_SOURCES = \
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
        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)
Daniel Stone's avatar
Daniel Stone committed
59

60
61
libxf1bpp_la_SOURCES = $(libxf1bppmfb_a_SOURCES) $(libxf1bppgen_a_SOURCES) \
        mfbmodule.c
Daniel Stone's avatar
Daniel Stone committed
62

63
AM_CFLAGS = -DXF86MONO $(DIX_CFLAGS) $(XORG_CFLAGS)
Daniel Stone's avatar
Daniel Stone committed
64
INCLUDES = $(XORG_INCS) -I$(top_srcdir)/mfb
Daniel Stone's avatar
Daniel Stone committed
65
66
67

mfbseg.c:
	echo "#define POLYSEGMENT" > $@
68
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
69
70
71
72
	echo "#include \"$(top_srcdir)/mfb/mfbline.c\"" >> $@
mfbpgbwht.c:
	echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltWhite" > $@
	echo "#define OPEQ |=" >> $@
73
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
74
75
76
77
	echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@
mfbpgbblak.c:
	echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltBlack" > $@
	echo "#define OPEQ &=~" >> $@
78
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
79
80
81
82
	echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@
mfbpgbinv.c:
	echo "#define MFBPOLYGLYPHBLT xf1bppPolyGlyphBltInvert" > $@
	echo "#define OPEQ ^=" >> $@
83
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
84
85
86
87
	echo "#include \"$(top_srcdir)/mfb/mfbplygblt.c\"" >> $@
mfbigbwht.c:
	echo "#define MFBIMAGEGLYPHBLT xf1bppImageGlyphBltWhite" > $@
	echo "#define OPEQ |=" >> $@
88
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
89
90
91
92
	echo "#include \"$(top_srcdir)/mfb/mfbimggblt.c\"" >> $@
mfbigbblak.c:
	echo "#define MFBIMAGEGLYPHBLT xf1bppImageGlyphBltBlack" > $@
	echo "#define OPEQ &=~" >> $@
93
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
94
95
96
97
98
99
	echo "#include \"$(top_srcdir)/mfb/mfbimggblt.c\"" >> $@
mfbpawhite.c:
	echo "#define MFBSOLIDFILLAREA xf1bppSolidWhiteArea" > $@
	echo "#define MFBSTIPPLEFILLAREA xf1bppStippleWhiteArea" >> $@
	echo "#define OPEQ |=" >> $@
	echo "#define EQWHOLEWORD =~0" >> $@
100
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
101
102
103
104
105
106
	echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@
mfbpablack.c:
	echo "#define MFBSOLIDFILLAREA xf1bppSolidBlackArea" > $@
	echo "#define MFBSTIPPLEFILLAREA xf1bppStippleBlackArea" >> $@
	echo "#define OPEQ &=~" >> $@
	echo "#define EQWHOLEWORD =0" >> $@
107
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
108
109
110
111
112
113
	echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@
mfbpainv.c:
	echo "#define MFBSOLIDFILLAREA xf1bppSolidInvertArea" > $@
	echo "#define MFBSTIPPLEFILLAREA xf1bppStippleInvertArea" >> $@
	echo "#define OPEQ ^=" >> $@
	echo "#define EQWHOLEWORD ^=~0" >> $@
114
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
115
116
117
118
119
	echo "#include \"$(top_srcdir)/mfb/mfbpntarea.c\"" >> $@
mfbtewhite.c:
	echo "#define OP" > $@
	echo "#define CLIPTETEXT xf1bppImageGlyphBltWhite" >> $@
	echo "#define MFBTEGLYPHBLT xf1bppTEGlyphBltWhite" >> $@
120
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
121
122
123
124
125
	echo "#include \"$(top_srcdir)/mfb/mfbtegblt.c\"" >> $@
mfbteblack.c:
	echo "#define OP ~" > $@
	echo "#define CLIPTETEXT xf1bppImageGlyphBltBlack" >> $@
	echo "#define MFBTEGLYPHBLT xf1bppTEGlyphBltBlack" >> $@
126
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
127
128
129
130
131
	echo "#include \"$(top_srcdir)/mfb/mfbtegblt.c\"" >> $@
mfbplywhite.c:
	echo "#define MFBFILLPOLY1RECT xf1bppFillPolyWhite" > $@
	echo "#define OPEQ |=" >> $@
	echo "#define EQWHOLEWORD =~0" >> $@
132
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
133
134
135
136
137
	echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@
mfbplyblack.c:
	echo "#define MFBFILLPOLY1RECT xf1bppFillPolyBlack" > $@
	echo "#define OPEQ &=~" >> $@
	echo "#define EQWHOLEWORD =0" >> $@
138
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
139
140
141
142
143
	echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@
mfbplyinv.c:
	echo "#define MFBFILLPOLY1RECT xf1bppFillPolyInvert" > $@
	echo "#define OPEQ ^=" >> $@
	echo "#define EQWHOLEWORD ^=~0" >> $@
144
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
145
146
147
	echo "#include \"$(top_srcdir)/mfb/mfbply1rct.c\"" >> $@
mfbbltC.c:
	echo "#define MROP Mcopy" > $@
148
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
149
150
151
	echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@
mfbbltX.c:
	echo "#define MROP Mxor" > $@
152
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
153
154
155
	echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@
mfbbltCI.c:
	echo "#define MROP McopyInverted" > $@
156
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
157
158
159
	echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@
mfbbltO.c:
	echo "#define MROP Mor" > $@
160
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
161
162
163
	echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@
mfbbltG.c:
	echo "#define MROP M0" > $@
164
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
165
166
167
	echo "#include \"$(top_srcdir)/mfb/mfbblt.c\"" >> $@
mfbtileC.c:
	echo "#define MROP Mcopy" > $@
168
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
169
170
171
	echo "#include \"$(top_srcdir)/mfb/mfbtile.c\"" >> $@
mfbtileG.c:
	echo "#define MRop M0" > $@
172
	echo "#include \"mfbmap.h\"" >> $@
Daniel Stone's avatar
Daniel Stone committed
173
	echo "#include \"$(top_srcdir)/mfb/mfbtile.c\"" >> $@
Kristian Høgsberg's avatar
Kristian Høgsberg committed
174

175
$(libxf1bppmfb_a_SOURCES):
176
177
	echo "#include \"mfbmap.h\"" > $$i ; \
	echo "#include \"$(top_srcdir)/mfb/$$i\"" >> $$i ; \
178

Kristian Høgsberg's avatar
Kristian Høgsberg committed
179
EXTRA_DIST = mfbmap.sh mfbunmap.sh