add SIOCGIWRANGE
[openwrt.git] / obsolete-buildroot / make / strace.mk
1 #############################################################
2 #
3 # strace
4 #
5 #############################################################
6 STRACE_SOURCE:=strace-4.5.6.tar.bz2
7 STRACE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/strace
8 STRACE_CAT:=bzcat
9 STRACE_DIR:=$(BUILD_DIR)/strace-4.5.6
10 STRACE_IPK=$(BUILD_DIR)/strace_4.5.6-1_mipsel.ipk
11 STRACE_IPK_DIR:=$(BUILD_DIR)/strace-4.5.6-ipk
12
13
14 $(DL_DIR)/$(STRACE_SOURCE):
15 $(WGET) -P $(DL_DIR) $(STRACE_SITE)/$(STRACE_SOURCE)
16
17 strace-source: $(DL_DIR)/$(STRACE_SOURCE)
18
19 $(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
20 $(STRACE_CAT) $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
21 touch $(STRACE_DIR)/.unpacked
22
23 $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
24 (cd $(STRACE_DIR); rm -rf config.cache; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 $(DISABLE_NLS) \
42 $(DISABLE_LARGEFILE) \
43 );
44 touch $(STRACE_DIR)/.configured
45
46 $(STRACE_DIR)/strace: $(STRACE_DIR)/.configured
47 $(MAKE) CC=$(TARGET_CC) -C $(STRACE_DIR)
48
49 $(TARGET_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
50 install -c $(STRACE_DIR)/strace $(TARGET_DIR)/usr/bin/strace
51 $(STRIP) $(TARGET_DIR)/usr/bin/strace > /dev/null 2>&1
52
53 strace: uclibc $(TARGET_DIR)/usr/bin/strace
54
55 strace-ipk: $(STRACE_DIR)/strace
56 mkdir -p $(STRACE_IPK_DIR)/CONTROL
57 mkdir -p $(STRACE_IPK_DIR)/usr/bin
58 install -m 644 $(OPENWRT_IPK_DIR)/strace/CONTROL/control $(STRACE_IPK_DIR)/CONTROL/control
59 install -m 755 $(STRACE_DIR)/strace $(STRACE_IPK_DIR)/usr/bin/
60 $(STRIP) $(STRACE_IPK_DIR)/usr/bin/strace
61 cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(STRACE_IPK_DIR)
62
63 strace-clean:
64 $(MAKE) -C $(STRACE_DIR) clean
65
66 strace-dirclean:
67 rm -rf $(STRACE_DIR) $(STRACE_IPK_DIR)
This page took 0.043767 seconds and 5 git commands to generate.