PROCESSOR=16f877a FXTAL=4 ASSEMBLER=gpasm LINKER=gplink # The following directory seems to change depending on the installation. # Activate the one that applies to your system. LKRDIR=/usr/share/gputils/lkr #LKRDIR=/usr/local/share/gputils/lkr ASMOPTIONS= -a INHX8M -c -e ON -L -r dec -w 0 -p PIC$(PROCESSOR) -DFXTAL=$(FXTAL) LINKOPTIONS= -a INHX8M -m -s $(LKRDIR)/$(PROCESSOR) # Description of selected assembler options. # ---------------------------------------------------------------- # -a INHX8M - generate Intel Hex 8-bit file. # -c - output a relocatable object file. # -e ON - turn on macro expansion. # -L - force list file generation. # -r dec - make default radix decimal. # -w 0 - turn on all (warning) messages. # -p - processor type. # Description of selected linker options. # ---------------------------------------------------------------- # -a INHX8M - generate Intel Hex 8-bit (magnitude) file. # -m - output a map file. # -s - linker configuration script. b0b1flash.hex: b0b1flash.o del_lib.o $(LINKER) $(LINKOPTIONS) -s $(LKRDIR)/$(PROCESSOR).lkr -o b0b1flash.hex b0b1flash.o del_lib.o b0b1flash.o: b0b1flash.asm del_lib.h $(ASSEMBLER) $(ASMOPTIONS) -o b0b1flash.o -p PIC$(PROCESSOR) b0b1flash.asm del_lib.o: del_lib.asm $(ASSEMBLER) $(ASMOPTIONS) -o del_lib.o -p PIC$(PROCESSOR) del_lib.asm cleanall: clean rm -f *.lst rm -f *.hex clean: rm -f *.o rm -f *.map rm -f *.err rm -f *.xrf rm -f *.cod rm -f *~