2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-20 02:53:40 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 14:02:29 +00:00
|
|
|
include $(INCLUDE_DIR)/target.mk
|
2005-03-20 02:53:40 +00:00
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
$(BIN_DIR):
|
|
|
|
mkdir -p $(BIN_DIR)
|
|
|
|
|
2006-06-21 03:17:13 +00:00
|
|
|
TARGETS-y := linux utils
|
|
|
|
TARGETS-$(CONFIG_SDK) += sdk
|
2006-06-20 23:56:49 +00:00
|
|
|
|
2006-06-21 02:16:37 +00:00
|
|
|
linux-compile: utils-install
|
2005-07-17 22:52:59 +00:00
|
|
|
linux-install: $(BIN_DIR)
|
2006-06-21 03:17:13 +00:00
|
|
|
sdk-compile: linux-install
|
2006-06-21 14:02:29 +00:00
|
|
|
image_install: linux-install
|
2005-06-11 21:18:26 +00:00
|
|
|
|
2006-06-21 03:17:13 +00:00
|
|
|
download: $(patsubst %,%-source,$(TARGETS-y))
|
2006-01-13 22:34:55 +00:00
|
|
|
prepare: linux-prepare
|
2006-06-21 14:02:29 +00:00
|
|
|
compile: linux-compile image_compile
|
|
|
|
install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
|
2006-06-21 03:17:13 +00:00
|
|
|
clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
|
2005-06-11 21:18:26 +00:00
|
|
|
|
2006-05-31 23:29:05 +00:00
|
|
|
image_clean: FORCE
|
2006-06-21 14:02:29 +00:00
|
|
|
$(MAKE) -C image/$(BOARD) clean
|
2005-06-11 21:18:26 +00:00
|
|
|
rm -f $(BIN_DIR)/openwrt-*
|
2006-06-21 14:02:29 +00:00
|
|
|
|
|
|
|
image_compile: FORCE
|
|
|
|
$(MAKE) -C image/$(BOARD) compile
|
|
|
|
|
|
|
|
image_install: image_compile
|
|
|
|
$(MAKE) -C image/$(BOARD) install
|
2005-06-11 21:18:26 +00:00
|
|
|
|
2006-05-31 23:29:05 +00:00
|
|
|
%-clean: FORCE
|
2005-03-20 02:53:40 +00:00
|
|
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
2006-06-20 23:56:49 +00:00
|
|
|
%-source: FORCE
|
|
|
|
$(MAKE) -C $(patsubst %-source,%,$@) source
|
2006-05-31 23:29:05 +00:00
|
|
|
%-prepare: FORCE
|
2005-03-20 02:53:40 +00:00
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
|
|
|
%-compile: %-prepare
|
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) compile
|
|
|
|
%-install: %-compile
|
|
|
|
$(MAKE) -C $(patsubst %-install,%,$@) install
|
2006-02-24 20:59:09 +00:00
|
|
|
|