From c329f0824caf6756041516cfee843fc6f6cd3f8a Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Mon, 7 May 2001 13:58:00 +0000 Subject: Initial new Win32 build support. More to come. --- src/mesa/main/Makefile.win | 182 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 src/mesa/main/Makefile.win (limited to 'src/mesa/main/Makefile.win') diff --git a/src/mesa/main/Makefile.win b/src/mesa/main/Makefile.win new file mode 100644 index 0000000000..3b3710a6c2 --- /dev/null +++ b/src/mesa/main/Makefile.win @@ -0,0 +1,182 @@ +# Makefile for Win32 + +!include + +TOP = .. + +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 \ + swrast_setup\ss_interp.c \ + api_loopback.c \ + api_noop.c \ + api_validate.c \ + accum.c \ + alpha.c \ + attrib.c \ + bitmap.c \ + blend.c \ + buffers.c \ + clip.c \ + colortab.c \ + config.c \ + context.c \ + convolve.c \ + copypix.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 \ + logic.c \ + lowpc.c \ + masking.c \ + matrix.c \ + mem.c \ + mmath.c \ + pixel.c \ + pixeltex.c \ + points.c \ + polygon.c \ + rastpos.c \ + readpix.c \ + scissor.c \ + state.c \ + stencil.c \ + teximage.c \ + texobj.c \ + texstate.c \ + texstore.c \ + texutil.c \ + varray.c \ + vtxfmt.c \ + winpos.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_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_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 + +ASM_SRCS = + +SRCS = $(CORE_SRCS) $(DRIVER_SRCS) + +OSMESA_SRCS = OSmesa\osmesa.c +OSMESA_OBJS = OSmesa\osmesa.obj + +all : mesadll install + +!include "$(TOP)/mesawin32.mak" + +mesadll : $(MESADLL) + +CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ +LFLAGS = $(dlllflags) $(LFLAGS) + +OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj) +LIBS = $(OPENGL) $(GLU) winmm.lib $(guilibsdll) + +$(MESADLL) : $(OBJS) mesa.def + $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS) + +#install : $(MESADLL) +# @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) +install : $(MESADLL) + @echo "copying Mesa dynamic link library to system directory..." + -copy $(MESADLL) $(TOP)\lib + @echo "copying Mesa import library to library directory..." + -copy $(MESALIB) $(TOP)\lib + +.c.obj : + $(cc) $(CFLAGS) -I. $< -- cgit v1.2.3