.EXPORT_ALL_VARIABLES:

TARGET ?= security_notifications

COMMON_MAKEFILES_DIR ?= ./makefiles
include $(COMMON_MAKEFILES_DIR)/make.env

# Commands
# ------------------------------------------------------------------------------
all: clean prepare config build stage release install

untar: untar_

patch: patch_

prepare: untar patch

config: config_

build: build_

stage: stage_

release: release_

install: install_
	mkdir -p $(INSTALL_DIR)/usr/local/etc
	install uart_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install remote_conn_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install DoS_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install memory_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install thermal_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install conntrack_monitor.sh $(INSTALL_DIR)/usr/local/etc
	install crash_report.sh $(INSTALL_DIR)/usr/local/etc
ifeq ($(BRCM_CHIP), 3390)
	install jtag_monitor.sh $(INSTALL_DIR)/usr/local/etc
endif

clean: clean_

distclean: distclean_

# Common Makefiles
# ------------------------------------------------------------------------------
include $(COMMON_MAKEFILES_DIR)/make.script
