summaryrefslogtreecommitdiff
path: root/src/dri-es/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/dri-es/Makefile')
-rw-r--r--src/dri-es/Makefile48
1 files changed, 9 insertions, 39 deletions
diff --git a/src/dri-es/Makefile b/src/dri-es/Makefile
index 5cf418f4c86c..d3512743a032 100644
--- a/src/dri-es/Makefile
+++ b/src/dri-es/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1.2.1 2003/02/05 04:37:12 keithw Exp $
+# $Id: Makefile,v 1.1.2.2 2003/03/04 17:29:55 keithw Exp $
# Mesa 3-D graphics library
# Version: 5.0
@@ -7,27 +7,18 @@
MESA = ../..
-MESABUILDDIR = ..
-
+default: dri.a
+include $(MESA)/Makefile.include
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)
+C_SOURCES = dri_glx.c \
+ dri_util.c \
+ xf86drm.c \
+ xf86drmHash.c \
+ xf86drmRandom.c \
+ xf86drmSL.c
ASM_SOURCES =
@@ -36,32 +27,11 @@ OBJECTS = $(C_SOURCES:.c=.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) $< > $@