Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= iproute2
  7. PKG_VERSION:= 2.6.29-1
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= c1bc258a6c345905e79935ac7a3cc582
  10. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. MASTER_SITES:= http://developer.osdl.org/dev/iproute2/download/
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,IP,ip,${PKG_VERSION}-${PKG_RELEASE}))
  14. $(eval $(call PKG_template,TC,tc,${PKG_VERSION}-${PKG_RELEASE}))
  15. do-configure:
  16. ${SED} "s:-O2:${TARGET_CFLAGS}:g" ${WRKBUILD}/Makefile
  17. ${SED} "s,-I/usr/include/db3,," ${WRKBUILD}/Makefile
  18. ${SED} "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=${LINUX_DIR}/include," \
  19. ${WRKBUILD}/Makefile
  20. ${SED} "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=${STAGING_DIR}/include," \
  21. ${WRKBUILD}/Makefile
  22. # For now disable compiling of the misc directory because it seems to fail
  23. rm -rf ${WRKBUILD}/misc
  24. ${SED} "s, misc,," ${WRKBUILD}/Makefile
  25. # netem is 2.6 only stuff
  26. ${SED} "s, netem,," ${WRKBUILD}/Makefile
  27. do-build:
  28. ${MAKE} -j1 -C ${WRKBUILD}/netem \
  29. HOSTCC=${HOSTCC} \
  30. CCOPTS="-I${LINUX_DIR}" \
  31. ${MAKE} -j1 -C ${WRKBUILD} ${TARGET_CONFIGURE_OPTS} \
  32. CFLAGS="-D_GNU_SOURCE ${TARGET_CFLAGS} -I ../include -DRESOLVE_HOSTNAMES" \
  33. KERNEL_INCLUDE=${LINUX_DIR}/include all tc/tc ip/ip \
  34. CCOPTS="-I${LINUX_DIR}"
  35. do-install:
  36. ${INSTALL_DIR} ${IDIR_IP}/usr/sbin
  37. ${CP} ${WRKBUILD}/ip/ip ${IDIR_IP}/usr/sbin/
  38. ${INSTALL_DIR} ${IDIR_TC}/usr/sbin
  39. ${CP} ${WRKBUILD}/tc/tc ${IDIR_TC}/usr/sbin/
  40. include ${TOPDIR}/mk/pkg-bottom.mk