1include Makefile.sources 2include $(top_srcdir)/src/gallium/Automake.inc 3 4noinst_LTLIBRARIES = libgallium.la 5 6AM_CFLAGS = \ 7 -I$(top_srcdir)/src/loader \ 8 -I$(top_builddir)/src/compiler/nir \ 9 -I$(top_srcdir)/src/gallium/auxiliary/util \ 10 $(GALLIUM_CFLAGS) \ 11 $(VISIBILITY_CFLAGS) \ 12 $(MSVC2013_COMPAT_CFLAGS) 13 14AM_CXXFLAGS = \ 15 $(VISIBILITY_CXXFLAGS) \ 16 $(MSVC2013_COMPAT_CXXFLAGS) 17 18libgallium_la_SOURCES = \ 19 $(C_SOURCES) \ 20 $(NIR_SOURCES) \ 21 $(GENERATED_SOURCES) 22 23if HAVE_LIBDRM 24 25AM_CFLAGS += \ 26 $(LIBDRM_CFLAGS) 27 28libgallium_la_SOURCES += \ 29 $(RENDERONLY_SOURCES) 30 31endif 32 33if HAVE_GALLIUM_LLVM 34 35AM_CFLAGS += \ 36 $(LLVM_CFLAGS) 37 38AM_CXXFLAGS += \ 39 $(GALLIUM_CFLAGS) \ 40 $(LLVM_CXXFLAGS) 41 42libgallium_la_SOURCES += \ 43 $(GALLIVM_SOURCES) 44 45endif 46 47MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D) 48PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) 49 50indices/u_indices_gen.c: indices/u_indices_gen.py 51 $(MKDIR_GEN) 52 $(PYTHON_GEN) $(srcdir)/indices/u_indices_gen.py > $@ 53 54indices/u_unfilled_gen.c: indices/u_unfilled_gen.py 55 $(MKDIR_GEN) 56 $(PYTHON_GEN) $(srcdir)/indices/u_unfilled_gen.py > $@ 57 58util/u_format_table.c: util/u_format_table.py \ 59 util/u_format_pack.py \ 60 util/u_format_parse.py \ 61 util/u_format.csv 62 $(MKDIR_GEN) 63 $(PYTHON_GEN) $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format.csv > $@ 64 65noinst_LTLIBRARIES += libgalliumvl_stub.la 66libgalliumvl_stub_la_SOURCES = \ 67 $(VL_STUB_SOURCES) 68 69if NEED_GALLIUM_VL 70 71COMMON_VL_CFLAGS = \ 72 $(AM_CFLAGS) \ 73 $(VL_CFLAGS) \ 74 $(DRI2PROTO_CFLAGS) \ 75 $(LIBDRM_CFLAGS) 76 77noinst_LTLIBRARIES += libgalliumvl.la 78 79libgalliumvl_la_CFLAGS = \ 80 $(COMMON_VL_CFLAGS) 81 82libgalliumvl_la_SOURCES = \ 83 $(VL_SOURCES) 84 85if NEED_GALLIUM_VL_WINSYS 86 87noinst_LTLIBRARIES += libgalliumvlwinsys.la 88 89libgalliumvlwinsys_la_CFLAGS = \ 90 $(COMMON_VL_CFLAGS) 91 92libgalliumvlwinsys_la_SOURCES = \ 93 $(VL_WINSYS_SOURCES) 94 95if HAVE_DRI3 96 97libgalliumvlwinsys_la_SOURCES += \ 98 $(VL_WINSYS_DRI3_SOURCES) 99 100endif 101 102endif 103 104endif 105 106EXTRA_DIST = \ 107 SConscript \ 108 indices/u_indices.c \ 109 indices/u_unfilled_indices.c \ 110 indices/u_indices_gen.py \ 111 indices/u_unfilled_gen.py \ 112 postprocess/ADDING \ 113 rbug/README \ 114 target-helpers \ 115 util/u_format.csv \ 116 util/u_format_pack.py \ 117 util/u_format_parse.py \ 118 util/u_format_table.py 119