Home | History | Annotate | Download | only in r600
      1 include Makefile.sources
      2 
      3 noinst_LIBRARIES = libr600.a
      4 
      5 AM_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 
     15 libr600_a_SOURCES = \
     16 	$(C_SOURCES)
     17 
     18 if 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.
     23 libr600_a_AR = $(top_srcdir)/bin/mklib -o r600 -static
     24 
     25 libr600_a_SOURCES += \
     26 	$(LLVM_C_SOURCES) \
     27 	$(LLVM_CXX_SOURCES)
     28 
     29 libr600_a_LIBADD = \
     30 	$(top_builddir)/src/gallium/drivers/radeon/libradeon.a
     31 
     32 AM_CFLAGS += \
     33 	$(LLVM_CFLAGS) \
     34 	-I$(top_srcdir)/src/gallium/drivers/radeon/
     35 
     36 AM_CXXFLAGS= \
     37 	$(LLVM_CXXFLAGS)
     38 else
     39 libr600_a_AR = $(AR) $(ARFLAGS)
     40 endif
     41 
     42 if USE_R600_LLVM_COMPILER
     43 AM_CFLAGS += \
     44 	-DR600_USE_LLVM
     45 endif
     46 
     47 if HAVE_GALLIUM_COMPUTE
     48 AM_CFLAGS += \
     49 	-DHAVE_OPENCL
     50 endif
     51