summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeon/Makefile')
-rw-r--r--src/gallium/drivers/radeon/Makefile66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/gallium/drivers/radeon/Makefile b/src/gallium/drivers/radeon/Makefile
index 05dc518a9aa..7934c712195 100644
--- a/src/gallium/drivers/radeon/Makefile
+++ b/src/gallium/drivers/radeon/Makefile
@@ -8,74 +8,8 @@ LIBNAME = radeon
LIBRARY_INCLUDES = -I$(TOP)/include
-TBLGEN = $(LLVM_BINDIR)/llvm-tblgen
-
CXXFLAGS+= $(LLVM_CXXFLAGS)
-ifeq ($(LLVM_VERSION),3.1)
- CPP_SOURCES += $(LLVM_CPP_SOURCES)
- GENERATED_SOURCES = $(LLVM_GENERATED_SOURCES)
-else
- CXXFLAGS+= -DEXTERNAL_LLVM
-endif
-
include ../../Makefile.template
CXXFLAGS := $(filter-out -DDEBUG, $(CXXFLAGS))
-
-tablegen = $(TBLGEN) -I $(LLVM_INCLUDEDIR) $1 $2 -o $3
-
-HAVE_LLVM_INTRINSICS = $(shell grep IntrinsicsR600.td $(LLVM_INCLUDEDIR)/llvm/Intrinsics.td)
-
-SIRegisterInfo.td: SIGenRegisterInfo.pl
- $(PERL) $^ > $@
-
-SIRegisterGetHWRegNum.inc: SIGenRegisterInfo.pl
- $(PERL) $^ $@ > /dev/null
-
-R600Intrinsics.td: R600IntrinsicsNoOpenCL.td R600IntrinsicsOpenCL.td
-ifeq ($(HAVE_LLVM_INTRINSICS),)
- cp R600IntrinsicsNoOpenCL.td R600Intrinsics.td
-else
- cp R600IntrinsicsOpenCL.td R600Intrinsics.td
-endif
-
-R600RegisterInfo.td: R600GenRegisterInfo.pl
- $(PERL) $^ > $@
-
-AMDGPUGenRegisterInfo.inc: $(TD_FILES)
- $(call tablegen, -gen-register-info, AMDGPU.td, $@)
-
-AMDGPUGenInstrInfo.inc: $(TD_FILES)
- $(call tablegen, -gen-instr-info, AMDGPU.td, $@)
-
-AMDGPUGenAsmWriter.inc: $(TD_FILES)
- $(call tablegen, -gen-asm-writer, AMDGPU.td, $@)
-
-AMDGPUGenDAGISel.inc: $(TD_FILES)
- $(call tablegen, -gen-dag-isel, AMDGPU.td, $@)
-
-AMDGPUGenCallingConv.inc: $(TD_FILES)
- $(call tablegen, -gen-callingconv, AMDGPU.td, $@)
-
-AMDGPUGenSubtargetInfo.inc: $(TD_FILES)
- $(call tablegen, -gen-subtarget, AMDGPU.td, $@)
-
-AMDGPUGenEDInfo.inc: $(TD_FILES)
- $(call tablegen, -gen-enhanced-disassembly-info, AMDGPU.td, $@)
-
-AMDGPUGenIntrinsics.inc: $(TD_FILES)
- $(call tablegen, -gen-tgt-intrinsic, AMDGPU.td, $@)
-
-AMDGPUGenCodeEmitter.inc: $(TD_FILES)
- $(call tablegen, -gen-emitter, AMDGPU.td, $@)
-
-AMDGPUGenMCCodeEmitter.inc: $(TD_FILES)
- $(call tablegen, -mc-emitter -gen-emitter, AMDGPU.td, $@)
-
-AMDGPUGenDFAPacketizer.inc: $(TD_FILES)
- $(call tablegen, -gen-dfa-packetizer, AMDGPU.td, $@)
-
-LOADER_LIBS=$(shell llvm-config --libs bitreader asmparser)
-loader: loader.o libradeon.a
- gcc -o loader $(LLVM_LDFLAGS) -L/usr/local/lib $(LDFLAGS) loader.o libradeon.a $(LLVM_LIBS) $(LOADER_LIBS) -lpthread -ldl -lstdc++ -lm