summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/Makefile.am
blob: c5b41cce26e493fa997becae073c6774da43276f (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
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc

egd_tables.h: $(srcdir)/egd_tables.py $(srcdir)/evergreend.h
	$(AM_V_at)$(MKDIR_P) $(@D)
	$(AM_V_GEN) $(PYTHON) $(srcdir)/egd_tables.py $(srcdir)/evergreend.h > $@

BUILT_SOURCES = $(R600_GENERATED_FILES)
AM_CFLAGS = \
	$(GALLIUM_DRIVER_CFLAGS) \
	$(RADEON_CFLAGS) \
	$(LIBELF_CFLAGS) \
	-I$(top_srcdir)/src/amd/common -Wstrict-overflow=0

AM_CXXFLAGS = \
	$(GALLIUM_DRIVER_CXXFLAGS) \
	$(RADEON_CFLAGS) \
	$(LIBELF_CFLAGS) \
	-I$(top_srcdir)/src/amd/common

noinst_LTLIBRARIES = libr600.la

libr600_la_SOURCES = \
	$(C_SOURCES) \
	$(CXX_SOURCES)

if HAVE_GALLIUM_LLVM

AM_CFLAGS += \
	$(LLVM_CFLAGS)

endif

if HAVE_GALLIUM_COMPUTE
AM_CFLAGS += \
	-DHAVE_OPENCL
endif

CLEANFILES = \
	egd_tables.h

EXTRA_DIST = \
	egd_tables.py \
	sb/notes.markdown \
	sb/sb_bc_fmt_def.inc \
	meson.build