Now I am trying to access makefile variable in my user program in xv6. In other linux system, it can be easily achieved by doing that
- in makefile, define
gcc -D MYVARIABLE=1 ...
- in my linux user program, by defining
#include <stdio.h>
, I can accessMYVARIABLE
.
but in xv6, there is no <stdio.h>. so I can't access MYVARIABLE
.
How can I do for access MYVARIABLE
??