0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-20 03:43:47 +02:00

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

View file

@ -436,6 +436,8 @@ gpt_gpu.spv.cc: gpt_gpu.spv
# GCN-HSA # GCN-HSA
# #
if AMD64
GCN_HSA_TARGET = amdgcn--amdhsa GCN_HSA_TARGET = amdgcn--amdhsa
GCN_HSA_CPPFLAGS = $(GPU_CPPFLAGS) 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 gpt_gpu.gcn_hsa.bc.cc: gpt_gpu.gcn_hsa.bc
xxd -i $^ $@ xxd -i $^ $@
endif # AMD64
# #
# R600 # R600
# #
if AMD64
R600_TARGET = r600-- 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 gpt_gpu.r600_barts.bc.cc: gpt_gpu.r600_barts.bc
xxd -i $^ $@ xxd -i $^ $@
endif # AMD64
# #
# #
# #