large build system cleanup. added some stuff to control the verbosity level, but...
[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 -a ./src/* $(PKG_BUILD_DIR)
17 touch $@
18
19 $(PKG_BUILD_DIR)/.built:
20 $(MAKE) -C $(PKG_BUILD_DIR) \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
23 touch $@
24
25 $(IPKG_NVRAM):
26 mkdir -p $(IDIR_NVRAM)/usr/lib
27 cp $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
28 mkdir -p $(IDIR_NVRAM)/usr/sbin
29 cp $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
30 $(RSTRIP) $(IDIR_NVRAM)
31 $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
32
33
34 compile: install-dev
35 install-dev: $(PKG_BUILD_DIR)/.built
36 mkdir -p $(STAGING_DIR)/usr/lib
37 cp $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
38
39
This page took 0.041498 seconds and 5 git commands to generate.