#!/usr/bin/perl

  #######################################
  # variables to be changed appropriately
  #######################################

# avr-gcc  -g -O -mmcu=atmega48 -c temp.c -o .temp.o 
  $comm_str= "avr-strip temp.o -o .temp-strip";
  system($comm_str);
  $comm_str= "avr-objcopy -O ihex .temp-strip out.hex";
  system($comm_str);
  $comm_str= "$SP12DIR"."sp12 -M4  -wpfC out.hex";
  system($comm_str);

