summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/Makefile.am
blob: c33def742f17cd536308fdc19ec3f8915903b7e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
if HAVE_LOADER_GALLIUM
SUBDIRS := pipe-loader
endif

include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc

noinst_LTLIBRARIES = libgallium.la

AM_CFLAGS = \
	-I$(top_srcdir)/src/loader \
	-I$(top_builddir)/src/glsl/nir \
	-I$(top_srcdir)/src/gallium/auxiliary/util \
	$(GALLIUM_CFLAGS) \
	$(VISIBILITY_CFLAGS) \
	$(MSVC2008_COMPAT_CXXFLAGS)

AM_CXXFLAGS = \
	$(VISIBILITY_CXXFLAGS) \
	$(MSVC2008_COMPAT_CXXFLAGS)

libgallium_la_SOURCES = \
	$(C_SOURCES) \
	$(NIR_SOURCES) \
	$(GENERATED_SOURCES)

if HAVE_MESA_LLVM

AM_CFLAGS += \
	$(LLVM_CFLAGS)

AM_CXXFLAGS += \
	$(GALLIUM_CFLAGS) \
	$(LLVM_CXXFLAGS)

libgallium_la_SOURCES += \
	$(GALLIVM_SOURCES)

endif

MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
PYTHON_GEN =  $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)

indices/u_indices_gen.c: indices/u_indices_gen.py
	$(MKDIR_GEN)
	$(PYTHON_GEN) $(srcdir)/indices/u_indices_gen.py > $@

indices/u_unfilled_gen.c: indices/u_unfilled_gen.py
	$(MKDIR_GEN)
	$(PYTHON_GEN) $(srcdir)/indices/u_unfilled_gen.py > $@

util/u_format_table.c: util/u_format_table.py \
                       util/u_format_pack.py \
                       util/u_format_parse.py \
                       util/u_format.csv
	$(MKDIR_GEN)
	$(PYTHON_GEN) $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format.csv > $@

noinst_LTLIBRARIES += libgalliumvl_stub.la
libgalliumvl_stub_la_SOURCES = \
	$(VL_STUB_SOURCES)

if NEED_GALLIUM_VL

COMMON_VL_CFLAGS = \
	$(AM_CFLAGS) \
	$(VL_CFLAGS) \
	$(DRI2PROTO_CFLAGS) \
	$(LIBDRM_CFLAGS) \
	-DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\"

if HAVE_GALLIUM_STATIC_TARGETS
COMMON_VL_CFLAGS += \
	-DGALLIUM_STATIC_TARGETS=1

endif # HAVE_GALLIUM_STATIC_TARGETS

noinst_LTLIBRARIES += libgalliumvl.la

libgalliumvl_la_CFLAGS = \
	$(COMMON_VL_CFLAGS)

libgalliumvl_la_SOURCES = \
	$(VL_SOURCES)

if NEED_GALLIUM_VL_WINSYS

noinst_LTLIBRARIES += libgalliumvlwinsys.la

libgalliumvlwinsys_la_CFLAGS = \
	$(COMMON_VL_CFLAGS)

libgalliumvlwinsys_la_SOURCES = \
	$(VL_WINSYS_SOURCES)

endif

endif

EXTRA_DIST = \
	SConscript \
	indices/u_indices.c \
	indices/u_unfilled_indices.c \
	indices/u_indices_gen.py \
	indices/u_unfilled_gen.py \
	postprocess/ADDING \
	rbug/README \
	target-helpers \
	util/u_format.csv \
	util/u_format_pack.py \
	util/u_format_parse.py \
	util/u_format_table.py