xref: /openbmc/skeleton/Makefile (revision eaedbe94)
140a360c2SBrad BishopGDBUS_APPS = bmcctl \
240a360c2SBrad Bishop	     flashbios \
340a360c2SBrad Bishop	     op-flasher \
440a360c2SBrad Bishop	     op-hostctl \
5*eaedbe94SBrad Bishop	     op-pwrctl
6e276510cSNorman James
72f3213f9SYi LiSUBDIRS = fanctl \
840a360c2SBrad Bishop	  ledctl \
940a360c2SBrad Bishop	  libopenbmc_intf \
1040a360c2SBrad Bishop	  pychassisctl \
1140a360c2SBrad Bishop	  pydownloadmgr \
1240a360c2SBrad Bishop	  pyflashbmc \
1340a360c2SBrad Bishop	  pyinventorymgr \
1440a360c2SBrad Bishop	  pyipmitest \
1540a360c2SBrad Bishop	  pystatemgr \
1640a360c2SBrad Bishop	  pysystemmgr \
1740a360c2SBrad Bishop	  pytools
18e276510cSNorman James
196f4ba053SBrad BishopREVERSE_SUBDIRS = $(shell echo $(SUBDIRS) $(GDBUS_APPS) | tr ' ' '\n' | tac |tr '\n' ' ')
20ddb97385SNorman James
216f4ba053SBrad Bishop.PHONY: subdirs $(SUBDIRS) $(GDBUS_APPS)
22e276510cSNorman James
236f4ba053SBrad Bishopsubdirs: $(SUBDIRS) $(GDBUS_APPS)
24e276510cSNorman James
2540a360c2SBrad Bishop$(SUBDIRS):
2640a360c2SBrad Bishop	$(MAKE) -C $@
271e25d1d0SNorman James
2840a360c2SBrad Bishop$(GDBUS_APPS): libopenbmc_intf
296f4ba053SBrad Bishop	$(MAKE) -C $@ CFLAGS="-I ../$^" LDFLAGS="-L ../$^"
30597d49e6SAdriana Kobylak
3140a360c2SBrad Bishopinstall: subdirs
326f4ba053SBrad Bishop	@for d in $(SUBDIRS) $(GDBUS_APPS); do \
3340a360c2SBrad Bishop		$(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
3440a360c2SBrad Bishop	done
355e792e34SNorman Jamesclean:
3640a360c2SBrad Bishop	@for d in $(REVERSE_SUBDIRS); do \
3740a360c2SBrad Bishop		$(MAKE) -C $$d $@ || exit 1; \
3840a360c2SBrad Bishop	done
39