You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
19 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
20 years ago
|
include $(TOPDIR)/rules.mk
|
||
19 years ago
|
include $(INCLUDE_DIR)/target.mk
|
||
20 years ago
|
|
||
|
all: install
|
||
|
|
||
|
$(BIN_DIR):
|
||
|
mkdir -p $(BIN_DIR)
|
||
|
|
||
19 years ago
|
TARGETS-y := linux utils
|
||
|
TARGETS-$(CONFIG_SDK) += sdk
|
||
19 years ago
|
|
||
19 years ago
|
linux-compile: utils-install
|
||
20 years ago
|
linux-install: $(BIN_DIR)
|
||
19 years ago
|
image_install: linux-install
|
||
20 years ago
|
|
||
19 years ago
|
download: $(patsubst %,%-download,$(TARGETS-y))
|
||
19 years ago
|
prepare: linux-prepare
|
||
19 years ago
|
compile: linux-compile image_compile
|
||
|
install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
|
||
19 years ago
|
clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
|
||
20 years ago
|
|
||
19 years ago
|
image_clean: FORCE
|
||
19 years ago
|
$(MAKE) -C image/$(BOARD) clean
|
||
20 years ago
|
rm -f $(BIN_DIR)/openwrt-*
|
||
19 years ago
|
|
||
|
image_compile: FORCE
|
||
|
$(MAKE) -C image/$(BOARD) compile
|
||
|
|
||
|
image_install: image_compile
|
||
|
$(MAKE) -C image/$(BOARD) install
|
||
20 years ago
|
|
||
19 years ago
|
%-clean: FORCE
|
||
20 years ago
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
||
19 years ago
|
%-download: FORCE
|
||
|
$(MAKE) -C $(patsubst %-download,%,$@) download
|
||
19 years ago
|
%-prepare: FORCE
|
||
20 years ago
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
||
|
%-compile: %-prepare
|
||
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile
|
||
|
%-install: %-compile
|
||
|
$(MAKE) -C $(patsubst %-install,%,$@) install
|
||
19 years ago
|
|