1SUBDIRS = libupload tools lib elflink/ldlinux gpllib libutil modules mboot \ 2 menu samples elflink rosh cmenu hdt gfxboot sysdump lua/src chain 3 4.PHONY: subdirs $(SUBDIRS) 5subdirs: $(SUBDIRS) 6$(SUBDIRS): 7 @mkdir -p $(OBJ)/$@ 8 $(MAKE) -C $(OBJ)/$@ SRC="$(SRC)"/$@ OBJ="$(OBJ)"/$@/ \ 9 -f $(SRC)/$@/Makefile $(MAKECMDGOALS) 10 11all tidy dist clean spotless install: subdirs 12 13# Parallel dependencies 14chain mboot menu: lib libutil gpllib 15cmenu: lib libutil 16elflink/ldlinux: lib 17gfxboot: lib libutil gpllib 18hdt: lib libupload cmenu gpllib libutil 19modules: lib libutil gpllib 20rosh: lib libutil 21samples: libutil elflink/ldlinux 22sysdump: lib libutil libupload gpllib 23lua/src: cmenu modules 24