2002-05-23 21:21:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# strace
|
|
|
|
#
|
|
|
|
#############################################################
|
2004-09-03 02:49:43 +02:00
|
|
|
#STRACE_SOURCE:=strace-4.5.3.tar.bz2
|
|
|
|
STRACE_SOURCE:=strace-4.5.6.tar.bz2
|
2003-06-13 00:32:59 +02:00
|
|
|
STRACE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/strace
|
2003-11-01 06:57:07 +01:00
|
|
|
STRACE_CAT:=bzcat
|
2004-09-03 02:49:43 +02:00
|
|
|
#STRACE_DIR:=$(BUILD_DIR)/strace-4.5.3
|
|
|
|
STRACE_DIR:=$(BUILD_DIR)/strace-4.5.6
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-01-17 09:03:59 +01:00
|
|
|
|
2002-05-23 21:21:23 +02:00
|
|
|
$(DL_DIR)/$(STRACE_SOURCE):
|
2003-01-17 09:03:59 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(STRACE_SITE)/$(STRACE_SOURCE)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
strace-source: $(DL_DIR)/$(STRACE_SOURCE)
|
|
|
|
|
2003-01-17 09:03:59 +01:00
|
|
|
$(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
|
|
|
|
$(STRACE_CAT) $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
|
|
|
touch $(STRACE_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
|
|
|
|
(cd $(STRACE_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2003-11-01 06:34:41 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2003-01-17 09:03:59 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-01-23 18:02:44 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2003-11-17 02:31:38 +01:00
|
|
|
$(DISABLE_LARGEFILE) \
|
2003-01-17 09:03:59 +01:00
|
|
|
);
|
|
|
|
touch $(STRACE_DIR)/.configured
|
|
|
|
|
|
|
|
$(STRACE_DIR)/strace: $(STRACE_DIR)/.configured
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(STRACE_DIR)
|
2003-01-17 09:03:59 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
|
|
|
|
install -c $(STRACE_DIR)/strace $(TARGET_DIR)/usr/bin/strace
|
2003-11-01 06:34:41 +01:00
|
|
|
$(STRIP) $(TARGET_DIR)/usr/bin/strace > /dev/null 2>&1
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2003-01-17 09:03:59 +01:00
|
|
|
strace: uclibc $(TARGET_DIR)/usr/bin/strace
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
strace-clean:
|
2003-01-17 09:03:59 +01:00
|
|
|
$(MAKE) -C $(STRACE_DIR) clean
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
strace-dirclean:
|
|
|
|
rm -rf $(STRACE_DIR)
|
|
|
|
|
|
|
|
|