#!/usr/bin/perl ####################################### # variables to be changed appropriately ####################################### system($comm_str); $comm_str= "avr-gcc -g -O -mmcu=atmega48 -c $ARGV[0] -o .temp.o"; system($comm_str); $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);