microcom.mk 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #############################################################
  2. #
  3. # microcom terminal emulator
  4. #
  5. # Maintainer: Tim Riker <Tim@Rikers.org>
  6. #
  7. #############################################################
  8. # Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
  9. # Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU Library General Public License as
  13. # published by the Free Software Foundation; either version 2 of the
  14. # License, or (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful, but
  17. # WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. # Library General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU Library General Public
  22. # License along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  24. # USA
  25. # TARGETS
  26. # http://microcom.port5.com/m102.tar.gz
  27. MICROCOM_SITE:=http://microcom.port5.com/
  28. MICROCOM_SOURCE:=m102.tar.gz
  29. MICROCOM_DIR:=$(BUILD_DIR)/microcom-1.02
  30. $(DL_DIR)/$(MICROCOM_SOURCE):
  31. $(WGET) -P $(DL_DIR) $(MICROCOM_SITE)/$(MICROCOM_SOURCE)
  32. microcom-source: $(DL_DIR)/$(MICROCOM_SOURCE)
  33. $(MICROCOM_DIR)/.unpacked: $(DL_DIR)/$(MICROCOM_SOURCE)
  34. mkdir -p $(MICROCOM_DIR)
  35. zcat $(DL_DIR)/$(MICROCOM_SOURCE) | tar -C $(MICROCOM_DIR) $(TAR_OPTIONS) -
  36. touch $(MICROCOM_DIR)/.unpacked
  37. $(MICROCOM_DIR)/.configured: $(MICROCOM_DIR)/.unpacked
  38. $(SED) 's~gcc~${TARGET_CC}~' $(MICROCOM_DIR)/Makefile
  39. touch $(MICROCOM_DIR)/.configured
  40. $(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
  41. $(MAKE) -C $(MICROCOM_DIR)
  42. $(TARGET_DIR)/usr/bin/microcom: $(MICROCOM_DIR)/microcom
  43. install -c $(MICROCOM_DIR)/microcom $(TARGET_DIR)/usr/bin/microcom
  44. microcom-clean:
  45. rm $(MICROCOM_DIR)/*.o
  46. microcom-dirclean:
  47. rm -rf $(MICROCOM_DIR)
  48. microcom: uclibc $(TARGET_DIR)/usr/bin/microcom
  49. #############################################################
  50. #
  51. # Toplevel Makefile options
  52. #
  53. #############################################################
  54. ifeq ($(strip $(BR2_PACKAGE_MICROCOM)),y)
  55. TARGETS+=microcom
  56. endif