1include Makefile.sources 2 3noinst_LIBRARIES = libr600.a 4 5AM_CFLAGS = \ 6 -I$(top_srcdir)/src/gallium/include \ 7 -I$(top_srcdir)/src/gallium/auxiliary \ 8 -I$(top_srcdir)/src/gallium/drivers \ 9 -I$(top_srcdir)/include \ 10 $(RADEON_CFLAGS) \ 11 $(DEFINES) \ 12 $(PIC_FLAGS) \ 13 $(VISIBILITY_CFLAGS) 14 15libr600_a_SOURCES = \ 16 $(C_SOURCES) 17 18if NEED_RADEON_GALLIUM 19 20# This is a hack until we can move the backend into the LLVM project. 21# We need to use mklib, because it splits up libradeon.a into object files 22# so that we can link it with the r600 objects. 23libr600_a_AR = $(top_srcdir)/bin/mklib -o r600 -static 24 25libr600_a_SOURCES += \ 26 $(LLVM_C_SOURCES) \ 27 $(LLVM_CXX_SOURCES) 28 29libr600_a_LIBADD = \ 30 $(top_builddir)/src/gallium/drivers/radeon/libradeon.a 31 32AM_CFLAGS += \ 33 $(LLVM_CFLAGS) \ 34 -I$(top_srcdir)/src/gallium/drivers/radeon/ 35 36AM_CXXFLAGS= \ 37 $(LLVM_CXXFLAGS) 38else 39libr600_a_AR = $(AR) $(ARFLAGS) 40endif 41 42if USE_R600_LLVM_COMPILER 43AM_CFLAGS += \ 44 -DR600_USE_LLVM 45endif 46 47if HAVE_GALLIUM_COMPUTE 48AM_CFLAGS += \ 49 -DHAVE_OPENCL 50endif 51