<commit_before># src/mesa/Makefile

TOP = ../..
include $(TOP)/configs/current

include sources.mak

.SUFFIXES : .cpp

.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@

.cpp.o:
	$(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $< -o $@

.S.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@




# Default: build dependencies, then asm_subdirs, then convenience
# libs (.a) and finally the device drivers:
default: depend asm_subdirs libmesa.a libmesagallium.a libglapi.a \
	driver_subdirs



######################################################################
# Helper libraries used by many drivers:

# Make archive of core mesa object files
libmesa.a: $(MESA_OBJECTS)
	@ $(MKLIB) -o mesa -static $(MESA_OBJECTS)

# Make archive of subset of core mesa object files for gallium
libmesagallium.a: $(MESA_GALLIUM_OBJECTS)
	@ $(MKLIB) -o mesagallium -static $(MESA_GALLIUM_OBJECTS)

# Make archive of gl* API dispatcher functions only
libglapi.a: $(GLAPI_OBJECTS)
	@if [ "${WINDOW_SYSTEM}" = "dri" ] ; then \
		touch libglapi.a ; \
	else \
		$(MKLIB) -o glapi -static $(GLAPI_OBJECTS) ; \
	fi

######################################################################
# Device drivers
driver_subdirs: libmesa.a libglapi.a
	(cd drivers && $(MAKE))


######################################################################
# Assembly subdirs
asm_subdirs:
	@ if echo "$(ASM_FLAGS)" | grep -q USE_X86_ASM ; then \
		(cd x86 && $(MAKE)) || exit 1 ; \
	fi
	@ if echo "$(ASM_FLAGS)" | grep -q USE_X86_64_ASM ; then \<commit_msg>mesa: use @ to silence some Makefile output<commit_after># src/mesa/Makefile

TOP = ../..
include $(TOP)/configs/current

include sources.mak

.SUFFIXES : .cpp

.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@

.cpp.o:
	$(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $< -o $@

.S.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@




# Default: build dependencies, then asm_subdirs, then convenience
# libs (.a) and finally the device drivers:
default: depend asm_subdirs libmesa.a libmesagallium.a libglapi.a \
	driver_subdirs



######################################################################
# Helper libraries used by many drivers:

# Make archive of core mesa object files
libmesa.a: $(MESA_OBJECTS)
	@ $(MKLIB) -o mesa -static $(MESA_OBJECTS)

# Make archive of subset of core mesa object files for gallium
libmesagallium.a: $(MESA_GALLIUM_OBJECTS)
	@ $(MKLIB) -o mesagallium -static $(MESA_GALLIUM_OBJECTS)

# Make archive of gl* API dispatcher functions only
libglapi.a: $(GLAPI_OBJECTS)
	@if [ "${WINDOW_SYSTEM}" = "dri" ] ; then \
		touch libglapi.a ; \
	else \
		$(MKLIB) -o glapi -static $(GLAPI_OBJECTS) ; \
	fi

######################################################################
# Device drivers
driver_subdirs: libmesa.a libglapi.a
	@ (cd drivers && $(MAKE))


######################################################################
# Assembly subdirs
asm_subdirs:
	@ if echo "$(ASM_FLAGS)" | grep -q USE_X86_ASM ; then \
		(cd x86 && $(MAKE)) || exit 1 ; \
	fi
	@ if echo "$(ASM_FLAGS)" | grep -q USE_X86_64_ASM ; then \
{'fraction_non_alphanumeric': 0.269888231426693, 'fraction_numerical': 0.005917159763313609, 'mean_word_length': 4.482882882882883, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4394546', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1068, 'n_words': 286}