summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-02-11 06:44:47 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-02-11 06:44:47 +0000
commit5f7a6e37e78906bb31f0eb095f7ecc93d16e6fd3 (patch)
treeef234e574d1fe5c976ddc0b190c4a84211f48188 /make
parent18cefb81d1b7374131a9c8cc4cdf63188914994e (diff)
downloadbuildroot-novena-5f7a6e37e78906bb31f0eb095f7ecc93d16e6fd3.tar.gz
buildroot-novena-5f7a6e37e78906bb31f0eb095f7ecc93d16e6fd3.zip
Should have added this a long time ago.
Diffstat (limited to 'make')
-rw-r--r--make/ltrace.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/make/ltrace.mk b/make/ltrace.mk
new file mode 100644
index 000000000..9b41626e0
--- /dev/null
+++ b/make/ltrace.mk
@@ -0,0 +1,48 @@
+#############################################################
+#
+# ltrace
+#
+#############################################################
+LTRACE_SOURCE=ltrace_0.3.31.tar.gz
+LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
+LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.31
+LTRACE_BINARY=ltrace
+LTRACE_TARGET_BINARY=usr/bin/ltrace
+
+$(DL_DIR)/$(LTRACE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
+
+$(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE)
+ zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(LTRACE_DIR)/.source
+
+$(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
+ (cd $(LTRACE_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ );
+ touch $(LTRACE_DIR)/.configured;
+
+$(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(LTRACE_DIR)
+
+$(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(LTRACE_DIR) install
+ rm -Rf $(TARGET_DIR)/usr/man
+
+ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
+
+ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE)
+
+ltrace-clean:
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
+ -$(MAKE) -C $(LTRACE_DIR) clean
+
+ltrace-dirclean:
+ rm -rf $(LTRACE_DIR)
+