projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system refactoring in preparation for allowing packages to do host-build steps
[openwrt-10.03/.git]
/
toolchain
/
gdb
/
Makefile
diff --git
a/toolchain/gdb/Makefile
b/toolchain/gdb/Makefile
index be3e423a1c6e6ebca8598420c477f38d11208382..4911faef1c844b5c9ef90c6e9c2d0888c55ffd7f 100644
(file)
--- a/
toolchain/gdb/Makefile
+++ b/
toolchain/gdb/Makefile
@@
-19,11
+19,11
@@
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/host-build.mk
-define
Build
/Configure
- (cd $(
PKG
_BUILD_DIR); \
+define
Host
/Configure
+ (cd $(
HOST
_BUILD_DIR); \
gdb_cv_func_sigsetjmp=yes \
CFLAGS="-O2" \
gdb_cv_func_sigsetjmp=yes \
CFLAGS="-O2" \
- $(
PKG
_BUILD_DIR)/configure \
+ $(
HOST
_BUILD_DIR)/configure \
--prefix=$(TOOLCHAIN_DIR)/usr \
--build=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--prefix=$(TOOLCHAIN_DIR)/usr \
--build=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
@@
-36,20
+36,20
@@
define Build/Configure
);
endef
);
endef
-define
Build
/Compile
- $(MAKE) -C $(
PKG
_BUILD_DIR)
+define
Host
/Compile
+ $(MAKE) -C $(
HOST
_BUILD_DIR)
endef
endef
-define
Build
/Install
+define
Host
/Install
mkdir -p $(TOOLCHAIN_DIR)/usr/bin
mkdir -p $(TOOLCHAIN_DIR)/usr/bin
- $(INSTALL_BIN) $(
PKG
_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
+ $(INSTALL_BIN) $(
HOST
_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
endef
ln -fs $(TARGET_CROSS)gdb $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
strip $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb
endef
-define
Build
/Clean
+define
Host
/Clean
rm -rf \
rm -rf \
- $(
PKG
_BUILD_DIR) \
+ $(
HOST
_BUILD_DIR) \
$(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb \
$(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
endef
$(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CROSS)gdb \
$(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
endef