summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/i810/Imakefile
blob: 0b0bad1b35bd5d4b92e4deee96c7737ca9fcc176 (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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.9 2000/08/25 13:42:19 dawes Exp $

#include <Threads.tmpl>

#define DoNormalLib NormalLibGlx
#define DoSharedLib SharedLibGlx
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx

#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

#if BuildXF86DRI
  DRI_DEFINES = GlxDefines -DDRIVERTS
 DRI_INCLUDES = -I../../../../dri -I../../../../glx \
		-I../../../dri \
		-I$(TOP)/include -I$(TOP)/include/GL \
		-I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri \
		-I$(XF86DRIVERSRC)/i810  \
		-I../../../include -I../.. -I../common -I../../X
#endif

MESA_INCLUDES = -I. -I.. -I../../include \
		-I../../../../dri/drm


      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES)
     INCLUDES = -I$(XLIBSRC) -I$(EXTINCSRC) $(MESA_INCLUDES) $(DRI_INCLUDES) 

      DRISRCS = ../../../dri/dri_mesa.c \
		../../../../dri/dri_tmm.c

      DRIOBJS = ../../../dri/dri_mesa.o \
		../../../../dri/dri_tmm.o

      DRMSRCS = ../../../../dri/drm/xf86drm.c \
		../../../../dri/drm/xf86drmHash.c \
		../../../../dri/drm/xf86drmRandom.c \
		../../../../dri/drm/xf86drmSL.c

      DRMOBJS = ../../../../dri/drm/xf86drm.o \
		../../../../dri/drm/xf86drmHash.o \
		../../../../dri/drm/xf86drmRandom.o \
		../../../../dri/drm/xf86drmSL.o

#ifdef GlxSoProf
       HIOBJS = ../../../../highpc.o
       LOOBJS = ../../../../lowpc.o
#else
       HIOBJS = 
       LOOBJS =
#endif

     I810SRCS = i810_xmesa.c	\
		i810dd.c  	\
		i810pipeline.c i810span.c i810state.c	\
		i810tex.c i810tris.c i810vb.c i810fastpath.c i810ioctl.c

     I810OBJS = i810_xmesa.o \
		i810dd.o  		\
		i810pipeline.o i810span.o i810state.o	\
		i810tex.o i810tris.o i810vb.o i810fastpath.o i810ioctl.o

     MESASRCS = ../../aatriangle.c \
		../../accum.c \
		../../alpha.c \
		../../alphabuf.c \
		../../attrib.c \
		../../bbox.c \
		../../bitmap.c \
		../../blend.c \
		../../buffers.c \
		../../clip.c \
		../../colortab.c \
		../../config.c \
		../../context.c \
		../../copypix.c \
		../../cva.c \
		../../debug_xform.c \
		../../depth.c \
		../../dlist.c \
		../../drawpix.c \
		../../enable.c \
		../../enums.c \
		../../eval.c \
		../../extensions.c \
		../../feedback.c \
		../../fog.c \
		../../get.c \
		../../glapi.c \
		../../glapinoop.c \
		../../glthread.c \
		../../hash.c \
		../../image.c \
		../../imaging.c \
		../../light.c \
		../../lines.c \
		../../logic.c \
		../../masking.c \
		../../matrix.c \
		../../mem.c \
		../../mmath.c \
		../../pb.c \
		../../pipeline.c \
		../../pixel.c \
		../../pixeltex.c \
		../../points.c \
		../../polygon.c \
		../../quads.c \
		../../rastpos.c \
		../../readpix.c \
		../../rect.c \
		../../scissor.c \
		../../shade.c \
		../../span.c \
		../../stages.c \
		../../state.c \
		../../stencil.c \
		../../teximage.c \
		../../texobj.c \
		../../texstate.c \
		../../texture.c \
		../../texutil.c \
		../../translate.c \
		../../triangle.c \
		../../varray.c \
		../../vb.c \
		../../vbcull.c \
		../../vbfill.c \
		../../vbindirect.c \
		../../vbrender.c \
		../../vbxform.c \
		../../vector.c \
		../../vertices.c \
		../../winpos.c \
		../../xform.c \
		../../zoom.c

     MESAOBJS = ../../aatriangle.o \
		../../accum.o \
		../../alpha.o \
		../../alphabuf.o \
		../../attrib.o \
		../../bbox.o \
		../../bitmap.o \
		../../blend.o \
		../../buffers.o \
		../../clip.o \
		../../colortab.o \
		../../config.o \
		../../context.o \
		../../copypix.o \
		../../cva.o \
		../../debug_xform.o \
		../../depth.o \
		../../dlist.o \
		../../drawpix.o \
		../../enable.o \
		../../enums.o \
		../../eval.o \
		../../extensions.o \
		../../feedback.o \
		../../fog.o \
		../../get.o \
		../../hash.o \
		../../hint.o \
		../../image.o \
		../../imaging.o \
		../../light.o \
		../../lines.o \
		../../logic.o \
		../../masking.o \
		../../matrix.o \
		../../mem.o \
		../../mmath.o \
		../../pb.o \
		../../pipeline.o \
		../../pixel.o \
		../../pixeltex.o \
		../../points.o \
		../../polygon.o \
		../../quads.o \
		../../rastpos.o \
		../../readpix.o \
		../../rect.o \
		../../scissor.o \
		../../shade.o \
		../../span.o \
		../../stages.o \
		../../state.o \
		../../stencil.o \
		../../teximage.o \
		../../texobj.o \
		../../texstate.o \
		../../texture.o \
		../../texutil.o \
		../../translate.o \
		../../triangle.o \
		../../varray.o \
		../../vb.o \
		../../vbcull.o \
		../../vbfill.o \
		../../vbindirect.o \
		../../vbrender.o \
		../../vbxform.o \
		../../vector.o \
		../../vertices.o \
		../../winpos.o \
		../../xform.o \
		../../zoom.o

