# 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:
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:
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
######################################################################
# 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 \
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
$(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
-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)