Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. TOP = ../../../..
  2. include $(TOP)/configs/current
  3. include Makefile.sources
  4. LIBNAME = radeon
  5. LIBRARY_INCLUDES = -I$(TOP)/include
  6. TBLGEN = $(LLVM_BINDIR)/llvm-tblgen
  7. CXXFLAGS+= $(LLVM_CXXFLAGS)
  8. include ../../Makefile.template
  9. CXXFLAGS := $(filter-out -DDEBUG, $(CXXFLAGS))
  10. tablegen = $(TBLGEN) -I $(LLVM_INCLUDEDIR) $1 $2 -o $3
  11. gen: $(GENERATED_SOURCES)
  12. SIRegisterInfo.td: SIGenRegisterInfo.pl
  13. $(PERL) $^ > $@
  14. SIRegisterGetHWRegNum.inc: SIGenRegisterInfo.pl
  15. $(PERL) $^ $@ > /dev/null
  16. R600ShaderPatterns.td: AMDGPUGenShaderPatterns.pl
  17. $(PERL) $^ C > $@
  18. R600RegisterInfo.td: R600GenRegisterInfo.pl
  19. $(PERL) $^ > $@
  20. AMDGPUInstrEnums.td: AMDGPUGenInstrEnums.pl
  21. $(PERL) $^ td > $@
  22. AMDGPUInstrEnums.h.include: AMDGPUGenInstrEnums.pl
  23. $(PERL) $^ h > $@
  24. AMDGPUInstrEnums.include: AMDGPUGenInstrEnums.pl
  25. $(PERL) $^ inc > $@
  26. AMDILGenRegisterInfo.inc: *.td
  27. $(call tablegen, -gen-register-info, AMDIL.td, $@)
  28. AMDILGenInstrInfo.inc: *.td
  29. $(call tablegen, -gen-instr-info, AMDIL.td, $@)
  30. AMDILGenAsmWriter.inc: *.td
  31. $(call tablegen, -gen-asm-writer, AMDIL.td, $@)
  32. AMDILGenDAGISel.inc: *.td
  33. $(call tablegen, -gen-dag-isel, AMDIL.td, $@)
  34. AMDILGenCallingConv.inc: *.td
  35. $(call tablegen, -gen-callingconv, AMDIL.td, $@)
  36. AMDILGenSubtargetInfo.inc: *.td
  37. $(call tablegen, -gen-subtarget, AMDIL.td, $@)
  38. AMDILGenEDInfo.inc: *.td
  39. $(call tablegen, -gen-enhanced-disassembly-info, AMDIL.td, $@)
  40. AMDILGenIntrinsics.inc: *.td
  41. $(call tablegen, -gen-tgt-intrinsic, AMDIL.td, $@)
  42. AMDILGenCodeEmitter.inc: *.td
  43. $(call tablegen, -gen-emitter, AMDIL.td, $@)
  44. LOADER_LIBS=$(shell llvm-config --libs bitreader asmparser)
  45. loader: loader.o libradeon.a
  46. gcc -o loader -L/usr/local/lib $(LDFLAGS) loader.o libradeon.a $(LLVM_LIBS) $(LOADER_LIBS) -lpthread -ldl -lstdc++ -lm
  47. # FIXME: Remove when this driver is converted to automake.
  48. all: default