qos-scripts: remove ipp2p from the default ruleset
[openwrt.git] / package / swconfig / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-swconfig
13 PKG_RELEASE:=1
14 PKG_BUILD_DEPENDS:=libnl
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/swconfig
19 SECTION:=base
20 CATEGORY:=Base system
21 DEPENDS:=@LINUX_2_6_26||LINUX_2_6_27
22 TITLE:=Switch configuration utility
23 endef
24
25 TARGET_CPPFLAGS += \
26 -I$(STAGING_DIR)/usr/include \
27 -I$(LINUX_DIR)/include \
28 -I$(PKG_BUILD_DIR)
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Build/Compile
36 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 LIBS="$(STAGING_DIR)/usr/lib/libnl.a -lm"
40 endef
41
42 define Package/swconfig/install
43 $(INSTALL_DIR) $(1)/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/swconfig $(1)/bin/swconfig
45 endef
46
47 $(eval $(call BuildPackage,swconfig))
This page took 0.038449 seconds and 5 git commands to generate.