kumquat-buildroot/package/ltrace/ltrace.mk

64 lines
1.7 KiB
Makefile
Raw Normal View History

#############################################################
#
# ltrace
#
#############################################################
2005-01-20 00:10:13 +01:00
LTRACE_SOURCE=ltrace_0.3.36.orig.tar.gz
LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
2005-01-20 00:10:13 +01:00
LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.36
LTRACE_BINARY=ltrace
LTRACE_TARGET_BINARY=usr/bin/ltrace
2004-09-03 06:12:31 +02:00
LTRACE_ARCH:=$(ARCH)
ifeq ("$(strip $(ARCH))","armeb")
LTRACE_ARCH:=arm
endif
$(DL_DIR)/$(LTRACE_SOURCE):
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
$(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE)
zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $(LTRACE_DIR)/.source
$(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
(cd $(LTRACE_DIR); \
$(TARGET_CONFIGURE_OPTS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--sysconfdir=/etc \
);
touch $(LTRACE_DIR)/.configured;
$(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
2004-09-03 06:12:31 +02:00
$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(LTRACE_ARCH) \
-C $(LTRACE_DIR)
$(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
2004-09-03 06:12:31 +02:00
$(MAKE) DESTDIR=$(TARGET_DIR) ARCH=$(LTRACE_ARCH) \
-C $(LTRACE_DIR) install
rm -Rf $(TARGET_DIR)/usr/man
ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE)
ltrace-clean:
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
-$(MAKE) -C $(LTRACE_DIR) clean
ltrace-dirclean:
rm -rf $(LTRACE_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_LTRACE)),y)
TARGETS+=ltrace
endif