# SPDX-License-Identifier: GPL-2.0
EXTRA_CFLAGS += -DPS3_CFG_RELEASE
EXTRA_CFLAGS += -DPS3_HARDWARE_ASIC
EXTRA_CFLAGS += -DPS3_MODEL_V200

obj-$(CONFIG_SCSI_PS3STOR) += ps3stor.o

ps3stor-objs := $(patsubst %.c, %.o, $(notdir $(wildcard $(src)/*.c)))
ps3stor-objs += $(patsubst %.c, linux/%.o, $(notdir $(wildcard $(src)/linux/*.c)))

ccflags-y := \
	-Werror \
	-Wno-address \
	-frecord-gcc-switches

ccflags-y += $(call cc-option, -Wmaybe-uninitialized)

ccflags-y += \
	-I$(src) \
	-I$(src)/linux \
	-I$(src)/include \
	-I$(src)/include/htp_v200
