# Copyright (c) 2013-2020, Sonos, Inc.  All rights reserved.

UPTO_ROOT := ../../..
include $(UPTO_ROOT)/mtools/master.mk

SUBDIRS :=

INCLUDES += -I$(UPTO_ROOT)/cc/event_reporter \
	    $(KERNEL_INCLUDES)

ifdef SONOS_ARCH_ATTR_SUPPORTS_EXTERNAL_EVENTS
LDFLAGS   += -L$(UPTO_ROOT)/cc/event_reporter/$(BLDDIR) -leventreporter
endif

# Uncomment this to output messages to syslog client
DEFINES += -DSYSLOG -DALLOW_KERNEL_LOG_FORMAT
# Uncomment this to output messages to stdout
# DEFINES += -DSTDOUTLOG
# Uncomment this to output messages to jffs
# DEFINES += -DJFFSFILELOG

VER := 0.9.8
DEFINES += -DVERSION='"$(VER)"'

PROGRAM_NAME        :=  udhcpc
PROGRAM_CFILES      :=  \
	options.c \
	socket.c \
	packet.c \
	pidfile.c \
	dhcpc.c \
	clientpacket.c \
	nlhelp.c \
	script.c \
	sonos_time.c \
	syslog_client.c \
	zeroconf.c

include $(PROGRAM_MK)

include $(BOTTOM_MK)

