summaryrefslogtreecommitdiff
path: root/make/valgrind.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-03 10:46:13 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-03 10:46:13 +0000
commitc994e72081834d331c9941ab1fed6ca2d25b36a1 (patch)
tree5a0c9ee4c3996759090c71d5ff96d3e16246ede8 /make/valgrind.mk
parent95f81a5a5552ad42b188fc56f2c38eb8c17542de (diff)
Some more updates
-Erik
Diffstat (limited to 'make/valgrind.mk')
-rw-r--r--make/valgrind.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/make/valgrind.mk b/make/valgrind.mk
new file mode 100644
index 000000000..b65675a33
--- /dev/null
+++ b/make/valgrind.mk
@@ -0,0 +1,43 @@
+#############################################################
+#
+# valgrind
+#
+#############################################################
+
+VALGRIND_SITE:=http://developer.kde.org/~sewardj
+VALGRIND_DIR:=$(BUILD_DIR)/valgrind-20020601
+VALGRIND_SOURCE:=valgrind-20020601.tar.bz2
+
+$(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
+
+$(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.unpacked
+ (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)
+ $(STRIP) $(VALGRIND_DIR)/valgrind
+
+$(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/valgrind
+ make CC=$(TARGET_CC1) DESTDIR=$(TARGET_DIR) -C $(VALGRIND_DIR) install
+
+valgrind: $(TARGET_DIR)/usr/bin/valgrind
+
+valgrind-clean:
+ make -C $(VALGRIND_DIR) clean
+
+valgrind-dirclean:
+ rm -rf $(VALGRIND_DIR)
+