blob: 65b6ed809eabee96900499238f867cb9cb319666 (
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
|
# Makefile for Win32
#
# NOTE: the install target may overwrite important files in the system dirs
# Sept 12, 2001
# Windows driver not working. OSMesa driver works.
#
!include <win32.mak>
TOP = ..
SUBDIRS = osmesa.dir
CORE_SRCS = \
tnl\t_array_api.c \
tnl\t_array_import.c \
tnl\t_context.c \
tnl\t_eval_api.c \
tnl\t_imm_alloc.c \
tnl\t_imm_api.c \
tnl\t_imm_debug.c \
tnl\t_imm_dlist.c \
tnl\t_imm_elt.c \
tnl\t_imm_eval.c \
tnl\t_imm_exec.c \
tnl\t_imm_fixup.c \
tnl\t_pipeline.c \
tnl\t_vb_fog.c \
tnl\t_vb_light.c \
tnl\t_vb_normals.c \
tnl\t_vb_points.c \
tnl\t_vb_render.c \
tnl\t_vb_texgen.c \
tnl\t_vb_texmat.c \
tnl\t_vb_vertex.c \
swrast_setup\ss_context.c \
swrast_setup\ss_triangle.c \
swrast_setup\ss_vb.c \
api_loopback.c \
api_noop.c \
api_validate.c \
accum.c \
attrib.c \
blend.c \
buffers.c \
clip.c \
colortab.c \
config.c \
context.c \
convolve.c \
debug.c \
depth.c \
dispatch.c \
dlist.c \
drawpix.c \
enable.c \
enums.c \
eval.c \
extensions.c \
feedback.c \
fog.c \
get.c \
glapi.c \
glthread.c \
hash.c \
highpc.c \
hint.c \
histogram.c \
image.c \
imports.c \
light.c \
lines.c \
lowpc.c \
matrix.c \
mem.c \
mmath.c \
pixel.c \
points.c \
polygon.c \
rastpos.c \
state.c \
stencil.c \
teximage.c \
texformat.c \
texobj.c \
texstate.c \
texstore.c \
texutil.c \
varray.c \
vtxfmt.c \
# X86\x86.c \
# X86\common_x86.c \
# X86\3dnow.c \
# X86\sse.c \
math\m_debug_norm.c \
math\m_debug_vertex.c \
math\m_debug_xform.c \
math\m_eval.c \
math\m_matrix.c \
math\m_translate.c \
math\m_vector.c \
math\m_vertices.c \
math\m_xform.c \
array_cache\ac_context.c \
array_cache\ac_import.c \
swrast\s_aaline.c \
swrast\s_aatriangle.c \
swrast\s_accum.c \
swrast\s_alpha.c \
swrast\s_alphabuf.c \
swrast\s_bitmap.c \
swrast\s_blend.c \
swrast\s_buffers.c \
swrast\s_copypix.c \
swrast\s_context.c \
swrast\s_depth.c \
swrast\s_drawpix.c \
swrast\s_feedback.c \
swrast\s_fog.c \
swrast\s_histogram.c \
swrast\s_imaging.c \
swrast\s_lines.c \
swrast\s_logic.c \
swrast\s_masking.c \
swrast\s_pb.c \
swrast\s_pixeltex.c \
swrast\s_points.c \
swrast\s_readpix.c \
swrast\s_scissor.c \
swrast\s_span.c \
swrast\s_stencil.c \
swrast\s_texstore.c \
swrast\s_texture.c \
swrast\s_triangle.c \
swrast\s_zoom.c
DRIVER_SRCS = \
Trace\tr_context.c \
Trace\tr_control.c \
Trace\tr_error.c \
Trace\tr_support.c \
Trace\tr_wrapper.c \
Trace\tr_write.c \
Windows\wgl.c \
Windows\wmesa.c
ASM_SRCS =
SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
all : mesadll $(SUBDIRS)
!include "$(TOP)/mesawin32.mak"
mesadll : $(MESADLL)
CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
LFLAGS = $(dlllflags) $(LFLAGS)
OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
LIBS = winmm.lib $(guilibsdll)
$(MESADLL) : $(OBJS) mesa.def
$(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
@echo "copying Mesa dynamic link library to lib directory..."
-copy $(MESADLL) ..\lib
@echo "copying Mesa import library to lib directory..."
-copy $(MESALIB) ..\lib
$(SUBDIRS) :
@echo.
@echo Making in $* directory
@cd $*
@nmake -f Makefile.win -nologo
@cd ..
install : $(MESADLL)
@echo.
@echo "copying Mesa dynamic link library to system directory..."
-copy $(MESADLL) $(DLLINSTALL)
@echo "copying Mesa header files to include directory..."
-copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
-copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
@echo "copying Mesa import library to library directory..."
-copy $(MESALIB) $(LIBINSTALL)
clean ::
@del /f tnl\*.obj
@del /f swrast_setup\*.obj
@del /f math\*.obj
@del /f array_cache\*.obj
@del /f swrast\*.obj
@del /f Trace\*.obj
@del /f osmesa\*.obj
@del /f Windows\*.obj
clobber ::
@del /f OSmesa\*.lib
# override default inference rule with one that writes the object to
# the same subdir that the c file is in.
.c.obj :
$(cc) $(CFLAGS) -I. $< /Fo$*.obj
|