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
|
XCOMM $XFree86: xc/lib/GL/mesa/src/drv/via/Imakefile.inc,v 1.1 2001/03/23 19:18:43 dawes Exp $
#ifndef MesaDrvSrcDir
#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri
#endif
MESADRVSRCDIR = MesaDrvSrcDir
#ifndef MesaDrvViaBuildDir
#define MesaDrvViaBuildDir /**/
#endif
MESADRVVIABUILDDIR = MesaDrvViaBuildDir
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif
#if BuildXF86DRI
DRI_DEFINES = GlxDefines $(VIA_DEFINES) -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER
DRI_INCLUDES = -I$(GLXLIBSRC)/dri \
-I$(XINCLUDESRC) \
-I$(GLXLIBSRC)/glx \
-I$(GLXLIBSRC)/include \
-I$(SERVERSRC)/GL/dri \
-I$(XF86OSSRC) \
-I$(DRMSRCDIR)/shared-core \
-I$(XF86DRIVERSRC)/via \
-I$(GLXLIBSRC)/dri/drm
#endif
MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
-I$(MESASRCDIR)/src/mesa/main \
-I$(MESASRCDIR)/src/mesa/glapi \
-I$(MESASRCDIR)/src/mesa/shader \
-I$(MESASRCDIR)/include \
-I$(MESADRVSRCDIR)/common \
-I$(MESADRVSRCDIR)/unichrome
X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC)
#if 0
DEBUG_SRC = $(MESADRVVIABUILDDIR)via_debug.c
DEBUG_OBJ = $(MESADRVVIABUILDDIR)via_debug.o
DEBUG_UOBJ = $(MESADRVVIABUILDDIR)unshared/via_debug.o
DEBUG_DOBJ = $(MESADRVVIABUILDDIR)debugger/via_debug.o
DEBUG_POBJ = $(MESADRVVIABUILDDIR)profiled/via_debug.o
DEBUG_DEFINES += -DVIA_DUMP
#ifdef NeedToLinkMesaSrc
LinkSourceFile(via_debug.c, $(MESADRVSRCDIR)/unichrome)
#endif
#endif
VIASRCS = $(MESADRVVIABUILDDIR)via_context.c \
$(MESADRVVIABUILDDIR)via_fb.c \
$(MESADRVVIABUILDDIR)via_ioctl.c \
$(MESADRVVIABUILDDIR)via_render.c \
$(MESADRVVIABUILDDIR)via_screen.c \
$(MESADRVVIABUILDDIR)via_span.c \
$(MESADRVVIABUILDDIR)via_state.c \
$(MESADRVVIABUILDDIR)via_tex.c \
$(MESADRVVIABUILDDIR)via_texmem.c \
$(MESADRVVIABUILDDIR)via_texstate.c \
$(MESADRVVIABUILDDIR)via_tris.c \
$(MESADRVVIABUILDDIR)via_vb.c \
$(MESADRVVIABUILDDIR)xf86drmVIA.c \
$(DEBUG_SRC)
VIAOBJS =$(MESADRVVIABUILDDIR)via_context.o \
$(MESADRVVIABUILDDIR)via_fb.o \
$(MESADRVVIABUILDDIR)via_ioctl.o \
$(MESADRVVIABUILDDIR)via_render.o \
$(MESADRVVIABUILDDIR)via_screen.o \
$(MESADRVVIABUILDDIR)via_span.o \
$(MESADRVVIABUILDDIR)via_state.o \
$(MESADRVVIABUILDDIR)via_tex.o \
$(MESADRVVIABUILDDIR)via_texmem.o \
$(MESADRVVIABUILDDIR)via_texstate.o \
$(MESADRVVIABUILDDIR)via_tris.o \
$(MESADRVVIABUILDDIR)via_vb.o \
$(MESADRVVIABUILDDIR)xf86drmVIA.o \
$(DEBUG_OBJ)
VIAUOBJS =$(MESADRVVIABUILDDIR)/unshared/via_context.o \
$(MESADRVVIABUILDDIR)/unshared/via_fb.o \
$(MESADRVVIABUILDDIR)/unshared/via_ioctl.o \
$(MESADRVVIABUILDDIR)/unshared/via_render.o \
$(MESADRVVIABUILDDIR)/unshared/via_screen.o \
$(MESADRVVIABUILDDIR)/unshared/via_span.o \
$(MESADRVVIABUILDDIR)/unshared/via_state.o \
$(MESADRVVIABUILDDIR)/unshared/via_tex.o \
$(MESADRVVIABUILDDIR)/unshared/via_texmem.o \
$(MESADRVVIABUILDDIR)/unshared/via_texstate.o \
$(MESADRVVIABUILDDIR)/unshared/via_tris.o \
$(MESADRVVIABUILDDIR)/unshared/via_vb.o \
$(MESADRVVIABUILDDIR)/unshared/xf86drmVIA.o \
$(DEBUG_UOBJ)
VIADOBJS =$(MESADRVVIABUILDDIR)/debugger/via_context.o \
$(MESADRVVIABUILDDIR)/debugger/via_fb.o \
$(MESADRVVIABUILDDIR)/debugger/via_ioctl.o \
$(MESADRVVIABUILDDIR)/debugger/via_render.o \
$(MESADRVVIABUILDDIR)/debugger/via_screen.o \
$(MESADRVVIABUILDDIR)/debugger/via_span.o \
$(MESADRVVIABUILDDIR)/debugger/via_state.o \
$(MESADRVVIABUILDDIR)/debugger/via_tex.o \
$(MESADRVVIABUILDDIR)/debugger/via_texmem.o \
$(MESADRVVIABUILDDIR)/debugger/via_texstate.o \
$(MESADRVVIABUILDDIR)/debugger/via_tris.o \
$(MESADRVVIABUILDDIR)/debugger/via_vb.o \
$(MESADRVVIABUILDDIR)/debugger/xf86drmVIA.o \
$(DEBUG_DOBJ)
VIAPOBJS =$(MESADRVVIABUILDDIR)/profiled/via_context.o \
$(MESADRVVIABUILDDIR)/profiled/via_fb.o \
$(MESADRVVIABUILDDIR)/profiled/via_ioctl.o \
$(MESADRVVIABUILDDIR)/profiled/via_render.o \
$(MESADRVVIABUILDDIR)/profiled/via_screen.o \
$(MESADRVVIABUILDDIR)/profiled/via_span.o \
$(MESADRVVIABUILDDIR)/profiled/via_state.o \
$(MESADRVVIABUILDDIR)/profiled/via_tex.o \
$(MESADRVVIABUILDDIR)/profiled/via_texmem.o \
$(MESADRVVIABUILDDIR)/profiled/via_texstate.o \
$(MESADRVVIABUILDDIR)/profiled/via_tris.o \
$(MESADRVVIABUILDDIR)/profiled/via_vb.o \
$(MESADRVVIABUILDDIR)/profiled/xf86drmVIA.o \
$(DEBUG_POBJ)
#ifdef NeedToLinkMesaSrc
LinkSourceFile(via_3d_reg.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_context.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_dd_tritmp.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_dd_vbtmp.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_dmatmp.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_dri.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_fb.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_fb.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_ioctl.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_ioctl.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_render.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_screen.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_screen.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_span.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_span.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_state.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_state.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_tex.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_tex.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_texmem.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_texstate.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_tris.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_tris.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_vb.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_vb_cliptmp.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_vb.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(via_vb_rendertmp.h, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(xf86drmVIA.c, $(MESADRVSRCDIR)/unichrome)
LinkSourceFile(xf86drmVIA.h, $(MESADRVSRCDIR)/unichrome)
#endif
|