2009-07-23 16:13:48 +00:00
|
|
|
ifndef WEBDIR
|
|
|
|
OUTFILE=webserver6
|
|
|
|
else
|
|
|
|
OUTFILE=webserver6-$(WEBDIR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
2008-10-15 20:52:03 +00:00
|
|
|
make -f Makefile.webserver TARGET=avr-raven webserver6.elf
|
2009-07-23 16:13:48 +00:00
|
|
|
#can't just rename, webserver6 may be open in debugger
|
|
|
|
@if [ $(OUTFILE) != "webserver6" ]; then cp webserver6.elf $(OUTFILE).elf;fi
|
|
|
|
avr-objcopy -O ihex -R .eeprom -R .fuse -R .signature $(OUTFILE).elf $(OUTFILE).hex
|
|
|
|
avr-size -C --mcu=atmega1284p $(OUTFILE).elf
|
2008-10-14 22:04:16 +00:00
|
|
|
|
2008-10-15 20:52:03 +00:00
|
|
|
clean:
|
|
|
|
make -f Makefile.webserver TARGET=avr-raven clean
|
2010-07-30 20:07:41 +00:00
|
|
|
# Delete httpd-fsdata.c only if your toolchain includes perl
|
|
|
|
# rm ../../platform/avr-raven/apps/raven-webserver/httpd-fsdata.c
|
2008-10-15 20:52:03 +00:00
|
|
|
rm symbols.c symbols.h webserver6.elf webserver6.hex
|
|
|
|
rm -rf obj_avr-raven
|