kumquat-buildroot/make/strace.mk

57 lines
1.4 KiB
Makefile
Raw Normal View History

2002-05-23 21:21:23 +02:00
#############################################################
#
# strace
#
#############################################################
2003-06-13 00:32:59 +02:00
STRACE_SOURCE:=strace-4.4.98.tar.bz2
STRACE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/strace
STRACE_CAT:=bzcat
STRACE_DIR:=$(BUILD_DIR)/strace-4.4.98
2002-05-23 21:21:23 +02:00
2002-05-23 21:21:23 +02:00
$(DL_DIR)/$(STRACE_SOURCE):
$(WGET) -P $(DL_DIR) $(STRACE_SITE)/$(STRACE_SOURCE)
2002-05-23 21:21:23 +02:00
strace-source: $(DL_DIR)/$(STRACE_SOURCE)
$(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; \
$(TARGET_CONFIGURE_OPTS) \
./configure \
--target=$(GNU_TARGET_NAME) \
2003-01-23 18:02:44 +01:00
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--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 \
--disable-nls \
);
touch $(STRACE_DIR)/.configured
$(STRACE_DIR)/strace: $(STRACE_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(STRACE_DIR)
$(TARGET_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
install -c $(STRACE_DIR)/strace $(TARGET_DIR)/usr/bin/strace
2002-05-23 21:21:23 +02:00
strace: uclibc $(TARGET_DIR)/usr/bin/strace
2002-05-23 21:21:23 +02:00
strace-clean:
$(MAKE) -C $(STRACE_DIR) clean
2002-05-23 21:21:23 +02:00
strace-dirclean:
rm -rf $(STRACE_DIR)