summaryrefslogtreecommitdiff
path: root/make/valgrind.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-17 08:03:59 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-17 08:03:59 +0000
commitef7784a62d2ecd681b37aee7040e71bbb34a51cd (patch)
tree92daacce553b174393de87921912ada04a4ecb6e /make/valgrind.mk
parent8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff)
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/valgrind.mk')
-rw-r--r--make/valgrind.mk31
1 files changed, 21 insertions, 10 deletions
diff --git a/make/valgrind.mk b/make/valgrind.mk
index 3a0da7914..566fe2eb9 100644
--- a/make/valgrind.mk
+++ b/make/valgrind.mk
@@ -21,18 +21,29 @@ $(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked
touch $(VALGRIND_DIR)/.patched
$(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched
- (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=/usr/include \
- --disable-nls --without-uiout --disable-valgrindmi \
- --disable-tui --disable-valgrindtk --without-x \
- --without-included-gettext);
+ (cd $(VALGRIND_DIR); rm -rf config.cache; \
+ PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \
+ ./configure \
+ --target=$(GNU_TARGET_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 \
+ --without-uiout --disable-valgrindmi \
+ --disable-tui --disable-valgrindtk \
+ --without-x --without-included-gettext \
+ );
touch $(VALGRIND_DIR)/.configured
$(VALGRIND_DIR)/valgrind.so: $(VALGRIND_DIR)/.configured
- make CC=$(TARGET_CC1) -C $(VALGRIND_DIR)
+ $(MAKE) CC=$(TARGET_CC1) -C $(VALGRIND_DIR)
-$(STRIP) --strip-unneeded $(VALGRIND_DIR)/*.so*
touch -c $(VALGRIND_DIR)/valgrind.so
@@ -63,7 +74,7 @@ $(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/valgrind.so
valgrind: $(TARGET_DIR)/usr/bin/valgrind
valgrind-clean:
- make -C $(VALGRIND_DIR) clean
+ $(MAKE) -C $(VALGRIND_DIR) clean
valgrind-dirclean:
rm -rf $(VALGRIND_DIR)