cores: No standard include paths
authorStephan Veigl <veigl@gmx.net>
Fri, 30 Nov 2012 09:35:06 +0000 (10:35 +0100)
committerStephan Veigl <veigl@gmx.net>
Fri, 30 Nov 2012 09:35:06 +0000 (10:35 +0100)
commite8f6b397420f9d862e37f667982a7807fb79a18d
tree073321e1ce213c35d2d0a9bf6e136c16187629e0
parent8633f5b781376d975910e01d01c1046d5be7da3e
cores: No standard include paths

There are problems with standard includes since the paths are ambiguous
between host and AVR. Using absolute includes does not work for multi-platform
projects.
The solution is to remove all standard includes of the host system for the
core files since there is no reason why a core definition should require
standard includes from the host system. User interaction (status messages)
is the job of the simulator and not the core definitions.

- add CORE_CFLAGS (-nostdinc) to Makefile.common
- remove <stdio.h> from core definition files
- move init message from core definition files to avr_init() in sim_avr.c

Signed-off-by: Stephan Veigl <veigl@gmx.net>
15 files changed:
Makefile.common
simavr/cores/sim_90usb162.c
simavr/cores/sim_mega128.c
simavr/cores/sim_mega1280.c
simavr/cores/sim_mega1281.c
simavr/cores/sim_megax.c
simavr/cores/sim_megax4.c
simavr/cores/sim_megax8.c
simavr/cores/sim_megaxm1.c
simavr/cores/sim_tiny13.c
simavr/cores/sim_tiny2313.c
simavr/cores/sim_tinyx4.c
simavr/cores/sim_tinyx5.c
simavr/sim/avr_usb.h
simavr/sim/sim_avr.c