ircd/Makefile: Platform-conditional compilation for amdgcn/r600.

This commit is contained in:
Jason Volk 2023-04-08 13:31:56 -07:00
parent 8c629f20a6
commit e30c77283c
1 changed files with 8 additions and 0 deletions

View File

@ -436,6 +436,8 @@ gpt_gpu.spv.cc: gpt_gpu.spv
# GCN-HSA
#
if AMD64
GCN_HSA_TARGET = amdgcn--amdhsa
GCN_HSA_CPPFLAGS = $(GPU_CPPFLAGS)
@ -470,10 +472,14 @@ libircd_la_SOURCES += gpt_gpu.gcn_hsa.bc.cc
gpt_gpu.gcn_hsa.bc.cc: gpt_gpu.gcn_hsa.bc
xxd -i $^ $@
endif # AMD64
#
# R600
#
if AMD64
R600_TARGET = r600--
#
@ -511,6 +517,8 @@ libircd_la_SOURCES += gpt_gpu.r600_barts.bc.cc
gpt_gpu.r600_barts.bc.cc: gpt_gpu.r600_barts.bc
xxd -i $^ $@
endif # AMD64
#
#
#