diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-04-14 12:39:58 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-04-14 12:39:58 +0000 |
commit | 680ec7f85158eae58fd5ab56da8c66a645883cb0 (patch) | |
tree | 1680892e7edd243e5c49dd40c0ae9b9750066229 /src/mesa/drivers/dri/dri_client/Makefile | |
parent | 00e01091ceeb7f2d9e81962a7e0e57077e4d37f7 (diff) |
First pass at support for building DRI drivers in mesa tree.
Diffstat (limited to 'src/mesa/drivers/dri/dri_client/Makefile')
-rw-r--r-- | src/mesa/drivers/dri/dri_client/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/dri_client/Makefile b/src/mesa/drivers/dri/dri_client/Makefile new file mode 100644 index 0000000000..14ba1948b2 --- /dev/null +++ b/src/mesa/drivers/dri/dri_client/Makefile @@ -0,0 +1,60 @@ +# src/mesa/drivers/dri/gamma/Makefile + +TOP = ../../../../.. +include $(TOP)/configs/current + +# Get rid of this: +# +DEFINES += -DGLX_DIRECT_RENDERING + +C_SOURCES = \ + dri_glx.c \ + dri_util.c \ + glcontextmodes.c \ + XF86dri.c \ + xf86drm.c \ + xf86drmHash.c \ + xf86drmRandom.c \ + xf86drmSL.c \ + + + +OBJECTS = $(C_SOURCES:.c=.o) + +INCLUDES = \ + -I$(TOP)/include \ + -I$(TOP)/src/mesa \ + -I$(TOP)/src/mesa/main \ + -I$(TOP)/src/mesa/glapi \ + -Iimports + + +##### RULES ##### + +.c.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ + + +##### TARGETS ##### + +default: depend dri.a + + +# Run 'make dep' to update the dependencies if you change +# what's included by any source file. +depend: $(C_SOURCES) $(ASM_SOURCES) + touch depend + makedepend -fdepend -Y $(INCLUDES) \ + $(C_SOURCES) $(ASM_SOURCES) >& /dev/null + + +dri.a: $(OBJECTS) + rm -f $@ + ar rcv $@ $(OBJECTS) + ranlib $@ + +# Remove .o and backup files +clean: + -rm -f *.o */*.o *~ *.so *.a + +include depend |