

#------- Comment/uncomment the following line to enable/disable debugging---------
DEBUG = n
#---------------------- Compute TOPDIR and include Rules file --------------------
ifndef TOPDIR
TOPDIR  := $(shell cd ../../../..; pwd)
endif
include $(TOPDIR)/development/rules/Rules.make.IPMI


#---------------------- Change according to your files ----------------------------
#SUBDIRS  = $(TOPDIR)/development/oem/firmware/IPMI/oem/$(PDK_DIR) core

#
# AMI builds the PDK_DIR before the core, yet we have parts of the PDK that require
# the core to be build first.  The Makefile development/oem/firmware builds only the part
# that gets built before the core, the Makefile development/oem builds only the part that gets
# built after.
#
#$$ SUBDIRS  = $(TOPDIR)/development/oem/firmware/IPMI/oem/$(PDK_DIR)
SUBDIRS += core
SUBDIRS += $(TOPDIR)/development/oem


#--------------WARNING : Donot Modify anything below this line ---------------------
all: subdirs # If your module exports symbols
	@echo 
	@echo "Building IPMI completed successfully."
	@echo

subdirs:
	@for n in $(SUBDIRS); do $(MAKE) -C $$n all|| exit 1; done

install:
	@for n in $(SUBDIRS); do $(MAKE) -C $$n install || exit 1; done
	@echo 
	@echo "Installing IPMI completed successfully."
	@echo

clean:
	@for n in $(SUBDIRS); do $(MAKE) -C $$n clean || exit 1; done

lint:
	@for n in $(SUBDIRS); do $(MAKE) -C $$n lint; done


ifeq (.depend,$(wildcard .depend))
include .depend
endif
#----------------------------------------------------------------------------------------
