Makefile 854 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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= swconfig
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= switch config tool
  8. PKG_SECTION:= net/route
  9. PKG_DEPENDS:= libnl libpthread
  10. PKG_BUILDDEP:= libnl
  11. PKG_SYSTEM_DEPENDS:= mikrotik-rb4xx
  12. WRKDIST= ${WRKDIR}/swconfig
  13. NO_DISTFILES:= 1
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,SWCONFIG,swconfig,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3/
  17. CONFIG_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. swconfig-install:
  20. $(INSTALL_DIR) $(IDIR_SWCONFIG)/usr/bin
  21. $(INSTALL_BIN) $(WRKDIST)/swconfig \
  22. $(IDIR_SWCONFIG)/usr/bin
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk