From 5f3439916b74ed792ad12d1e614a2a5bc0a94b3a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 10 Jun 2003 19:06:20 +0000 Subject: fixes for x86 builds --- src/mesa/Makefile.X11 | 32 ++++++++++++++++---------------- src/mesa/math/m_xform.c | 5 ++--- src/mesa/swrast/s_blend.c | 9 ++++----- src/mesa/x86/gen_matypes.c | 10 ++++------ 4 files changed, 26 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/mesa/Makefile.X11 b/src/mesa/Makefile.X11 index fbc5713d03..33b888095c 100644 --- a/src/mesa/Makefile.X11 +++ b/src/mesa/Makefile.X11 @@ -208,23 +208,23 @@ INCLUDE_DIRS = \ $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ -X86/x86.o: X86/x86.c - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ -X86/common_x86.o: X86/common_x86.c - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ -X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h -X86/3dnow.o: X86/3dnow.c - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ -X86/sse.o: X86/sse.c - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ -X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c - $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes - ./X86/gen_matypes > X86/matypes.h - rm -f X86/gen_matypes X86/*.o - -# We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES +x86/x86.o: x86/x86.c + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ +x86/common_x86.o: x86/common_x86.c + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ +x86/common_x86_asm.o: x86/common_x86_asm.S x86/matypes.h +x86/3dnow.o: x86/3dnow.c + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ +x86/sse.o: x86/sse.c + $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@ +x86/matypes.h: main/mtypes.h tnl/t_context.h x86/gen_matypes.c + $(CC) $(INCLUDE_DIRS) $(CFLAGS) x86/gen_matypes.c -o x86/gen_matypes + ./x86/gen_matypes > x86/matypes.h + rm -f x86/gen_matypes x86/*.o + +# We have x86/matypes.h depend on x86/matypes.h so that if ASM_SOURCES # is empty we don't get an invalid Makefile. -$(ASM_SOURCES) X86/matypes.h: X86/matypes.h +$(ASM_SOURCES) x86/matypes.h: x86/matypes.h ##### TARGETS ##### diff --git a/src/mesa/math/m_xform.c b/src/mesa/math/m_xform.c index 94d0f6d753..8bb5e623c6 100644 --- a/src/mesa/math/m_xform.c +++ b/src/mesa/math/m_xform.c @@ -1,4 +1,3 @@ - /* * Mesa 3-D graphics library * Version: 5.1 @@ -49,11 +48,11 @@ #endif #ifdef USE_X86_ASM -#include "X86/common_x86_asm.h" +#include "x86/common_x86_asm.h" #endif #ifdef USE_SPARC_ASM -#include "SPARC/sparc.h" +#include "sparc/sparc.h" #endif clip_func _mesa_clip_tab[5]; diff --git a/src/mesa/swrast/s_blend.c b/src/mesa/swrast/s_blend.c index d2b47cb3b9..345df378ff 100644 --- a/src/mesa/swrast/s_blend.c +++ b/src/mesa/swrast/s_blend.c @@ -1,9 +1,8 @@ - /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -37,8 +36,8 @@ #if defined(USE_MMX_ASM) -#include "X86/mmx.h" -#include "X86/common_x86_asm.h" +#include "x86/mmx.h" +#include "x86/common_x86_asm.h" #define _BLENDAPI _ASMAPI #else #define _BLENDAPI diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index 9b06721d74..b4e7e6b7fd 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -1,10 +1,8 @@ -/* $Id: gen_matypes.c,v 1.10 2002/10/29 20:28:58 brianp Exp $ */ - /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -34,8 +32,8 @@ * Mesa, including lighting, clipping, texture image conversion etc. */ -#include "glheader.h" -#include "mtypes.h" +#include "main/glheader.h" +#include "main/mtypes.h" #include "tnl/t_context.h" -- cgit v1.2.3