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