1
0

Makefile 931 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # Copyright (C) 2007 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. curdir:=target
  8. $(curdir)/subtargets:=install
  9. $(curdir)/builddirs:=linux sdk imagebuilder toolchain llvm-bpf
  10. $(curdir)/builddirs-default:=linux
  11. $(curdir)/builddirs-install:=\
  12. linux \
  13. $(if $(CONFIG_SDK),sdk) \
  14. $(if $(CONFIG_IB),imagebuilder) \
  15. $(if $(CONFIG_MAKE_TOOLCHAIN),toolchain) \
  16. $(if $(CONFIG_SDK_LLVM_BPF),llvm-bpf)
  17. $(curdir)/sdk/install:=$(curdir)/linux/install
  18. $(curdir)/imagebuilder/install:=$(curdir)/linux/install
  19. $(curdir)//compile = $(STAGING_DIR)/.prepared $(BIN_DIR)
  20. $(eval $(call stampfile,$(curdir),target,prereq,.config))
  21. $(eval $(call stampfile,$(curdir),target,compile,$(TMP_DIR)/.build))
  22. $(eval $(call stampfile,$(curdir),target,install,$(TMP_DIR)/.build))
  23. $($(curdir)/stamp-install): $($(curdir)/stamp-compile)
  24. $(eval $(call subdir,$(curdir)))