From 8e48a232fe48e4b6855cecb1d02363fb142365ae Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Thu, 29 Mar 2001 03:41:39 +0000 Subject: Make generation of matypes.h more transparent. --- src/mesa/Makefile.X11 | 10 ++++++---- src/mesa/main/Makefile.X11 | 10 ++++++---- src/mesa/x86/gen_matypes.c | 3 +-- 3 files changed, 13 insertions(+), 10 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/Makefile.X11 b/src/mesa/Makefile.X11 index beee04ae76..c514e927f0 100644 --- a/src/mesa/Makefile.X11 +++ b/src/mesa/Makefile.X11 @@ -1,4 +1,4 @@ -# $Id: Makefile.X11,v 1.49 2001/03/28 20:44:43 gareth Exp $ +# $Id: Makefile.X11,v 1.50 2001/03/29 03:41:40 gareth Exp $ # Mesa 3-D graphics library # Version: 3.5 @@ -188,8 +188,7 @@ ASM_SOURCES = ADDITIONAL_OBJ = -OBJECTS = $(GEN_SOURCES) \ - $(ASM_SOURCES:.S=.o) \ +OBJECTS = $(ASM_SOURCES:.S=.o) \ $(CORE_SOURCES:.c=.o) \ $(DRIVER_SOURCES:.c=.o) \ $(ADDITIONAL_OBJ) @@ -278,6 +277,7 @@ 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/katmai.o: X86/katmai.c @@ -285,7 +285,9 @@ X86/katmai.o: X86/katmai.c 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 + rm -f X86/gen_matypes X86/*.o + +$(ASM_SOURCES): X86/matypes.h GGI/ggimesa.o: GGI/ggimesa.c $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11 index beee04ae76..c514e927f0 100644 --- a/src/mesa/main/Makefile.X11 +++ b/src/mesa/main/Makefile.X11 @@ -1,4 +1,4 @@ -# $Id: Makefile.X11,v 1.49 2001/03/28 20:44:43 gareth Exp $ +# $Id: Makefile.X11,v 1.50 2001/03/29 03:41:40 gareth Exp $ # Mesa 3-D graphics library # Version: 3.5 @@ -188,8 +188,7 @@ ASM_SOURCES = ADDITIONAL_OBJ = -OBJECTS = $(GEN_SOURCES) \ - $(ASM_SOURCES:.S=.o) \ +OBJECTS = $(ASM_SOURCES:.S=.o) \ $(CORE_SOURCES:.c=.o) \ $(DRIVER_SOURCES:.c=.o) \ $(ADDITIONAL_OBJ) @@ -278,6 +277,7 @@ 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/katmai.o: X86/katmai.c @@ -285,7 +285,9 @@ X86/katmai.o: X86/katmai.c 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 + rm -f X86/gen_matypes X86/*.o + +$(ASM_SOURCES): X86/matypes.h GGI/ggimesa.o: GGI/ggimesa.c $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@ diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index 990034fdf6..d92a54f4d8 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -1,4 +1,4 @@ -/* $Id: gen_matypes.c,v 1.1 2001/03/28 20:44:44 gareth Exp $ */ +/* $Id: gen_matypes.c,v 1.2 2001/03/29 03:41:40 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -38,7 +38,6 @@ #include "all.h" #else #include "glheader.h" -#include "context.h" #include "mtypes.h" #include "tnl/t_context.h" #endif -- cgit v1.2.3