# This file is part of picide, ATA(PI) interface to PIC18 family MCUs. # Copyright (C) 2004-5 Toby Thain, toby@telegraphics.com.au # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Makefile for building with gputils: # http://gputils.sourceforge.net/ SRC = atapi.asm ide.asm example.asm rs232.asm timer.asm util.asm EXTRASRC = main.asm monitor.asm # in archive but not built INC = atapidefs.inc defs.inc idecmd.inc idedefs.inc OBJ = $(subst .asm,.o,$(SRC)) EXEC = picide # suppress a bunch of warnings about default dst ASMOPTS = -w 1 -D GPASM %.o : %.asm gpasm -c $(ASMOPTS) $< all : $(EXEC).hex clean : rm -f $(EXEC).hex $(EXEC).co[df] $(EXEC).lst *.o *.lst $(OBJ) : $(INC) $(EXEC).hex : $(OBJ) gplink -c -o $@ $^ # Built: $@ # Note that the .HEX file must have DOS line endings # before MPLAB IDE can Import it for programming. ASSETS = COPYING Makefile picide.mcp picide.mcs picide.mcw \ $(SRC) $(EXTRASRC) $(INC) \ picboard.jpg picsignals.pdf src : picide.zip picide.zip : $(ASSETS) zip -9 $@ $^