#ifdef i386Architecture
     X86_SRCS = ../../X86/x86.c \
		../../X86/x86a.S \
		../../X86/common_x86.c \
		../../X86/common_x86asm.S \
		../../X86/vertex.S

     X86_OBJS = ../../X86/x86.o \
		../../X86/x86a.o \
		../../X86/common_x86.o \
		../../X86/common_x86asm.o \
		../../X86/vertex.o

     MMX_SRCS = ../../X86/mmx_blend.S

     MMX_OBJS = ../../X86/mmx_blend.o

XCOMM Disabling 3Dnow code for the time being.
#if 0
   3DNOW_SRCS = ../../X86/3dnow.c \
		../../X86/3dnow_norm_raw.S \
		../../X86/3dnow_xform_masked1.S \
		../../X86/3dnow_xform_masked2.S \
		../../X86/3dnow_xform_masked3.S \
		../../X86/3dnow_xform_masked4.S \
		../../X86/3dnow_xform_raw1.S \
		../../X86/3dnow_xform_raw2.S \
		../../X86/3dnow_xform_raw3.S \
		../../X86/3dnow_xform_raw4.S \
		../../X86/vertex_3dnow.S

   3DNOW_OBJS = ../../X86/3dnow.o \
		../../X86/3dnow_norm_raw.o \
		../../X86/3dnow_xform_masked1.o \
		../../X86/3dnow_xform_masked2.o \
		../../X86/3dnow_xform_masked3.o \
		../../X86/3dnow_xform_masked4.o \
		../../X86/3dnow_xform_raw1.o \
		../../X86/3dnow_xform_raw2.o \
		../../X86/3dnow_xform_raw3.o \
		../../X86/3dnow_xform_raw4.o \
		../../X86/vertex_3dnow.o
#endif

#endif

      ASMSRCS = $(X86_SRCS) $(MMX_SRCS) $(3DNOW_SRCS)
      ASMOBJS = $(X86_OBJS) $(MMX_OBJS) $(3DNOW_OBJS)

      COMMONSRCS = ../common/mm.c ../common/hwlog.c
      COMMONOBJS = ../common/mm.o ../common/hwlog.o

         SRCS = $(LOSRCS) $(DRISRCS) $(DRMSRCS) $(MESASRCS) $(ASMSRCS)	\
		$(COMMONSRCS) $(I810SRCS) $(HISRCS)
         OBJS = $(LOOBJS) $(DRIOBJS) $(DRMOBJS) $(MESAOBJS) $(ASMOBJS)	\
		$(COMMONOBJS) $(I810OBJS) $(HIOBJS)

REQUIREDLIBS += -lm
#if !GlxBuiltInI810
REQUIREDLIBS += -L../../../.. -lGL
#endif


#if !GlxUseBuiltInDRIDriver
#undef DoNormalLib NormalLibGlx
#undef DoExtraLib SharedLibGlx
#undef DoDebugLib DebugLibGlx
#undef DoProfileLib ProfileLibGlx
#endif

#include <Library.tmpl>

LibraryObjectRule()

SubdirLibraryRule($(OBJS))
NormalLintTarget($(SRCS))

#if !GlxUseBuiltInDRIDriver
LIBNAME = i810_dri.so
ALL_OBJS = $(OBJS)
ALL_DEPS = DONE
SharedDepModuleTarget($(LIBNAME),$(ALL_DEPS),$(ALL_OBJS))
InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri)

#ifdef GlxSoProf
SOPROF_LIBNAME = _i810_dri_p
NormalDepLibraryTarget($(SOPROF_LIBNAME),$(ALL_DEPS),$(ALL_OBJS))
InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri)
#endif
#endif



DependTarget()