Makefile 866 B

123456789101112131415161718192021222324252627282930313233
  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_BUILDDEP+= libnl
  8. PKG_DESCR:= switch configuration utility
  9. PKG_SECTION:= misc
  10. PKG_TARGET_CONFIG:= rb433
  11. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  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. XAKE_FLAGS:= LIBS="-lnl -lm" CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
  16. BUILD_STYLE:= auto
  17. do-configure:
  18. mkdir -p ${WRKBUILD}
  19. ${CP} ./src/* ${WRKBUILD}
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_SWCONFIG}/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/swconfig ${IDIR_SWCONFIG}/sbin/
  23. include ${TOPDIR}/mk/pkg-bottom.mk