Makefile 909 B

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