freewrt_1_0
freewrt_2_0
|
Last change
on this file since ed2dd9f was ed2dd9f, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
instead of setting WRKBUILD, set WRKSRC and let WRKBUILD?=WRKSRC like mirports
(WRKSRC isn't used anywhere though)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@306 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
905 bytes
|
| Line | |
|---|
| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=nvram
|
|---|
| 6 | PKG_RELEASE:=1
|
|---|
| 7 |
|
|---|
| 8 | WRKSRC:=${WRKDIR}/$(PKG_NAME)
|
|---|
| 9 |
|
|---|
| 10 | DISTFILES:=
|
|---|
| 11 | include $(TOPDIR)/package/rules.mk
|
|---|
| 12 |
|
|---|
| 13 | $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH)))
|
|---|
| 14 |
|
|---|
| 15 | $(WRKBUILD)/.prepared:
|
|---|
| 16 | mkdir -p $(WRKBUILD)
|
|---|
| 17 | $(CP) ./src/* $(WRKBUILD)
|
|---|
| 18 | touch $@
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | touch $@
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.built:
|
|---|
| 24 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 25 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 26 | CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
|
|---|
| 27 | touch $@
|
|---|
| 28 |
|
|---|
| 29 | $(IPKG_NVRAM):
|
|---|
| 30 | mkdir -p $(IDIR_NVRAM)/usr/lib
|
|---|
| 31 | $(CP) $(WRKBUILD)/*.so $(IDIR_NVRAM)/usr/lib
|
|---|
| 32 | mkdir -p $(IDIR_NVRAM)/usr/sbin
|
|---|
| 33 | $(CP) $(WRKBUILD)/nvram $(IDIR_NVRAM)/usr/sbin
|
|---|
| 34 | $(RSTRIP) $(IDIR_NVRAM)
|
|---|
| 35 | $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | compile-targets: install-dev
|
|---|
| 39 | install-dev: $(WRKBUILD)/.built
|
|---|
| 40 | mkdir -p $(STAGING_DIR)/usr/lib
|
|---|
| 41 | $(CP) $(WRKBUILD)/*.so $(STAGING_DIR)/usr/lib
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.