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