r600/sb: handle lds special dest registers.
[mesa.git] / src / gallium / drivers / r600 / Makefile.am
index cede6fa1ff126fefe86e8e3748bac675e8bb141b..6cb9307ade7e9688136b00776fdac3826631e811 100644 (file)
@@ -1,51 +1,45 @@
-AUTOMAKE_OPTIONS = subdir-objects
-
 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
 
 AM_CXXFLAGS = \
-       -I$(top_srcdir)/src/gallium/drivers \
-       -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src/gallium/include \
-       -I$(top_srcdir)/src/gallium/auxiliary \
+       $(GALLIUM_DRIVER_CXXFLAGS) \
        $(RADEON_CFLAGS) \
-       $(DEFINES) \
-       $(VISIBILITY_CFLAGS)
+       $(LIBELF_CFLAGS) \
+       -I$(top_srcdir)/src/amd/common
+
+noinst_LTLIBRARIES = libr600.la
 
 libr600_la_SOURCES = \
        $(C_SOURCES) \
        $(CXX_SOURCES)
 
-libr600_la_LIBADD = ../radeon/libradeon.la
-
-if NEED_RADEON_LLVM
-
-libr600_la_SOURCES += \
-       $(LLVM_C_SOURCES)
-
-libr600_la_LIBADD += ../radeon/libllvmradeon.la
+if HAVE_GALLIUM_LLVM
 
 AM_CFLAGS += \
-       $(LLVM_CFLAGS) \
-       -I$(top_srcdir)/src/gallium/drivers/radeon/
-
-endif
+       $(LLVM_CFLAGS)
 
-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