kumquat-buildroot/make/strace.mk

50 lines
1.4 KiB
Makefile
Raw Normal View History

2002-05-23 21:21:23 +02:00
#############################################################
#
# strace
#
# Maintainer: Ken Restivo <ken@246gt.com>
#
#############################################################
#$Id: strace.mk,v 1.3 2002/11/20 23:16:09 andersen Exp $
2002-05-23 21:21:23 +02:00
# TARGETS
2002-05-31 12:43:51 +02:00
STRACE_SITE:=http://telia.dl.sourceforge.net/sourceforge/strace
2002-05-23 21:21:23 +02:00
STRACE_SOURCE:=strace_4.4-1.tar.gz
STRACE_DIR:=$(BUILD_DIR)/strace-4.4
$(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)/.dist: $(DL_DIR)/$(STRACE_SOURCE)
zcat $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
touch $(STRACE_DIR)/.dist
$(STRACE_DIR)/Makefile: $(STRACE_DIR)/.dist
(cd ${STRACE_DIR}; \
export PATH="${TARGET_PATH}"; \
2002-05-31 12:43:51 +02:00
./configure --with-shared --prefix=$(STAGING_DIR)/usr \
--target=$(ARCH)-linux --host=$(ARCH)-linux )
2002-05-23 21:21:23 +02:00
$(STRACE_DIR)/strace: $(STRACE_DIR)/Makefile
2002-05-31 12:43:51 +02:00
make CC="${TARGET_CC}" LD="${TARGET_LD}" \
AS="${TARGET_AS}" -C $(STRACE_DIR)
2002-05-23 21:21:23 +02:00
$(STAGING_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
-mkdir -p $(STAGING_DIR)/usr/man/man1
make -C $(STRACE_DIR) install
rm -rf $(STAGING_DIR)/usr/man/man1
$(TARGET_DIR)/usr/bin/strace: $(STAGING_DIR)/usr/bin/strace
install -c $(STAGING_DIR)/usr/bin/strace $(TARGET_DIR)/usr/bin/strace
strace-clean:
make -C $(STRACE_DIR) clean
strace-dirclean:
rm -rf $(STRACE_DIR)
strace: uclibc $(TARGET_DIR)/usr/bin/strace