1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 08:19:43 +02:00
openwrt-xburst/include/package-debug.mk
nbd 928d915afc add support for an optional staging directory for debug binaries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-13 03:21:25 +00:00

27 lines
568 B
Makefile

#
# Copyright (C) 2006,2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifeq ($(DUMP),)
define BuildTarget/debug
DEBUG_STAMP_$(1) := $(DEBUG_DIR)/stamp/$(1)
ifdef Package/$(1)/install
ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),)
compile: $$(DEBUG_STAMP_$(1))
endif
endif
$$(DEBUG_STAMP_$(1)): $(PKG_BUILD_DIR)/.built
mkdir -p $(DEBUG_DIR)/stamp
$(call Package/$(1)/install,$(DEBUG_DIR))
touch $$(DEBUG_STAMP_$(1))
endef
endif