source: freewrt/package/click/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was 5d9f1ed, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

more init script fixes

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

  • Property mode set to 100644
File size: 2.4 KB
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:= click
10PKG_VERSION:= cvs.2006.03.02
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 7aed4ba94926010d76febb797b288e98
13
14PKG_SOURCE_URL:= http://pdos.csail.mit.edu/~jbicket/click_snapshots/
15
16ROOFNET_VERSION:= 0.0.1
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,CLICK,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21$(eval $(call PKG_template,ROOFNET,roofnet,$(ROOFNET_VERSION),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); \
25 ./configure; \
26 cp include/click/config.h include/click/config-host.h; \
27 rm -rf config.{cache,status} ; \
28 $(TARGET_CONFIGURE_OPTS) \
29 CXXFLAGS="-static -O2 -MD" \
30 CFLAGS="-static -MD" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
33 ./configure \
34 --prefix=/usr \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --enable-wifi \
39 --disable-linuxmodule \
40 --enable-tools=mixed \
41 --disable-dynamic-linking \
42 )
43 touch $@
44
45
46# don't build the full click (it's huge), but only include
47# the elements needed for roofnet
48$(WRKBUILD)/.built: $(WRKBUILD)/.configured
49 rm -rf $(WRKINST)
50 mkdir -p $(WRKINST)
51 $(MAKE) -C $(WRKBUILD) \
52 BUILD_CXX="g++ -include $(WRKBUILD)/include/click/config-host.h" \
53 tools elementmap.xml
54 (cd $(WRKBUILD)/userlevel; \
55 ../tools/click-mkmindriver/click-mkmindriver -p roofnet -C .. \
56 -f $(WRKBUILD)/conf/wifi/sample.click \
57 -A --all -E IPNameInfo -E FromHost -E ToHost -E Discard; \
58 $(MAKE) -f Makefile.roofnet; \
59 )
60 touch $@
61
62$(IPKG_CLICK):
63 install -d -m0755 $(IDIR_CLICK)/usr/bin
64 $(CP) $(WRKBUILD)/userlevel/roofnetclick $(IDIR_CLICK)/usr/bin/click
65 $(CP) $(WRKBUILD)/tools/click-align/click-align $(IDIR_CLICK)/usr/bin/click-align
66 $(RSTRIP) $(IDIR_CLICK)
67 $(IPKG_BUILD) $(IDIR_CLICK) $(PACKAGE_DIR)
68
69
70$(IPKG_ROOFNET):
71 install -d -m0755 $(IDIR_ROOFNET)/usr/bin
72 $(CP) $(WRKBUILD)/conf/wifi/gen_config_roofnet.sh $(IDIR_ROOFNET)/usr/bin
73 $(CP) $(WRKBUILD)/conf/wifi/srcr.click $(IDIR_ROOFNET)/usr/bin
74 $(CP) $(WRKBUILD)/conf/wifi/read_handler $(IDIR_ROOFNET)/usr/bin
75 $(CP) $(WRKBUILD)/conf/wifi/write_handler $(IDIR_ROOFNET)/usr/bin
76 $(RSTRIP) $(IDIR_ROOFNET)
77 $(IPKG_BUILD) $(IDIR_ROOFNET) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.