mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
19 lines
605 B
Makefile
19 lines
605 B
Makefile
ifndef WEBDIR
|
|
OUTFILE=webserver6
|
|
else
|
|
OUTFILE=webserver6-$(WEBDIR)
|
|
endif
|
|
|
|
all:
|
|
make -f Makefile.webserver TARGET=avr-raven webserver6.elf
|
|
#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
|
|
|
|
clean:
|
|
make -f Makefile.webserver TARGET=avr-raven clean
|
|
rm ../../platform/avr-raven/apps/raven-webserver/httpd-fsdata.c
|
|
rm symbols.c symbols.h webserver6.elf webserver6.hex
|
|
rm -rf obj_avr-raven
|