summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-06-12 12:29:44 -0700
committerEric Anholt <[email protected]>2012-06-21 10:10:46 -0700
commit1bbd22ada0b3fb2b1ad83a6c93a5a12e2d3c26db (patch)
tree0e7bfec3c66041083f23f3ef66156db89832c410
parent39785488e6a3f6beeb58372b88d49274a76d02f4 (diff)
automake: Move mesa subdirs processing to automake.
-rw-r--r--src/mesa/Makefile.am2
-rw-r--r--src/mesa/Makefile.old47
2 files changed, 4 insertions, 45 deletions
diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index 63350426388..6a2d4252bf8 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -19,6 +19,8 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
+SUBDIRS = x86 x86-64 . libdricore drivers
+
all-local:
$(MAKE) -f Makefile.old
diff --git a/src/mesa/Makefile.old b/src/mesa/Makefile.old
index 7c855531b0b..7a7d651898e 100644
--- a/src/mesa/Makefile.old
+++ b/src/mesa/Makefile.old
@@ -34,7 +34,7 @@ MESA_CXXFLAGS := $(LLVM_CFLAGS) $(CXXFLAGS)
# Default: build dependencies, then asm_subdirs, GLSL built-in lib,
# then convenience libs (.a) and finally the device drivers:
-default: $(DEPENDS) asm_subdirs $(MESA_LIBS) driver_subdirs
+default: $(DEPENDS) $(MESA_LIBS)
.PHONY: main/git_sha1.h.tmp
main/git_sha1.h.tmp:
@@ -96,11 +96,6 @@ program/program_parse.tab.c program/program_parse.tab.h: program/program_parse.y
program/lex.yy.c: program/program_lexer.l
$(FLEX) --never-interactive --outfile=$@ $<
-ifneq (,$(DRICORE_LIBS))
-DRICORE_TARGET = dricore
-DRICORE_INSTALL_TARGET = install-dricore
-endif
-
######################################################################
# Helper libraries used by many drivers:
@@ -112,25 +107,6 @@ libmesa.a: $(MESA_OBJECTS) $(GLSL_LIBS)
libmesagallium.a: $(MESA_GALLIUM_OBJECTS) $(GLSL_LIBS)
@ $(MKLIB) -o mesagallium -static $(MESA_GALLIUM_OBJECTS) $(GLSL_LIBS)
-dricore: $(BUILT_SOURCES)
- @ (cd libdricore && $(MAKE))
-
-######################################################################
-# Device drivers
-driver_subdirs: $(MESA_LIBS) $(DRICORE_TARGET)
- @ (cd drivers && $(MAKE))
-
-
-######################################################################
-# Assembly subdirs
-asm_subdirs:
- @ if echo "$(DEFINES)" | grep -q USE_X86_ASM ; then \
- (cd x86 && $(MAKE)) || exit 1 ; \
- fi
- @ if echo "$(DEFINES)" | grep -q USE_X86_64_ASM ; then \
- (cd x86-64 && $(MAKE)) || exit 1 ; \
- fi
-
######################################################################
# Dependency generation
@@ -143,11 +119,6 @@ depend: $(ALL_FILES) main/git_sha1.h
######################################################################
# Installation rules
-# this isn't fleshed out yet but is probably the way to go in the future
-new_install:
- (cd drivers && $(MAKE) install)
-
-# XXX replace this with new_install above someday
install: default $(DRICORE_INSTALL_TARGET)
@for driver in $(DRIVER_DIRS) ; do \
case "$$driver" in \
@@ -156,7 +127,7 @@ install: default $(DRICORE_INSTALL_TARGET)
else \
$(MAKE) -f Makefile.old install-osmesa || exit 1 ; \
fi ;; \
- dri) $(MAKE) -f Makefile.old install-headers install-dri || exit 1 ;; \
+ dri) $(MAKE) -f Makefile.old install-headers || exit 1 ;; \
*) $(MAKE) -f Makefile.old install-headers || exit 1 ;; \
esac ; \
done
@@ -170,12 +141,6 @@ install-osmesa: default
$(MINSTALL) $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_GLOB) \
$(DESTDIR)$(INSTALL_LIB_DIR)
-install-dri: default
- cd drivers/dri && $(MAKE) install
-
-install-dricore: default
- @ (cd libdricore && $(MAKE) install)
-
# Emacs tags
tags:
etags `find . -name \*.[ch]` $(TOP)/include/GL/*.h
@@ -184,14 +149,6 @@ clean:
-rm -f */*.o
-rm -f */*/*.o
-rm -f depend depend.bak libmesa.a libmesagallium.a
- -rm -f drivers/*/*.o
-rm -f $(BUILT_SOURCES)
- -@cd drivers/dri && $(MAKE) clean
- -@cd drivers/x11 && $(MAKE) clean
- -@cd drivers/osmesa && $(MAKE) clean
- -@cd x86 && $(MAKE) clean
- -@cd x86-64 && $(MAKE) clean
- -@cd libdricore && $(MAKE) clean
-
-include $(DEPENDS)