Rev 563 | Rev 810 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 563 | Rev 621 | ||
|---|---|---|---|
| Line 208... | Line 208... | ||
| 208 | @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
208 | @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi |
| 209 | 209 | ||
| 210 | # Generate config.h from bios.inc and config.inc |
210 | # Generate config.h from bios.inc and config.inc |
| 211 | config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc |
211 | config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc |
| 212 | @echo Generating $@ |
212 | @echo Generating $@ |
| 213 | @echo "/* This file is automatically generated. Do not edit. */ |
213 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
| - | 214 | @echo "" >> $@ |
|
| 214 | @cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@ |
215 | @cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@ |
| 215 | 216 | ||
| 216 | $(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template |
217 | $(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template |
| 217 | @if [ ! -f $@ ]; then cp $< $@; fi |
218 | @if [ ! -f $@ ]; then cp $< $@; fi |
| 218 | 219 | ||