Following the document by Jan-Erik Soderholm, I managed to create my first Makefile for the EasyISP. It works but I still have one question. I always see the following prompt. What is wrong? rm prg_sert.asm prg_s22.asm prg_cmd.asm prg_16f.asm prg_intr.asm prg_main.asm prg_strt.asm prg_s08.asm prg_core12.asm prg_led.asm prg_s16.asm prg_op.asm prg_18f.asm prg_vpp.asm prg_port.asm prg_vdd.asm prg_uart.asm Regards, Xiaofan P.S.: sorry for the long post # ************************************************** # Makefile for EasyISP # Before make, copy the source files # The prg.lkr file is renamed from p16f648a.linkpic # cd c:\embedinc\src\wispezp # copy ..\..\source\wispezp\*.aspic . # copy ..\..\source\wispezp\*.lkr # copy ..\..\source\wispezp\makefile . # then execute "make" or "make -i -r" # Test under Windows XP SP1/SP2 # Make is from WinAVR 20050214 # ************************************************** prepic = c:\embedinc\com\prepic.exe asm = C:\Program Files\Microchip\MPASM Suite\MPASMWIN.EXE link = C:\Program Files\Microchip\MPASM Suite\MPLINK.EXE del = rm -f prg_objs = prg_cmd.o prg_core12.o prg_intr.o prg_led.o \ prg_main.o prg_op.o prg_port.o prg_sert.o \ prg_uart.o prg_vdd.o prg_vpp.o prg_16f.o \ prg_18f.o prg_s08.o prg_s16.o prg_s22.o prg_strt.o %.asm : %.aspic $(prepic) $< $@ %.inc : %.ins.aspic $(prepic) $< $@ %.o : %.asm $(asm) /c- /q /o$@ $< prg.hex : $(prg_objs) echo "FILES $(prg_objs) " > temp.lkr $(link) prg.lkr temp.lkr /m prg.map /o $@ prg_cmd.o : prg.inc prglib.inc prg_core12.o : prg.inc prglib.inc prg_intr.o : prg.inc prglib.inc prg_led.o : prg.inc prglib.inc prg_main.o : prg.inc prglib.inc prg_op.o : prg.inc prglib.inc prg_port.o : prg.inc prglib.inc prg_sert.o : prg.inc prglib.inc prg_uart.o : prg.inc prglib.inc prg_vdd.o : prg.inc prglib.inc prg_vpp.o : prg.inc prglib.inc prg_16f.o : prg.inc prglib.inc prg_18f.o : prg.inc prglib.inc prg_s08.o : prg.inc prglib.inc prg_s16.o : prg.inc prglib.inc prg_s22.o : prg.inc prglib.inc prg_strt.o : prg.inc prglib.inc clean: $(del) *.hex $(del) *.map $(del) temp.lkr $(del) *.asm $(del) *.o $(del) *.cog $(del) *.obj $(del) *.cod $(del) *.inc $(del) *.out $(del) *.lst $(del) *.LST $(del) *.lib $(del) *.err $(del) *.ERR $(del) *.cof $(del) *.bak $(del) ____*.* -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist