GTGPU_PRO_PATH := $(src)

subdir-ccflags-y := -Wall -Werror -fno-stack-protector

include $(GTGPU_PRO_PATH)/gtgpu/Makefile
include $(GTGPU_PRO_PATH)/gtdma/Makefile
include $(GTGPU_PRO_PATH)/gtsrvkm/Makefile
include $(GTGPU_PRO_PATH)/gtpmbus/Makefile
include $(GTGPU_PRO_PATH)/gtpower/Makefile
include $(GTGPU_PRO_PATH)/gtvpu/Makefile
include $(GTGPU_PRO_PATH)/tools/Makefile


subdir-ccflags-y += \
	$(GTGPU_INCLUDE) \
	$(GTDMA_INCLUDE) \
	$(GTDPU_INCLUDE) \
	$(GTSRVKM_INCLUDE) \
	$(GTPMBUS_INCLUDE) \
	$(GTPOWER_INCLUDE) \
	$(GTVPU_INCLUDE) \
	$(GTGPU_INFO_INCLUDE) \

ccflags-y += \
	-include config_kernel.h \
	-include kernel_autocfg.h

gtgpu-y := $(GTGPU)
gtgpu-y += $(GTDMA)
gtgpu-y += $(GTSRVKM)
gtgpu-y += $(GTPMBUS)
gtgpu-y += $(GTPOWER)
gtgpu-y += $(GTVPU)
gtgpu-y += $(GTGPU_INFO)

obj-m += gtgpu.o

