MESA_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(MESA_GPU_DRIVERS))
endif
-# host and target must be the same arch to generate matypes.h
-ifeq ($(TARGET_ARCH),$(HOST_ARCH))
MESA_ENABLE_ASM := true
-else
-MESA_ENABLE_ASM := false
-endif
ifneq ($(filter $(classic_drivers), $(MESA_GPU_DRIVERS)),)
MESA_BUILD_CLASSIC := true
MESA_BUILD_GALLIUM := false
endif
-MESA_ENABLE_LLVM := $(if $(filter radeonsi,$(MESA_GPU_DRIVERS)),true,false)
+MESA_ENABLE_LLVM := $(if $(filter radeonsi swrast,$(MESA_GPU_DRIVERS)),true,false)
# add subdirectories
ifneq ($(strip $(MESA_GPU_DRIVERS)),)
SUBDIRS := \
+ src/gbm \
src/loader \
src/mapi \
src/compiler \
- src/compiler/glsl \
src/mesa \
src/util \
src/egl \
+ src/intel/genxml \
+ src/intel/isl \
src/mesa/drivers/dri
+INC_DIRS := $(call all-named-subdir-makefiles,$(SUBDIRS))
+
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
-SUBDIRS += src/gallium
+INC_DIRS += $(call all-named-subdir-makefiles,src/gallium)
endif
-include $(call all-named-subdir-makefiles,$(SUBDIRS))
+include $(INC_DIRS)
endif