I want to align my data with !DIR$ ATTRIBUTES ALIGN:NBYTE::X
where NBYTE
is defined at compilation time.
I am currently at the top of every source file have
#ifndef NBYTE
#define NBYTE 64
#endif
However, I don't if I can define this only once I use the NBYTE
variable everywhere.
So my two questions are:
Is it possible to define the macro only once and use it everywhere without including a file or the macro in each source file?
Can I define the variable in the Makefile and use it in my Fortran code?