summaryrefslogtreecommitdiff
path: root/openwrt/package/rules.mk
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-04-21 10:03:46 +0000
committerMike Baker <mbm@openwrt.org>2006-04-21 10:03:46 +0000
commit170f0e635c21e459495016d7acb5da00c9634363 (patch)
treee750e5fdedf74fc38abc909dea2499027774a705 /openwrt/package/rules.mk
parentac2bee9082803a381cda32c87f1d7151f67fa6d5 (diff)
downloadmtk-20170518-170f0e635c21e459495016d7acb5da00c9634363.zip
mtk-20170518-170f0e635c21e459495016d7acb5da00c9634363.tar.gz
mtk-20170518-170f0e635c21e459495016d7acb5da00c9634363.tar.bz2
Add default compile target & use it for bridge and busybox
SVN-Revision: 3693
Diffstat (limited to 'openwrt/package/rules.mk')
-rw-r--r--openwrt/package/rules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk
index 916bb0f..17f6c61 100644
--- a/openwrt/package/rules.mk
+++ b/openwrt/package/rules.mk
@@ -213,7 +213,13 @@ define Build/Configure
endef
define Build/Compile/Default
-# TODO: add configurable default command
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC=$(TARGET_CC) \
+ CROSS="$(TARGET_CROSS)" \
+ PREFIX="$$(IDIR_$(1))" \
+ EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
+ ARCH="$(ARCH)" \
+ DESTDIR="$$(IDIR_$(1))"
endef
define Build/Compile