source: freewrt/package/hostap-utils/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 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: 1.3 KB
Line 
1# $Id: Makefile 2543 2005-11-22 03:11:32Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=hostap-utils
6PKG_VERSION:=0.4.7
7PKG_RELEASE:=1
8PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
9
10PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,HOSTAP_UTILS,hostap-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 touch $@
20
21$(WRKBUILD)/.built:
22 $(MAKE) -C $(WRKBUILD) \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -Wall" \
25 all
26 touch $@
27
28$(IPKG_HOSTAP_UTILS):
29 install -m0755 -d $(IDIR_HOSTAP_UTILS)/usr/sbin
30 install -m0755 $(WRKBUILD)/hostap_crypt_conf $(IDIR_HOSTAP_UTILS)/usr/sbin/
31 install -m0755 $(WRKBUILD)/hostap_diag $(IDIR_HOSTAP_UTILS)/usr/sbin/
32 install -m0755 $(WRKBUILD)/hostap_io_debug $(IDIR_HOSTAP_UTILS)/usr/sbin/
33 install -m0755 $(WRKBUILD)/hostap_rid $(IDIR_HOSTAP_UTILS)/usr/sbin/
34 install -m0755 $(WRKBUILD)/prism2_srec $(IDIR_HOSTAP_UTILS)/usr/sbin/
35 install -m0755 $(WRKBUILD)/split_combined_hex $(IDIR_HOSTAP_UTILS)/usr/sbin/
36 $(RSTRIP) $(IDIR_HOSTAP_UTILS)
37 $(IPKG_BUILD) $(IDIR_HOSTAP_UTILS) $(PACKAGE_DIR)
38
39mostlyclean:
40 -$(MAKE) -C $(WRKBUILD) clean
41 rm -f $(WRKBUILD)/.built
42
Note: See TracBrowser for help on using the repository browser.