Makefile 809 B

1234567891011121314151617181920212223242526272829303132
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= swconfig
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= switch configuration utility
  8. PKG_SECTION:= misc
  9. PKG_DEPENDS:= libnl
  10. PKG_BUILDDEP+= libnl
  11. PKG_TARGET_CONFIG:= rb433
  12. NO_DISTFILES:= 1
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,SWCONFIG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. XAKE_FLAGS:= LIBS="-lnl -lm" CFLAGS="$(TARGET_CFLAGS) \
  18. -I$(LINUX_DIR)/include"
  19. do-install:
  20. ${INSTALL_DIR} ${IDIR_SWCONFIG}/sbin
  21. ${INSTALL_BIN} ${WRKBUILD}/swconfig ${IDIR_SWCONFIG}/sbin/
  22. include ${TOPDIR}/mk/pkg-bottom.mk