kumquat-buildroot/make/valgrind.mk

50 lines
1.6 KiB
Makefile
Raw Normal View History

2002-07-03 12:46:13 +02:00
#############################################################
#
# valgrind
#
#############################################################
VALGRIND_SITE:=http://developer.kde.org/~sewardj
VALGRIND_DIR:=$(BUILD_DIR)/valgrind-1.0.1
VALGRIND_SOURCE:=valgrind-1.0.1.tar.bz2
2002-07-27 11:13:00 +02:00
VALGRIND_PATCH:=$(SOURCE_DIR)/valgrind.patch
2002-07-03 12:46:13 +02:00
$(DL_DIR)/$(VALGRIND_SOURCE):
wget -P $(DL_DIR) --passive-ftp $(VALGRIND_SITE)/$(VALGRIND_SOURCE)
$(VALGRIND_DIR)/.unpacked: $(DL_DIR)/$(VALGRIND_SOURCE)
bzcat $(DL_DIR)/$(VALGRIND_SOURCE) | tar -C $(BUILD_DIR) -xvf -
touch $(VALGRIND_DIR)/.unpacked
2002-07-27 11:13:00 +02:00
$(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked
cat $(VALGRIND_PATCH) | patch -d $(VALGRIND_DIR) -p1
touch $(VALGRIND_DIR)/.patched
$(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched
2002-07-03 12:46:13 +02:00
(cd $(VALGRIND_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \
AR=$(TARGET_CROSS)ar NM=$(TARGET_CROSS)nm \
LD=$(TARGET_CROSS)ld AS=$(TARGET_CROSS)as \
./configure --prefix=/usr \
--includedir=$(STAGING_DIR)/include \
--disable-nls --without-uiout --disable-valgrindmi \
--disable-tui --disable-valgrindtk --without-x \
--without-included-gettext);
touch $(VALGRIND_DIR)/.configured
$(VALGRIND_DIR)/valgrind: $(VALGRIND_DIR)/.configured
make CC=$(TARGET_CC1) -C $(VALGRIND_DIR)
2002-07-27 11:13:00 +02:00
-$(STRIP) --strip-unneeded $(VALGRIND_DIR)/*.so*
2002-07-03 12:46:13 +02:00
$(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/valgrind
make CC=$(TARGET_CC1) DESTDIR=$(TARGET_DIR) -C $(VALGRIND_DIR) install
2002-07-27 10:54:01 +02:00
rm -rf $(TARGET_DIR)/usr/share/doc/valgrind
2002-07-03 12:46:13 +02:00
valgrind: $(TARGET_DIR)/usr/bin/valgrind
valgrind-clean:
make -C $(VALGRIND_DIR) clean
valgrind-dirclean:
rm -rf $(VALGRIND_DIR)