Project

General

Profile

Revision 1764

update to makefile for Brad

View differences:

trunk/code/Makefile
356 356

  
357 357
# Check RAM size (make sure under 4 kB)
358 358
AWK = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'gawk'; else echo 'awk'; fi)
359
DATASIZE = avr-size -A main.elf | grep 'data' | $(AWK) '{ print $$2 }' > 1.tmp
360
BSSSIZE = avr-size -A main.elf | grep 'bss' | $(AWK) '{ print $$2 }' > 2.tmp
359
DATASIZE = avr-size -A $(TARGET).elf | grep 'data' | $(AWK) '{ print $$2 }' > 1.tmp
360
BSSSIZE = avr-size -A $(TARGET).elf | grep 'bss' | $(AWK) '{ print $$2 }' > 2.tmp
361 361
ADD = expr `cat 1.tmp` + `cat 2.tmp` > 3.tmp
362 362
CLEANSIZE = rm 1.tmp 2.tmp 3.tmp
363 363
checksize:

Also available in: Unified diff