Makefile 871 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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= huawei
  5. PKG_VERSION:= 0.1
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= huawei modem control
  8. PKG_SECTION:= sys/hw
  9. PKG_DEPENDS:= libusb libusb-compat
  10. PKG_BUILDDEP:= libusb libusb-compat
  11. NO_DISTFILES:= 1
  12. include $(ADK_TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,HUAWEI,huawei,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIG_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. do-build:
  18. ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
  19. -o ${WRKBUILD}/huawei ${WRKBUILD}/huawei.c -lusb
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_HUAWEI}/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/huawei ${IDIR_HUAWEI}/sbin
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk