source: freewrt/package/wificonf/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 744 bytes
Line 
1# $Id: Makefile 2480 2005-11-14 02:07:33Z nbd $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=wificonf
6PKG_RELEASE:=5
7
8WRKBUILD:=${WRKDIR}/wificonf
9
10DISTFILES:=
11include $(TOPDIR)/package/rules.mk
12
13$(eval $(call PKG_template,WIFICONF,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
14
15$(WRKBUILD)/.prepared:
16 mkdir -p $@
17 touch $@
18
19$(WRKBUILD)/.configured:
20 touch $@
21
22$(WRKBUILD)/.built:
23 $(TARGET_CC) $(TARGET_CFLAGS) -Iinclude/ -I$(STAGING_DIR)/usr/include -o $(WRKBUILD)/wifi wificonf.c -L$(STAGING_DIR)/usr/lib -lnvram -lshared $(STAGING_DIR)/usr/lib/libiw.so
24 touch $@
25
26$(IPKG_WIFICONF):
27 install -d -m0755 $(IDIR_WIFICONF)/sbin
28 install -m0755 $(WRKBUILD)/wifi $(IDIR_WIFICONF)/sbin/
29 $(RSTRIP) $(IDIR_WIFICONF)
30 $(IPKG_BUILD) $(IDIR_WIFICONF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.