Newer
Older
pic-leddrvr2 / Makefile
  1. # Makefile for PIC leddrvr2.asm test program
  2. # $Id: Makefile,v 1.1 2002/04/02 16:30:33 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 = leddrvr2.asm
  16.  
  17. RELEASE_FILES = leddrvr2.asm leddrvr2-license.txt readme.txt
  18. RELEASE_FILES1 = leddrvr2.hex leddrvr2.lst leddrvr2.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} leddrvr2.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_leddrvr2.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} leddrvr2.hex