switches/ depends on RAPIDIO_DEBUG so the subdir-ccflags-y variant seems to be appropriate here.
Signed-off-by: matt mooney Acked-by: WANG Cong Signed-off-by: Michal Marek
# # Makefile for RapidIO interconnect services # obj-y += rio.o rio-access.o rio-driver.o rio-scan.o rio-sysfs.o obj-$(CONFIG_RAPIDIO) += switches/ subdir-ccflags-$(CONFIG_RAPIDIO_DEBUG) := -DDEBUG