summaryrefslogtreecommitdiff
path: root/src/dri-es/Makefile
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-02-05 04:37:12 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-02-05 04:37:12 +0000
commit78e1fee39b321a59d3607c7611805b1ce391e982 (patch)
tree4bfe0349d2e31cfbd424f0c56f7560638798c279 /src/dri-es/Makefile
parent75ccd62be83b59eab7e545473075c9f6839d50c2 (diff)
Add files to allow the subset driver to be built as a dri driver.
At the moment have to choose to build as *either* a dri or a miniglx driver, but shouldn't be too hard to build one driver that will work in both environments.
Diffstat (limited to 'src/dri-es/Makefile')
-rw-r--r--src/dri-es/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/dri-es/Makefile b/src/dri-es/Makefile
new file mode 100644
index 0000000000..5cf418f4c8
--- /dev/null
+++ b/src/dri-es/Makefile
@@ -0,0 +1,67 @@
+# $Id: Makefile,v 1.1.2.1 2003/02/05 04:37:12 keithw Exp $
+
+# Mesa 3-D graphics library
+# Version: 5.0
+# Copyright (C) 1995-2002 Brian Paul
+
+
+
+MESA = ../..
+MESABUILDDIR = ..
+
+
+INCLUDES = -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions -I$(MESA)/include -I. -I..
+DEFINES =
+
+CFLAGS = $(INCLUDES) $(DEFINES) -g -MD -Wall -Wpointer-arith \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs
+
+# The .a files for each mesa module required by this driver:
+#
+DRI_SOURCES = dri_glx.c \
+ dri_util.c \
+ xf86drm.c \
+ xf86drmHash.c \
+ xf86drmRandom.c \
+ xf86drmSL.c
+
+
+C_SOURCES = $(DRI_SOURCES)
+
+ASM_SOURCES =
+
+OBJECTS = $(C_SOURCES:.c=.o) \
+ $(ASM_SOURCES:.S=.o)
+
+
+
+##### RULES #####
+
+.S.o:
+ $(CC) -c $(CFLAGS) $< -o $@
+
+.c.o:
+ $(CC) -c $(CFLAGS) $< -o $@
+
+##### TARGETS #####
+
+default: dri.a
+
+dri.a: $(OBJECTS) Makefile
+ rm -f $@ && ar rcv $@ $(OBJECTS) && ranlib $@
+
+clean:
+ -rm -f *.o *~ *.d .\#* *.so
+
+tags:
+ etags `find . -name \*.[ch]` `find ../include`
+
+##### DEPENDENCIES #####
+
+-include $(C_SOURCES:.c=.d)
+
+.SUFFIXES: .c .d
+
+.c.d:
+ $(CC) -M $(INCLUDES) $(DEFINES) $< > $@