node-end.mk 783 B

12345678910111213141516171819202122232425262728293031
  1. # Should be included at the end of each node.mk file.
  2. # Process this node.
  3. SOURCES_FULL+=$(sort \
  4. $(addprefix $(CURDIR),$(addsuffix .cpp, \
  5. $(MOC_SRC_HDR) $(SRC_HDR) $(SRC_ONLY) \
  6. )))
  7. HEADERS_FULL+=$(sort \
  8. $(addprefix $(CURDIR),$(addsuffix .h, \
  9. $(MOC_SRC_HDR) $(SRC_HDR) $(HDR_ONLY) \
  10. )))
  11. MOC_HDR_FULL+=$(sort \
  12. $(addprefix $(CURDIR),$(addsuffix .h, \
  13. $(MOC_SRC_HDR) \
  14. )))
  15. UI_FULL+=$(sort \
  16. $(addprefix $(CURDIR),$(addsuffix .ui, \
  17. $(UI) \
  18. )))
  19. # Process subnodes.
  20. ifneq ($(SUBDIRS),)
  21. SUBDIRS:=$(addsuffix /,$(SUBDIRS))
  22. SUBDIRSTACK:=$(SUBDIRS) $(SUBDIRSTACK)
  23. include $(addprefix $(CURDIR),$(addsuffix node.mk,$(SUBDIRS)))
  24. endif
  25. # Pop current directory off directory stack.
  26. CURDIR:=$(firstword $(DIRSTACK))
  27. DIRSTACK:=$(wordlist 2,$(words $(DIRSTACK)),$(DIRSTACK))