source: freewrt/package/option-icon/Makefile@ 18c227bd

freewrt_2_0
Last change on this file since 18c227bd was 2d9a22a, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

add package files for option-icon

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@2402 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 943 bytes
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= option-icon
10PKG_VERSION:= 1.0
11PKG_RELEASE:= 1
12WRKSRC= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)
13DISTFILES:=
14
15include $(TOPDIR)/mk/package.mk
16
17$(eval $(call PKG_template,OPTION_ICON,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.prepared:
20 mkdir -p $(WRKBUILD)
21 touch $@
22
23$(WRKBUILD)/.configured:
24 touch $@
25
26$(WRKBUILD)/.built:
27 $(TARGET_CC) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib \
28 $(TARGET_CFLAGS) -lusb -o $(WRKBUILD)/icon_switch icon_switch.c
29 touch $@
30
31$(IPKG_OPTION_ICON):
32 $(INSTALL_DIR) $(IDIR_OPTION_ICON)/sbin
33 $(INSTALL_BIN) $(WRKBUILD)/icon_switch $(IDIR_OPTION_ICON)/sbin
34 $(RSTRIP) $(IDIR_OPTION_ICON)
35 $(IPKG_BUILD) $(IDIR_OPTION_ICON) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.