Commit af2cf2e3 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace/Makefile: use SUBDIRS in loops

parent b4116018
......@@ -12,31 +12,19 @@ CROSS_COMPILE_ARM ?= $(CROSS_COMPILE)
# subdirectories we want to compile
SUBDIRS = libswitchhw wrsw_hal wrsw_rtud
# SUBDIRS += spll_dbg_proxy wrsw_rtud wr_mon rtu_stat
# all variables are exported
# All targets must install as well, as later builds use headers/libs
$(MAKE) -C libswitchhw all install
$(MAKE) -C wrsw_hal all install
$(MAKE) -C wrsw_rtud all
# $(MAKE) -C tests/rtu_stat TARGET=ARM all
for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
$(MAKE) -C libswitchhw clean
$(MAKE) -C wrsw_hal clean
$(MAKE) -C wrsw_rtud clean
# $(MAKE) -C tests/wr_mon clean
# $(MAKE) -C tests/rtu_stat clean
for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
install: all
$(MAKE) -C libswitchhw install
$(MAKE) -C wrsw_hal install
$(MAKE) -C wrsw_rtud install
# $(MAKE) -C tests/rtu_stat TARGET=ARM deploy
# ./rubi-repos/ $(WR_INSTALL_ROOT)
#rootfs: install
# mkdir -p $(WR_INSTALL_ROOT)/firmware
# cp $(WRDEV_DIR)/hdl/bin/*.bin $(WR_INSTALL_ROOT)/firmware
# ../scripts/
for d in $(SUBDIRS); do $(MAKE) -C $$d $@ || exit 1; done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment