diff --git a/pic/318LPW1K-L/Makefile b/pic/318LPW1K-L/Makefile new file mode 100644 index 0000000..bc916c8 --- /dev/null +++ b/pic/318LPW1K-L/Makefile @@ -0,0 +1,22 @@ +TARGET = 318LPW1K-L +PIC = 12f629 + +all: off flash on + +flash: $(TARGET).hex + pk2cmd -PPIC$(PIC) -F$< -M + +# power on +on: + pk2cmd -PPIC$(PIC) -T + +# power off +off: + pk2cmd -PPIC$(PIC) -V0 + +# compile source code +%.hex: %.c + sdcc --std-c99 --opt-code-size --use-non-free -mpic14 -p$(PIC) $< + +clean: + rm -f $(TARGET).hex $(TARGET).lst $(TARGET).asm $(TARGET).adb $(TARGET).o $(TARGET).cod