#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
obj-$(CONFIG_NET_APP) += init.o
obj-$(CONFIG_NET_APP_SERVER) += server.o
obj-$(CONFIG_NET_APP_CLIENT) += client.o

ifeq ($(CONFIG_NET_APP_SERVER),y)
	obj-y += net_app.o
else
	ifeq ($(CONFIG_NET_APP_CLIENT),y)
		obj-y += net_app.o
	endif
endif

ifeq ($(CONFIG_NET_APP_SETTINGS),y)
	obj-$(CONFIG_NET_L2_IEEE802154) += ieee802154_settings.o
	obj-$(CONFIG_NET_L2_BT) += bt_settings.o
endif

ccflags-$(CONFIG_NEWLIB_LIBC) += -D__LINUX_ERRNO_EXTENSIONS__
