mkoval / hax

Hardware Abstraction for VEX is a C hardware abstraction layer for the VEX Robotics PIC18 and ARM Cortex M3 micrcontrollers. See the Wiki for a more detailed overview and for a guide to get started.
http://ieee.rutgers.edu/content/hax
6 stars 8 forks source link

Auto dependency generation fails to depend on Hax system headers #1

Closed mkoval closed 14 years ago

mkoval commented 14 years ago

System headers (i.e. #include <foo.h>) are not added to the dependency files generated by GCC. This forces a make rebuild for all programs if any of the system headers are modified (e.g. hax.h, stdint.h...).

This behavior is a result of passing gcc the -MM flag when generating the dependency files, but there are numerous preprocessor errors if the flag is changed to -M.

mkoval commented 14 years ago

Note that this problem only occurs with the vex_pic architecture and is fixed in the vex_cortex architecture.