English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/iproute2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3791 - (show annotations) (download)
Wed Aug 27 16:07:06 2008 UTC (5 years, 5 months ago) by markus
File size: 1620 byte(s)
Relocated "ip" und "tc" to /bin to be compatible with busybox's
install location.
Set openvpn iproute-path to /bin/ip which is default now and needed
since RC9.

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
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:= iproute2
10 PKG_VERSION:= 2.6.16-060323
11 PKG_RELEASE:= 1
12 PKG_MD5SUM:= f31d4516b35bbfeaa72c762f5959e97c
13
14 PKG_SOURCE_URL:= http://developer.osdl.org/dev/iproute2/download/
15
16 include $(TOPDIR)/mk/package.mk
17
18 $(eval $(call PKG_template,IP,ip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19 $(eval $(call PKG_template,TC,tc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(WRKBUILD)/.configured:
22 $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(WRKBUILD)/Makefile
23 $(SED) "s,-I/usr/include/db3,," $(WRKBUILD)/Makefile
24 $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
25 $(WRKBUILD)/Makefile
26 $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
27 $(WRKBUILD)/Makefile
28 # For now disable compiling of the misc directory because it seems to fail
29 rm -rf $(WRKBUILD)/misc
30 $(SED) "s, misc,," $(WRKBUILD)/Makefile
31 touch $@
32
33 $(WRKBUILD)/.built:
34 $(MAKE) -j1 -C $(WRKBUILD)/netem HOSTCC=$(HOSTCC) CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
35 $(MAKE) -j1 -C $(WRKBUILD) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
36 touch $@
37
38 $(IPKG_IP):
39 mkdir -p $(IDIR_IP)/bin
40 $(CP) $(WRKBUILD)/ip/ip $(IDIR_IP)/bin/
41 $(RSTRIP) $(IDIR_IP)
42 $(IPKG_BUILD) $(IDIR_IP) $(PACKAGE_DIR)
43
44 $(IPKG_TC):
45 mkdir -p $(IDIR_TC)/bin
46 $(CP) $(WRKBUILD)/tc/tc $(IDIR_TC)/bin/
47 $(RSTRIP) $(IDIR_TC)
48 $(IPKG_BUILD) $(IDIR_TC) $(PACKAGE_DIR)

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20