update openswan to 2.4.5rc5 and fix compile issues
[openwrt.git] / package / nvram / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nvram
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH)))
13
14 $(PKG_BUILD_DIR)/.prepared:
15 mkdir -p $(PKG_BUILD_DIR)
16 $(CP) ./src/* $(PKG_BUILD_DIR)
17 touch $@
18
19 $(PKG_BUILD_DIR)/.configured:
20 touch $@
21
22 $(PKG_BUILD_DIR)/.built:
23 $(MAKE) -C $(PKG_BUILD_DIR) \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
26 touch $@
27
28 $(IPKG_NVRAM):
29 mkdir -p $(IDIR_NVRAM)/usr/lib
30 $(CP) $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
31 mkdir -p $(IDIR_NVRAM)/usr/sbin
32 $(CP) $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
33 $(RSTRIP) $(IDIR_NVRAM)
34 $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
35
36
37 compile-targets: install-dev
38 install-dev: $(PKG_BUILD_DIR)/.built
39 mkdir -p $(STAGING_DIR)/usr/lib
40 $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
41
42
This page took 0.040761 seconds and 5 git commands to generate.