Files
rocm-systems/projects/clr/rocclr/compiler/lib/complibdefs
T
foreman bcf50975bc P4 to Git Change 1185140 by nhaustov@nhaustov_hsa on 2015/08/27 08:33:00
ECR #333753 - Introduce and use COMPLIB_DEPTH.

	This just makes possible to override COMPLIB_DEPTH for legacy compiler library.
	No actual changes what is built yet.

	Testing: pre-checkin

	Reviewed by: Matt, Evgeniy

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/Makefile#37 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/Makefile#14 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/build/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/build/Makefile.apiv08#16 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/Makefile#16 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/Makefile#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/build/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/build/Makefile.common#34 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/cpu/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/cpu/build/Makefile#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/cpu/build/Makefile.cpu#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/Makefile#49 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/build/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/build/Makefile.gpu#34 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/Makefile#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/build/Makefile#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/build/Makefile.scwrapper#30 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/build/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/build/Makefile.complib#93 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#44 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/complibrules#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/build/Makefile#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/build/Makefile.include#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/Makefile#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/Makefile#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/build/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/build/Makefile.amuabi#9 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/build/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/build/Makefile.bif#22 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/Makefile#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/build/Makefile#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/build/Makefile.loader#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/Makefile#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/build/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/utils/libelf/build/Makefile.libelf#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/plugins/Makefile#9 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/plugins/helloWorld/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/plugins/helloWorld/build/Makefile#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/plugins/helloWorld/build/Makefile.helloWorld#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/spirv/Makefile#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/spirv/build/Makefile#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/spirv/build/Makefile.spirv#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/Makefile#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/build/Makefile#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/build/Makefile.utils#17 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/aoc2/Makefile#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/aoc2/build/Makefile#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/tools/aoc2/build/Makefile.aoc2#30 edit
... //depot/stg/opencl/drivers/opencl/openclrules#89 edit


[ROCm/clr commit: 4a2cfbda56]
2015-08-27 08:45:08 -04:00

98 lines
2.6 KiB
Plaintext

OPENCL_DEPTH ?= $(COMPLIB_DEPTH)/../..
include $(OPENCL_DEPTH)/opencldefs
ELFTOOLCHAIN_DIR = $(COMPLIB_DEPTH)/loaders/elf/utils
ifdef GONE_TO_BUILD_DIR
ifeq ($(BUILD_HSA_TARGET),yes)
override BUILD_CPU_DEVICE = no
override BUILD_GPU_DEVICE = no
endif
ifneq ($(BUILD_LEGACY_COMPLIB),yes)
override BUILD_GPU_DEVICE = no
endif
endif
ifneq ($(BUILD_GPU_DEVICE),no)
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_AMDIL
endif
ifneq ($(BUILD_HSA_DEVICE),no)
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_HSAIL
ifneq ($(BUILD_GPU_DEVICE),no)
GCPPFLAGS += $(DEFSWITCH) DYNAMIC_HSAIL
endif
endif
ifneq ($(BUILD_CPU_DEVICE),no)
ifdef ATI_ARCH_ARM
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_ARM
endif
ifdef ATI_ARCH_X86
ifneq ($(BUILD_CPU_DEVICE),no)
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_X86
endif
endif
endif
GCPPFLAGS += $(INCSWITCH) "$(DEPTH)/drivers"
GCPPFLAGS += $(INCSWITCH) "$(DEPTH)/drivers/inc/asic_reg"
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)"
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime"
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime/utils"
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/utils"
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/api/opencl/khronos/headers/opencl2.0"
# Do we build the 0.9 version?
ifeq ($(BUILD_VERSION_0_9), 1)
GCPPFLAGS += $(DEFSWITCH) WITH_VERSION_0_9
CLVER_SUBDIR = v0_9
else
# Otherwise we build v0.8
GCPPFLAGS += $(DEFSWITCH) WITH_VERSION_0_8
CLVER_SUBDIR = v0_8
endif
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/utils/$(CLVER_SUBDIR)"
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/include/$(CLVER_SUBDIR)"
GCPPFLAGS += $(DEFSWITCH) "BREAK_ON_LOG_WARNING=0"
GCPPFLAGS += $(DEFSWITCH) "BREAK_ON_LOG_ERROR=0"
GCPPFLAGS += $(DEFSWITCH) "LOG_LEVEL=2"
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime/device/gpu/gslbe/src/rt"
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/pele/include/asic"
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/evergreen/include/asic"
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/si/include/asic"
export BRIG_ENABLE=1
ifdef ATI_OS_WINDOWS
GCPPFLAGS += $(INCSWITCH) "$(DK_ROOT)/$(DK_DX_SDK)/inc"
ifeq ($(BUILD_TYPE),dbg)
GCXXOPTS += /Ob1
endif
GCXXOPTS += -wd4985 -wd4355 -wd4800 -wd4291
GCPPFLAGS += $(DEFSWITCH) _SCL_SECURE_NO_WARNINGS
GCXXOPTS += /GR- # Disable Run-Time Type Information
endif
ifdef ATI_OS_LINUX
GCPPFLAGS += $(DEFSWITCH) __STDC_LIMIT_MACROS
GCPPFLAGS += $(DEFSWITCH) __STDC_CONSTANT_MACROS
GCXXOPTS += -fno-rtti
endif
ifeq ($(OPENCL_USE_ONE_SC),1)
GCPPFLAGS += $(DEFSWITCH) OPENCL_USE_ONE_SC
endif
ifneq (,$(wildcard $(COMPLIB_DEPTH)/loaders/elf/utils/blowfish/blowfish.h))
GCPPFLAGS += $(DEFSWITCH) HAVE_BLOWFISH_H
endif