gcc: now that the gpr save/restore issues are taken care of, remove the -Os/-O2 worka...
[openwrt.git] / package / resolveip / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=resolveip
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/resolveip
16 SECTION:=utils
17 CATEGORY:=Base system
18 TITLE:=Simple DNS resolver with configurable timeout
19 endef
20
21 define Package/resolveip/description
22 This package contains the small resolveip utility which
23 can be used by scripts to turn host names into numeric
24 IP addresses. It supports IPv4 and IPv6 resolving and
25 has a configurable timeout to guarantee a certain maximum
26 runtime in case of slow or defunct DNS servers.
27 endef
28
29 define Build/Prepare
30 $(INSTALL_DIR) $(PKG_BUILD_DIR)
31 $(INSTALL_DATA) ./src/resolveip.c $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
36 -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
37 endef
38
39 define Package/resolveip/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,resolveip))
This page took 0.054169 seconds and 5 git commands to generate.