1TOP = ../../.. 2include $(TOP)/configs/current 3 4LIBNAME = gallium 5 6# get source lists 7include Makefile.sources 8 9C_SOURCES += $(GENERATED_SOURCES) 10 11ifeq ($(MESA_LLVM),1) 12C_SOURCES += \ 13 $(GALLIVM_SOURCES) 14CPP_SOURCES += \ 15 $(GALLIVM_CPP_SOURCES) 16 17# LLVM >= 3.2 requires -fno-rtti 18ifeq ($(shell expr `echo $(LLVM_VERSION) | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'` \>= 302),1) 19CXXFLAGS += -fno-rtti 20endif 21endif 22 23 24include ../Makefile.template 25 26default install clean: %: subdirs-% 27 28subdirs-%: 29 @for dir in $(SUBDIRS) ; do \ 30 if [ -d $$dir ] ; then \ 31 (cd $$dir && $(MAKE) $*) || exit 1; \ 32 fi \ 33 done 34 35indices/u_indices_gen.c: indices/u_indices_gen.py 36 $(PYTHON2) $< > $@ 37 38indices/u_unfilled_gen.c: indices/u_unfilled_gen.py 39 $(PYTHON2) $< > $@ 40 41util/u_format_srgb.c: util/u_format_srgb.py 42 $(PYTHON2) $< > $@ 43 44util/u_format_table.c: util/u_format_table.py util/u_format_pack.py util/u_format_parse.py util/u_format.csv 45 $(PYTHON2) util/u_format_table.py util/u_format.csv > $@ 46 47# DO NOT DELETE 48