Moved the software rasterizer to a new directory.
[mesa.git] / src / mesa / main / Makefile.X11
index 75e03a6bb290303c5910f1836431d0e161ab1e58..32326d6d5ed9e52cf454cb3b7797acf47599b8c8 100644 (file)
@@ -1,8 +1,8 @@
-# $Id: Makefile.X11,v 1.12 1999/12/17 15:15:46 brianp Exp $
+# $Id: Makefile.X11,v 1.27 2000/10/31 18:09:44 keithw Exp $
 
 # Mesa 3-D graphics library
-# Version:  3.3
-# Copyright (C) 1995-1999  Brian Paul
+# Version:  3.5
+# Copyright (C) 1995-2000  Brian Paul
 
 # Makefile for core library
 
@@ -22,15 +22,16 @@ LIBDIR = ../lib
 CORE_SOURCES = \
        accum.c \
        alpha.c \
-       alphabuf.c \
        attrib.c \
        bbox.c \
        bitmap.c \
        blend.c \
+       buffers.c \
        clip.c \
        colortab.c \
        config.c \
        context.c \
+       convolve.c \
        copypix.c \
        cva.c \
        debug_xform.c \
@@ -47,38 +48,40 @@ CORE_SOURCES = \
        get.c \
        glapi.c \
        glapinoop.c \
-       glmisc.c \
        glthread.c \
        hash.c \
+       highpc.c \
+       hint.c \
        image.c \
        imaging.c \
+       imports.c \
        light.c \
        lines.c \
        logic.c \
+       lowpc.c \
        masking.c \
        matrix.c \
        mem.c \
        mmath.c \
-       pb.c \
-       pixel.c \
        pipeline.c \
+       pixel.c \
+       pixeltex.c \
        points.c \
        polygon.c \
-       quads.c \
        rastpos.c \
        readpix.c \
        rect.c \
        scissor.c \
        shade.c \
-       span.c \
        stages.c \
+       state.c \
        stencil.c \
        teximage.c \
        texobj.c \
        texstate.c \
        texture.c \
+       texutil.c \
        translate.c \
-       triangle.c \
        varray.c \
        vb.c \
        vbcull.c \
@@ -90,25 +93,57 @@ CORE_SOURCES = \
        vertices.c \
        winpos.c \
        xform.c \
-       zoom.c \
        X86/x86.c \
        X86/common_x86.c \
        X86/3dnow.c \
-       X86/katmai.c
+       X86/katmai.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_fog.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_quads.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_SOURCES = \
        X/glxapi.c \
        X/fakeglx.c \
        X/xfonts.c \
-       X/xmesa1.c \
-       X/xmesa2.c \
-       X/xmesa3.c \
-       X/xmesa4.c \
-       OSmesa/osmesa.c \
+       X/xm_api.c \
+       X/xm_dd.c \
+       X/xm_line.c \
+       X/xm_span.c \
+       X/xm_tri.c \
        SVGA/svgamesa.c \
+       SVGA/svgamesa8.c \
+       SVGA/svgamesa15.c \
+       SVGA/svgamesa16.c \
+       SVGA/svgamesa24.c \
+       SVGA/svgamesa32.c \
        FX/fxapi.c \
        FX/fxclip.c \
-       FX/fxcva.c \
        FX/fxdd.c \
        FX/fxddspan.c \
        FX/fxddtex.c \
@@ -120,8 +155,15 @@ DRIVER_SOURCES = \
        FX/fxtexman.c \
        FX/fxtrifuncs.c \
        FX/fxvsetup.c \
-       FX/fxglidew.c 
-#      GGI/ggimesa.c
+       FX/fxglidew.c \
+       Trace/tr_2string.c \
+       Trace/tr_attrib.c \
+       Trace/tr_context.c \
+       Trace/tr_control.c \
+       Trace/tr_error.c \
+       Trace/tr_print.c \
+       Trace/tr_wrapper.c
+
 
 ASM_SOURCES = 
 
