replace common -I and -L search flags with TARGET_CPPFLAGS and TARGET_LDFLAGS
[openwrt.git] / package / gdbserver / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gdbserver
11 PKG_VERSION:=6.3
12 PKG_RELEASE:=1
13
14 GDB_DIR:=$(TOOLCHAIN_BUILD_DIR)/gdb-$(PKG_VERSION)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/gdbserver
19 SECTION:=utils
20 CATEGORY:=Utilities
21 DEPENDS:=@GDB@
22 TITLE:=Remote Server for the GNU Debugger
23 DESCRIPTION:=GDBSERVER is a program that allows you to run GDB on a different machine\\\
24 than the one which is running the program being debugged.
25 endef
26
27 define Build/Configure
28 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 $(GDB_DIR)/gdb/gdbserver/configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --sbindir=/usr/sbin \
41 --libexecdir=/usr/lib \
42 --sysconfdir=/etc \
43 --datadir=/usr/share \
44 --localstatedir=/var \
45 --mandir=/usr/man \
46 --infodir=/usr/info \
47 $(DISABLE_NLS) \
48 $(DISABLE_LARGEFILE) \
49 );
50 endef
51
52 define Build/Compile
53 rm -rf $(PKG_INSTALL_DIR)
54 mkdir -p $(PKG_INSTALL_DIR)
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 install
58 endef
59
60 define Package/gdbserver/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,gdbserver))
66
This page took 0.039158 seconds and 5 git commands to generate.