- # Makefile for PIC keypad.asm embedded keypad controller
- # $Id: Makefile,v 1.1 2002/05/05 22:25:29 tundra Exp tundra $
-
- #BURN_PGM = c:/usr/local/PIC/pp/pp
- #BURN_OPT = "-!"
- #VRFY_OPT = "-!v"
-
-
- BURN_PGM = c:/usr/local/PIC/fpp/fppdos.exe
- GENERAL_OPT = -! -h3:1 -t20
- DUMP_OPT = -d
- VRFY_OPT = -v
- ERASE_OPT = -e
- INC_DIR = ../include
- SRC_FILE = keypad.asm
-
- RELEASE_FILES = keypad.asm keypad-license.txt readme.txt
- RELEASE_FILES1 = keypad.hex keypad.lst keypad.xrf
- RELEASE_DIR = Latest-Release
- SCHEMATIC_DIR = Schematic
-
-
- ASM_OPTIONS = /dINCFILES=${INC_DIR} /t8 /x /q
-
-
- a all assemble:
- @c:/progra~1/mplab/mpasm ${ASM_OPTIONS} ${SRC_FILE}
- @ls -l *err
-
- b burn:
- @${BURN_PGM} ${GENERAL_OPT} keypad.hex
- @make verify
-
- c clean:
- @rm -f *.cod *.err *.hex *.lst *.obj *.xrf dump*.hex *~ *#* \#* *.erc
-
- d dump:
- @${BURN_PGM} ${GENERAL_OPT} ${DUMP_OPT} dump_keypad.hex
-
- e erase:
- @${BURN_PGM} ${GENERAL_OPT} ${ERASE_OPT}
-
- r release:
- @- mkdir ${RELEASE_DIR}
- @- co -l ${RELEASE_FILES}
- @make assemble
- @mv ${RELEASE_FILES} ${RELEASE_DIR}
- @mv ${RELEASE_FILES1} ${RELEASE_DIR}
- @cp Makefile ${RELEASE_DIR}
- @cp ${SCHEMATIC_DIR}/* ${RELEASE_DIR}
- @rlog ${SRC_FILE} >${RELEASE_DIR}/CHANGELOG
- @make clean
-
- rc relclean:
- @- rm -rf ${RELEASE_DIR}
- @make clean
-
- v verify:
- @${BURN_PGM} ${GENERAL_OPT} ${VRFY_OPT} keypad.hex