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