I use arm compiler 5.1.5 to compile for Cortex M4.
I have a source file like this:
#include "version.h" const char __ver__[] = VERSION;
version.h is created by makefile:
version.h: makefile echo "#define VERSION \"$(VERSION)\"" > $@
and the rule to creade obj from c should generate a dependency file:
%.obj: %.c $(CC) $(CFLAGS) --preproc_with_compile --preproc_dependency=$(@:.obj=.d) --output_file=$@ $<
the dependency file is generated, but does not contain the dipendence from version.h:
version_str.obj: version_str.c
How can I generate the dependency file containing version.h?
I attach a sample project (the makefile contains reference to installation dirs in my system)
best regards
Max