Newer
Older
pic-leddrvr2 / Makefile
# Makefile for PIC leddrvr2.asm test program
# $Id: Makefile,v 1.1 2002/04/02 16:30:33 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    = leddrvr2.asm

RELEASE_FILES  = leddrvr2.asm leddrvr2-license.txt readme.txt
RELEASE_FILES1 = leddrvr2.hex leddrvr2.lst leddrvr2.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} leddrvr2.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_leddrvr2.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} leddrvr2.hex