#
# Copyright (c) 2014 Wi-Fi Alliance
# 
# Permission to use, copy, modify, and/or distribute this software for any 
# purpose with or without fee is hereby granted, provided that the above 
# copyright notice and this permission notice appear in all copies.
# 
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER 
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
# USE OR PERFORMANCE OF THIS SOFTWARE.
#
include Makefile.inc

DIRS= ${LIB} ${DUT} ${CA} ${TC}

all:
	for i in ${DIRS}; do \
		$(MAKE) -C $$i || exit 1; \
	done

clean:
	for i in ${DIRS}; do \
		$(MAKE) -C $$i clean || exit 1; \
	done
	
romfs:
	$(ROMFSINST) ./dut/wfa_dut /sbin/wfa_dut
	$(ROMFSINST) ./ca/wfa_ca /sbin/wfa_ca
	$(ROMFSINST) ./scripts/arp_neigh_loop /sbin/arp_neigh_loop
	$(ROMFSINST) ./scripts/getipconfig.sh /sbin/getipconfig.sh
	$(ROMFSINST) ./scripts/getpid.sh /sbin/getpid.sh
	$(ROMFSINST) ./scripts/getpstats.sh /sbin/getpstats.sh
	$(ROMFSINST) ./scripts/gpstats.sh /sbin/gpstats.sh
	$(ROMFSINST) ./scripts/stoping.sh /sbin/stoping.sh
	$(ROMFSINST) ./scripts/updatepid.sh /sbin/updatepid.sh
	$(ROMFSINST) ./scripts/wfaping6.sh /sbin/wfaping6.sh
	$(ROMFSINST) ./scripts/wfaping.sh /sbin/wfaping.sh
	$(ROMFSINST) ./scripts/wfa_test_cli.sh /sbin/wfa_test_cli.sh
#	$(ROMFSINST) ./ping /bin/ping
