r600/sb: handle lds special dest registers.
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
index e1c8574eb9e250d9d0bfd045f18036edc83bd486..6cb9307ade7e9688136b00776fdac3826631e811 100644 (file)
@@ -1,41 +1,45 @@
 include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
-noinst_LTLIBRARIES = libr600.la
+egd_tables.h: $(srcdir)/egd_tables.py $(srcdir)/evergreend.h
+       $(AM_V_at)$(MKDIR_P) $(@D)
+       $(AM_V_GEN) $(PYTHON2) $(srcdir)/egd_tables.py $(srcdir)/evergreend.h > $@
 
+BUILT_SOURCES = $(R600_GENERATED_FILES)
 AM_CFLAGS = \
-       -I$(top_srcdir)/src/gallium/drivers \
-       -I$(top_srcdir)/include \
-       $(GALLIUM_CFLAGS) \
+       $(GALLIUM_DRIVER_CFLAGS) \
        $(RADEON_CFLAGS) \
-       $(VISIBILITY_CFLAGS)
+       $(LIBELF_CFLAGS) \
+       -I$(top_srcdir)/src/amd/common
 
-libr600_la_SOURCES = \
-       $(C_SOURCES)
+AM_CXXFLAGS = \
+       $(GALLIUM_DRIVER_CXXFLAGS) \
+       $(RADEON_CFLAGS) \
+       $(LIBELF_CFLAGS) \
+       -I$(top_srcdir)/src/amd/common
 
-if R600_NEED_RADEON_GALLIUM
+noinst_LTLIBRARIES = libr600.la
 
-libr600_la_SOURCES += \
-       $(LLVM_C_SOURCES) \
-       $(LLVM_CXX_SOURCES)
+libr600_la_SOURCES = \
+       $(C_SOURCES) \
+       $(CXX_SOURCES)
 
-libr600_la_LIBADD = ../radeon/libllvmradeon@VERSION@.la
+if HAVE_GALLIUM_LLVM
 
 AM_CFLAGS += \
-       $(LLVM_CFLAGS) \
-       -I$(top_srcdir)/src/gallium/drivers/radeon/
+       $(LLVM_CFLAGS)
 
-AM_CXXFLAGS= \
-       $(LLVM_CXXFLAGS) \
-       $(DEFINES)
-endif
-
-if USE_R600_LLVM_COMPILER
-AM_CFLAGS += \
-       -DR600_USE_LLVM
 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