2004-02-11 07:44:47 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ltrace
|
|
|
|
#
|
|
|
|
#############################################################
|
2005-01-20 00:10:13 +01:00
|
|
|
LTRACE_SOURCE=ltrace_0.3.36.orig.tar.gz
|
2005-04-14 10:00:27 +02:00
|
|
|
LTRACE_SOURCE2=ltrace_0.3.36-2.diff.gz
|
2004-02-11 07:44:47 +01:00
|
|
|
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
|
2004-02-11 07:44:47 +01:00
|
|
|
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
|
|
|
|
|
2004-02-11 07:44:47 +01:00
|
|
|
$(DL_DIR)/$(LTRACE_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
|
|
|
|
|
2005-04-14 10:00:27 +02:00
|
|
|
$(DL_DIR)/$(LTRACE_SOURCE2):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE2)
|
|
|
|
|
|
|
|
$(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE) $(DL_DIR)/$(LTRACE_SOURCE2)
|
2004-10-09 23:19:47 +02:00
|
|
|
zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-04-14 10:00:27 +02:00
|
|
|
zcat $(DL_DIR)/$(LTRACE_SOURCE2) | patch -p1 -d $(LTRACE_DIR)
|
2004-02-11 07:44:47 +01:00
|
|
|
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)
|
2004-02-11 07:44:47 +01:00
|
|
|
|
|
|
|
$(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
|
2004-02-11 07:44:47 +01:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
|
|
|
|
2005-04-14 10:00:27 +02:00
|
|
|
ltrace: uclibc libelf $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
|
2004-02-11 07:44:47 +01:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LTRACE)),y)
|
|
|
|
TARGETS+=ltrace
|
|
|
|
endif
|