diff --git a/samples/net/common/Makefile.common b/samples/net/common/Makefile.common index 6d50045b16f..c5c7d7a6665 100644 --- a/samples/net/common/Makefile.common +++ b/samples/net/common/Makefile.common @@ -7,8 +7,8 @@ # Common routines used in net samples ifeq ($(CONFIG_NET_L2_BLUETOOTH), y) -CFLAGS +=-I${ZEPHYR_BASE}/samples/bluetooth/ -obj-y += ../bluetooth/gatt/ipss.o +ccflags-y += -I${ZEPHYR_BASE}/samples/bluetooth/ +obj-y += ../../../bluetooth/gatt/ipss.o endif ifeq ($(CONFIG_NET_L2_IEEE802154), y)