@@ -133,13 +175,18 @@ OBJECTS = $(ASM_SOURCES:.S=.o) \
        $(ADDITIONAL_OBJ)
 
 
+OSMESA_SOURCES = OSmesa/osmesa.c
+OSMESA_OBJECTS = OSmesa/osmesa.o
+
+
+
 ##### RULES #####
 
 .c.o:
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 
 .S.o:
-       $(CC) -c $(CFLAGS) $< -o $@
+       $(CC) -c -I. $(CFLAGS) $< -o $@
 
 
 # UGH! These rules shouldn't be needed but IRIX's make (and others?) needs them
@@ -149,24 +196,37 @@ X/fakeglx.o: X/fakeglx.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X/xfonts.o: X/xfonts.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-X/xmesa1.o: X/xmesa1.c
+X/xm_api.o: X/xm_api.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-X/xmesa2.o: X/xmesa2.c
+X/xm_dd.o: X/xm_dd.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-X/xmesa3.o: X/xmesa3.c
+X/xm_span.o: X/xm_span.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-X/xmesa4.o: X/xmesa4.c
+X/xm_line.o: X/xm_line.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+X/xm_tri.o: X/xm_tri.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 SVGA/svgamesa.o: SVGA/svgamesa.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+SVGA/svgamesa8.o: SVGA/svgamesa8.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+SVGA/svgamesa15.o: SVGA/svgamesa15.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+SVGA/svgamesa16.o: SVGA/svgamesa16.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+SVGA/svgamesa24.o: SVGA/svgamesa24.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+SVGA/svgamesa32.o: SVGA/svgamesa32.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 OSmesa/osmesa.o: OSmesa/osmesa.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 FX/fxapi.o: FX/fxapi.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxclip.o: FX/fxclip.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-FX/fxcva.o: FX/fxcva.c
-       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxdd.o: FX/fxdd.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxddspan.o: FX/fxddspan.c
@@ -191,13 +251,9 @@ FX/fxvsetup.o: FX/fxvsetup.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxglidew.o: FX/fxglidew.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S FX/X86/fx_regoff.h
-FX/X86/fx_regoff.h: FX/X86/fx_gen_regoff
-       $< > $@
-FX/X86/fx_gen_regoff : FX/X86/fx_gen_regoff.c
-       $(CC) -I. -I$(INCDIR) $(CFLAGS) $< -o $@
-GGI/ggimesa.o: GGI/ggimesa.c
-       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S
+
 X86/x86.o: X86/x86.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X86/common_x86.o: X86/common_x86.c
@@ -207,6 +263,26 @@ X86/3dnow.o: X86/3dnow.c
 X86/katmai.o: X86/katmai.c
        $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 
+GGI/ggimesa.o: GGI/ggimesa.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+Trace/tr_2string.o: Trace/tr_2string.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_attrib.o: Trace/tr_attrib.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_context.o: Trace/tr_context.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_control.o: Trace/tr_control.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_error.o: Trace/tr_error.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_print.o: Trace/tr_print.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_wrapper.o: Trace/tr_wrapper.c
+       $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+
+
 ##### TARGETS #####
 
 #default:
@@ -216,15 +292,22 @@ clean:
        -rm *.o *~ */*.o */*~ *.lo *.la
        -rm -rf .libs
 
-targets: $(LIBDIR)/$(GL_LIB)
+targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB)
 
-# Make the library
+# Make the GL library
 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
        $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
        rm -f $(LIBDIR)/$(GL_LIB)*
        mv $(GL_LIB)* $(LIBDIR)
 
 
+# Make the OSMesa library
+$(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
+       if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi
+       if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
+       if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
+
+
 include ../Make-config
 
 include depend
@@ -235,8 +318,8 @@ include depend
 # Run 'make dep' to update the dependencies if you change what's included
 # by any source file.
 # 
-dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
-       makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES)
+dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
+       makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
 
 tags:
        etags `find . -name \*.[ch]` `find ../include`