xref: /openbmc/skeleton/Makefile (revision 2f3213f9)
140a360c2SBrad BishopGDBUS_APPS = bmcctl \
240a360c2SBrad Bishop	     flashbios \
3066d56f8SAdriana Kobylak	     hostcheckstop \
440a360c2SBrad Bishop	     hostwatchdog \
540a360c2SBrad Bishop	     op-flasher \
640a360c2SBrad Bishop	     op-hostctl \
740a360c2SBrad Bishop	     op-pwrctl \
840a360c2SBrad Bishop	     pciedetect \
940a360c2SBrad Bishop	     pwrbutton \
1040a360c2SBrad Bishop	     rstbutton
11e276510cSNorman James
12*2f3213f9SYi LiSUBDIRS = fanctl \
13*2f3213f9SYi Li	  hacks \
1440a360c2SBrad Bishop	  ledctl \
1540a360c2SBrad Bishop	  libopenbmc_intf \
1640a360c2SBrad Bishop	  pychassisctl \
1740a360c2SBrad Bishop	  pydownloadmgr \
1840a360c2SBrad Bishop	  pyflashbmc \
1940a360c2SBrad Bishop	  pyhwmon \
2040a360c2SBrad Bishop	  pyinventorymgr \
2140a360c2SBrad Bishop	  pyipmitest \
2240a360c2SBrad Bishop	  pysensormgr \
2340a360c2SBrad Bishop	  pystatemgr \
2440a360c2SBrad Bishop	  pysystemmgr \
2540a360c2SBrad Bishop	  pytools
26e276510cSNorman James
276f4ba053SBrad BishopREVERSE_SUBDIRS = $(shell echo $(SUBDIRS) $(GDBUS_APPS) | tr ' ' '\n' | tac |tr '\n' ' ')
28ddb97385SNorman James
296f4ba053SBrad Bishop.PHONY: subdirs $(SUBDIRS) $(GDBUS_APPS)
30e276510cSNorman James
316f4ba053SBrad Bishopsubdirs: $(SUBDIRS) $(GDBUS_APPS)
32e276510cSNorman James
3340a360c2SBrad Bishop$(SUBDIRS):
3440a360c2SBrad Bishop	$(MAKE) -C $@
351e25d1d0SNorman James
3640a360c2SBrad Bishop$(GDBUS_APPS): libopenbmc_intf
376f4ba053SBrad Bishop	$(MAKE) -C $@ CFLAGS="-I ../$^" LDFLAGS="-L ../$^"
38597d49e6SAdriana Kobylak
3940a360c2SBrad Bishopinstall: subdirs
406f4ba053SBrad Bishop	@for d in $(SUBDIRS) $(GDBUS_APPS); do \
4140a360c2SBrad Bishop		$(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
4240a360c2SBrad Bishop	done
435e792e34SNorman Jamesclean:
4440a360c2SBrad Bishop	@for d in $(REVERSE_SUBDIRS); do \
4540a360c2SBrad Bishop		$(MAKE) -C $$d $@ || exit 1; \
4640a360c2SBrad Bishop	done
47