add kernel 2.6 insmod support as default, just adds a few bytes
[openwrt.git] / obsolete-buildroot / make / ltrace.mk
1 #############################################################
2 #
3 # ltrace
4 #
5 #############################################################
6 LTRACE_SOURCE=ltrace_0.3.31.tar.gz
7 LTRACE_SITE=http://ftp.debian.org/debian/pool/main/l/ltrace
8 LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.31
9 LTRACE_BINARY=ltrace
10 LTRACE_TARGET_BINARY=usr/bin/ltrace
11
12 $(DL_DIR)/$(LTRACE_SOURCE):
13 $(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
14
15 $(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE)
16 zcat $(DL_DIR)/$(LTRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
17 touch $(LTRACE_DIR)/.source
18
19 $(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
20 (cd $(LTRACE_DIR); \
21 $(TARGET_CONFIGURE_OPTS) \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 );
29 touch $(LTRACE_DIR)/.configured;
30
31 $(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
32 $(MAKE) CC=$(TARGET_CC) -C $(LTRACE_DIR)
33
34 $(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
35 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(LTRACE_DIR) install
36 rm -Rf $(TARGET_DIR)/usr/man
37
38 ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)
39
40 ltrace-source: $(DL_DIR)/$(LTRACE_SOURCE)
41
42 ltrace-clean:
43 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LTRACE_DIR) uninstall
44 -$(MAKE) -C $(LTRACE_DIR) clean
45
46 ltrace-dirclean:
47 rm -rf $(LTRACE_DIR)
48
This page took 0.04324 seconds and 5 git commands to generate.