Add weechat, a lightweight IRC client, thanks kolter !
[openwrt.git] / openwrt / package / gdbserver / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gdbserver
6 PKG_VERSION:=6.3
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
11
12 GDB_DIR:=$(TOOL_BUILD_DIR)/gdb-$(PKG_VERSION)
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,GDBSERVER,gdbserver,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18
19 $(PKG_BUILD_DIR)/.prepared:
20 rm -rf $(PKG_BUILD_DIR)
21 mkdir -p $(PKG_BUILD_DIR)
22 touch $@
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 $(GDB_DIR)/gdb/gdbserver/configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --sbindir=/usr/sbin \
38 --libexecdir=/usr/lib \
39 --sysconfdir=/etc \
40 --datadir=/usr/share \
41 --localstatedir=/var \
42 --mandir=/usr/man \
43 --infodir=/usr/info \
44 $(DISABLE_NLS) \
45 $(DISABLE_LARGEFILE) \
46 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 rm -rf $(PKG_INSTALL_DIR)
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 install
55 touch $@
56
57 $(IPKG_GDBSERVER):
58 install -m0755 -d $(IDIR_GDBSERVER)/usr/bin
59 $(CP) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(IDIR_GDBSERVER)/usr/bin/
60 $(RSTRIP) $(IDIR_GDBSERVER)
61 $(IPKG_BUILD) $(IDIR_GDBSERVER) $(PACKAGE_DIR)
62
This page took 0.049873 seconds and 5 git commands to generate.