Files
lk/module.mk
Travis Geiselbrecht f54ab82112 flatten the make system a little bit by providing only modules as a
compilation unit.

to add a module as a dependency of another, just add to the MODULE make
variable, instead of APPS/LIBS/DEVS
2008-09-05 04:18:30 -07:00

22 lines
565 B
Makefile

# included from the main makefile to include a set of rules.mk to satisfy
# the current MODULE list. If as a byproduct of including the rules.mk
# more stuff shows up on the MODULE list, recurse
# sort and filter out any modules that have already been included
MODULES := $(sort $(MODULES))
MODULES := $(filter-out $(ALLMODULES),$(MODULES))
ifneq ($(MODULES),)
ALLMODULES += $(MODULES)
ALLMODULES := $(sort $(ALLMODULES))
INCMODULES := $(MODULES)
MODULES :=
$(info including $(INCMODULES))
include $(addsuffix /rules.mk,$(INCMODULES))
include module.mk
endif