1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Makefile for libreCMC
  2. #
  3. # Copyright (C) 2007-2015 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. TOPDIR:=${CURDIR}
  9. LC_ALL:=C
  10. LANG:=C
  11. SDK:=1
  12. export TOPDIR LC_ALL LANG SDK
  13. world:
  14. export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
  15. ifneq ($(LIBRECMC_BUILD),1)
  16. override LIBRECMC_BUILD=1
  17. export LIBRECMC_BUILD
  18. empty:=
  19. space:= $(empty) $(empty)
  20. _SINGLE=export MAKEFLAGS=$(space);
  21. include $(TOPDIR)/include/debug.mk
  22. include $(TOPDIR)/include/depends.mk
  23. include $(TOPDIR)/include/toplevel.mk
  24. else
  25. include rules.mk
  26. include $(INCLUDE_DIR)/depends.mk
  27. include $(INCLUDE_DIR)/subdir.mk
  28. include package/Makefile
  29. $(package/stamp-compile): $(BUILD_DIR)/.prepared
  30. $(BUILD_DIR)/.prepared: Makefile
  31. @mkdir -p $$(dirname $@)
  32. @touch $@
  33. clean: FORCE
  34. git clean -f -d $(STAGING_DIR); true
  35. git clean -f -d $(BUILD_DIR); true
  36. git clean -f -d $(BIN_DIR); true
  37. dirclean: clean
  38. git reset --hard HEAD
  39. git clean -f -d
  40. rm -rf feeds/
  41. # check prerequisites before starting to build
  42. prereq: $(package/stamp-prereq) ;
  43. world: prepare $(package/stamp-compile) FORCE
  44. @$(MAKE) package/index
  45. .PHONY: clean dirclean prereq prepare world
  46. endif