summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/Makefile
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-03-25 18:29:51 +0100
committerJakob Bornecrantz <[email protected]>2010-03-26 00:37:52 +0100
commit5b1fc14627ae37c5def70e2d5fe28bf7a4becee6 (patch)
tree7eaabe33aa89be31e78a4c1f56f367287d0623ab /src/gallium/state_trackers/dri/Makefile
parenta6fecdff3e71f080d4caf29d2b0713ab5ce9d5f4 (diff)
st/dri: Reshuffle files and make it obvious which files are shared
In short: git mv ../drisw/Makefile dri/sw git mv drisw.[c|h] sw git mv dri2.[c|h] dri1.[c|h] Makefile drm git rm ../drisw ln -s <common files> drm/* ln -s <common files> sw/*
Diffstat (limited to 'src/gallium/state_trackers/dri/Makefile')
-rw-r--r--src/gallium/state_trackers/dri/Makefile36
1 files changed, 8 insertions, 28 deletions
diff --git a/src/gallium/state_trackers/dri/Makefile b/src/gallium/state_trackers/dri/Makefile
index f1a54e80b61..72e70577b3d 100644
--- a/src/gallium/state_trackers/dri/Makefile
+++ b/src/gallium/state_trackers/dri/Makefile
@@ -1,32 +1,12 @@
+# src/gallium/state_trackers/dri/Makefile
TOP = ../../../..
include $(TOP)/configs/current
-LIBNAME = dridrm
+SUBDIRS = drm sw
-LIBRARY_INCLUDES = \
- -I$(TOP)/include \
- -I$(TOP)/src/mesa \
- -I$(TOP)/src/mesa/drivers/dri/common \
- -I$(TOP)/src/mesa/main \
- $(shell pkg-config --cflags-only-I libdrm)
-
-
-C_SOURCES = \
- dri_context.c \
- dri_screen.c \
- dri_drawable.c \
- dri_extensions.c \
- dri_st_api.c \
- dri1_helper.c \
- dri1.c \
- dri2.c
-
-# $(TOP)/src/mesa/drivers/dri/common/utils.c \
- $(TOP)/src/mesa/drivers/dri/common/vblank.c \
- $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
- $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c \
- $(TOP)/src/mesa/drivers/common/driverfuncs.c \
- $(TOP)/src/mesa/drivers/dri/common/texmem.c \
- $(TOP)/src/mesa/drivers/dri/common/drirenderbuffer.c
-
-include ../../Makefile.template
+default install clean:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE) $@) || exit 1; \
+ fi \
+ done