Newer
Older
pic-keypad / Makefile
  1. # Makefile for PIC keypad.asm embedded keypad controller
  2. # $Id: Makefile,v 1.1 2002/05/05 22:25:29 tundra Exp tundra $
  3.  
  4. #BURN_PGM = c:/usr/local/PIC/pp/pp
  5. #BURN_OPT = "-!"
  6. #VRFY_OPT = "-!v"
  7.  
  8.  
  9. BURN_PGM = c:/usr/local/PIC/fpp/fppdos.exe
  10. GENERAL_OPT = -! -h3:1 -t20
  11. DUMP_OPT = -d
  12. VRFY_OPT = -v
  13. ERASE_OPT = -e
  14. INC_DIR = ../include
  15. SRC_FILE = keypad.asm
  16.  
  17. RELEASE_FILES = keypad.asm keypad-license.txt readme.txt
  18. RELEASE_FILES1 = keypad.hex keypad.lst keypad.xrf
  19. RELEASE_DIR = Latest-Release
  20. SCHEMATIC_DIR = Schematic
  21.  
  22.  
  23. ASM_OPTIONS = /dINCFILES=${INC_DIR} /t8 /x /q
  24.  
  25.  
  26. a all assemble:
  27. @c:/progra~1/mplab/mpasm ${ASM_OPTIONS} ${SRC_FILE}
  28. @ls -l *err
  29.  
  30. b burn:
  31. @${BURN_PGM} ${GENERAL_OPT} keypad.hex
  32. @make verify
  33.  
  34. c clean:
  35. @rm -f *.cod *.err *.hex *.lst *.obj *.xrf dump*.hex *~ *#* \#* *.erc
  36.  
  37. d dump:
  38. @${BURN_PGM} ${GENERAL_OPT} ${DUMP_OPT} dump_keypad.hex
  39.  
  40. e erase:
  41. @${BURN_PGM} ${GENERAL_OPT} ${ERASE_OPT}
  42.  
  43. r release:
  44. @- mkdir ${RELEASE_DIR}
  45. @- co -l ${RELEASE_FILES}
  46. @make assemble
  47. @mv ${RELEASE_FILES} ${RELEASE_DIR}
  48. @mv ${RELEASE_FILES1} ${RELEASE_DIR}
  49. @cp Makefile ${RELEASE_DIR}
  50. @cp ${SCHEMATIC_DIR}/* ${RELEASE_DIR}
  51. @rlog ${SRC_FILE} >${RELEASE_DIR}/CHANGELOG
  52. @make clean
  53.  
  54. rc relclean:
  55. @- rm -rf ${RELEASE_DIR}
  56. @make clean
  57. v verify:
  58. @${BURN_PGM} ${GENERAL_OPT} ${VRFY_OPT} keypad.hex